Skip to content

Commit dcc4d34

Browse files
committed
freebuff: Don't show modes as slash commands
1 parent 52fed90 commit dcc4d34

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

cli/src/data/slash-commands.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ export interface SlashCommand {
2222
insertText?: string
2323
}
2424

25-
// Generate mode commands from the AGENT_MODES constant
26-
const MODE_COMMANDS: SlashCommand[] = AGENT_MODES.map((mode) => ({
27-
id: `mode:${mode.toLowerCase()}`,
28-
label: `mode:${mode.toLowerCase()}`,
29-
description: `Switch to ${mode} mode`,
30-
}))
25+
// Generate mode commands from the AGENT_MODES constant (excluded in Freebuff)
26+
const MODE_COMMANDS: SlashCommand[] = IS_FREEBUFF
27+
? []
28+
: AGENT_MODES.map((mode) => ({
29+
id: `mode:${mode.toLowerCase()}`,
30+
label: `mode:${mode.toLowerCase()}`,
31+
description: `Switch to ${mode} mode`,
32+
}))
3133

3234
const FREEBUFF_REMOVED_COMMAND_IDS = new Set([
3335
'connect:claude',

0 commit comments

Comments
 (0)