Keep slash command completions concise

This commit is contained in:
murashit 2026-06-01 21:48:33 +09:00
parent 693cc5bf11
commit 089a20a2ff
2 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -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,
});