diff --git a/src/components/ResumeSessionDialog.tsx b/src/components/ResumeSessionDialog.tsx index d2cdea074..5d557f820 100644 --- a/src/components/ResumeSessionDialog.tsx +++ b/src/components/ResumeSessionDialog.tsx @@ -68,7 +68,6 @@ export function ResumeSessionDialog({ open, onClose, onNavigate }: ResumeSession const store = useStore() const [input, setInput] = useState('') const [agent, setAgent] = useState(providers[0]) - const [agentTouched, setAgentTouched] = useState(false) const [anywayCwd, setAnywayCwd] = useState('~') const [phase, setPhase] = useState({ kind: 'idle' }) // Inline error for confirming a cwd-less match with a blank cwd field. @@ -82,12 +81,14 @@ export function ResumeSessionDialog({ open, onClose, onNavigate }: ResumeSession // homeDir prefill never overwrites a USER-edited working directory. const cwdTouchedRef = useRef(false) - // Advisory hint pre-fills the picker; never overrides a manual choice. + // Advisory parse hint drives the internal agent guess. There is no visible + // picker (kata 1ffd): the guess surfaces only on the no-match escape hatch's + // "Resume anyway with {agent}" button, which is the disclosure point. useEffect(() => { - if (agentTouched || !input) return + if (!input) return const { hint } = parseResumeInput(input) if (hint && providers.includes(hint.provider)) setAgent(hint.provider) - }, [input, agentTouched]) + }, [input]) const finishResume = useCallback( (target: ResumeTarget, note: string) => { @@ -344,30 +345,6 @@ export function ResumeSessionDialog({ open, onClose, onNavigate }: ResumeSession }, 0) }} /> -
- - -
-

- Unverified guess — the session store decides the agent. -