@@ -9,7 +9,7 @@ import { handleInitializationFlowLocally } from './init'
99import { buildInterviewPrompt , buildPlanPrompt , buildReviewPromptFromArgs } from './prompt-builders'
1010import { runBashCommand } from './router'
1111import { handleUsageCommand } from './usage'
12- import { endAndRejoinFreebuffSession } from '../hooks/use-freebuff-session'
12+ import { returnToFreebuffLanding } from '../hooks/use-freebuff-session'
1313import { useThemeStore } from '../hooks/use-theme'
1414import { WEBSITE_URL } from '../login/constants'
1515import { useChatStore } from '../state/chat-store'
@@ -613,9 +613,10 @@ const ALL_COMMANDS: CommandDefinition[] = [
613613 clearInput ( params )
614614 } ,
615615 } ) ,
616- // /end-session (freebuff-only) — end the active session early and re-queue. The
617- // hook flips status from 'active' → 'queued', which unmounts <Chat> and
618- // mounts <WaitingRoomScreen>, where the user can pick a different model.
616+ // /end-session (freebuff-only) — end the active session early and drop back
617+ // to the model picker. The hook flips status to 'none', which unmounts
618+ // <Chat> and mounts <WaitingRoomScreen> on the landing view, where the
619+ // user picks a model and hits Enter to rejoin the queue.
619620 defineCommand ( {
620621 name : 'end-session' ,
621622 handler : ( params ) => {
@@ -626,7 +627,7 @@ const ALL_COMMANDS: CommandDefinition[] = [
626627 ] )
627628 params . saveToHistory ( params . inputValue . trim ( ) )
628629 clearInput ( params )
629- endAndRejoinFreebuffSession ( ) . catch ( ( ) => {
630+ returnToFreebuffLanding ( { resetChat : true } ) . catch ( ( ) => {
630631 // The hook surfaces poll errors via the session store; nothing to do
631632 // here beyond letting the chat history reflect the attempt.
632633 } )
0 commit comments