Skip to content

Commit 44d81e0

Browse files
committed
Move /interview above /plan
1 parent ba87af9 commit 44d81e0

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

cli/src/commands/command-registry.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,30 @@ const ALL_COMMANDS: CommandDefinition[] = [
533533
return { openChatHistory: true }
534534
},
535535
}),
536+
defineCommandWithArgs({
537+
name: 'interview',
538+
handler: (params, args) => {
539+
const trimmedArgs = args.trim()
540+
541+
params.saveToHistory(params.inputValue.trim())
542+
clearInput(params)
543+
544+
// If user provided text directly, send it immediately
545+
if (trimmedArgs) {
546+
params.sendMessage({
547+
content: buildInterviewPrompt(trimmedArgs),
548+
agentMode: params.agentMode,
549+
})
550+
setTimeout(() => {
551+
params.scrollToLatest()
552+
}, 0)
553+
return
554+
}
555+
556+
// Otherwise enter interview mode
557+
useChatStore.getState().setInputMode('interview')
558+
},
559+
}),
536560
defineCommandWithArgs({
537561
name: 'plan',
538562
handler: (params, args) => {
@@ -572,30 +596,6 @@ const ALL_COMMANDS: CommandDefinition[] = [
572596
useChatStore.getState().setInputMode('plan')
573597
},
574598
}),
575-
defineCommandWithArgs({
576-
name: 'interview',
577-
handler: (params, args) => {
578-
const trimmedArgs = args.trim()
579-
580-
params.saveToHistory(params.inputValue.trim())
581-
clearInput(params)
582-
583-
// If user provided text directly, send it immediately
584-
if (trimmedArgs) {
585-
params.sendMessage({
586-
content: buildInterviewPrompt(trimmedArgs),
587-
agentMode: params.agentMode,
588-
})
589-
setTimeout(() => {
590-
params.scrollToLatest()
591-
}, 0)
592-
return
593-
}
594-
595-
// Otherwise enter interview mode
596-
useChatStore.getState().setInputMode('interview')
597-
},
598-
}),
599599
defineCommandWithArgs({
600600
name: 'review',
601601
handler: (params, args) => {

cli/src/data/slash-commands.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ const ALL_SLASH_COMMANDS: SlashCommand[] = [
123123
description: 'Subscribe to get more usage',
124124
aliases: ['strong', 'sub', 'buy-credits'],
125125
},
126+
{
127+
id: 'interview',
128+
label: 'interview',
129+
description: 'AI asks a series of questions to flesh out request into a spec',
130+
},
126131
{
127132
id: 'plan',
128133
label: 'plan',
@@ -133,11 +138,6 @@ const ALL_SLASH_COMMANDS: SlashCommand[] = [
133138
label: 'review',
134139
description: 'Review code changes with GPT 5.4',
135140
},
136-
{
137-
id: 'interview',
138-
label: 'interview',
139-
description: 'AI asks a series of questions to flesh out request into a spec',
140-
},
141141
{
142142
id: 'new',
143143
label: 'new',

0 commit comments

Comments
 (0)