mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 17:30:31 +00:00
Keep slash command completions concise
This commit is contained in:
parent
693cc5bf11
commit
089a20a2ff
2 changed files with 3 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ import {
|
|||
sortedAvailableModels,
|
||||
supportedEffortsForModel,
|
||||
} from "../../../runtime/model";
|
||||
import { SLASH_COMMANDS, SLASH_COMMAND_SURFACE_LABELS, type SlashCommandName } from "./slash-commands";
|
||||
import { SLASH_COMMANDS, type SlashCommandName } from "./slash-commands";
|
||||
import { getThreadTitle } from "../../../domain/threads/model";
|
||||
import { shortThreadId } from "../../../utils";
|
||||
|
||||
|
|
@ -170,7 +170,7 @@ export function activeSlashCommandSuggestions(beforeCursor: string): ComposerSug
|
|||
.slice(0, 8)
|
||||
.map((item) => ({
|
||||
display: item.command,
|
||||
detail: `${SLASH_COMMAND_SURFACE_LABELS[item.surface]}: ${item.usage} - ${item.detail}`,
|
||||
detail: `${item.usage} - ${item.detail}`,
|
||||
replacement: item.command,
|
||||
start,
|
||||
appendSpaceOnInsert: true,
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ describe("composer suggestions", () => {
|
|||
const wikilink = expectPresent(activeComposerSuggestions("[[bet", notes, [])[0]);
|
||||
|
||||
expect(slash).toMatchObject({
|
||||
detail: "Diagnostics: /status - Show current thread, context, and usage limits.",
|
||||
detail: "/status - Show current thread, context, and usage limits.",
|
||||
replacement: "/status",
|
||||
appendSpaceOnInsert: true,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue