test(plan): cover the final-state tails and refresh the TUI golden

The idle /plan and /plan off command paths pin the immediate-commit copy;
the chip's dead leaving/locked guard is deleted (both states disable the
button, so no click reaches the handler); the multi-turn TUI golden is
re-recorded keyless over the idle-commit wording and the standalone
plan/mode narration ordering.
This commit is contained in:
imccyu
2026-07-28 23:49:38 +08:00
parent a39bd9035e
commit cb8968c80e
3 changed files with 26 additions and 12 deletions

View File

@@ -37,7 +37,7 @@ export function PlanChip({ useProjection, locked, exitPlanMode }: PlanChipProps)
if (!target) return null
const off = (): void => {
if (leaving || locked) return
// No leaving/locked guard: both disable the button, so no click arrives.
setLeaving(true)
setError(null)
void exitPlanMode().then((failure) => {