mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
Selecting a preset from the hero pushed the session into the conversation view: the /permission switch logs its command/run + command/done pair, the pair folds into flow nodes, and the composerPhase predicate counted ANY node as conversation — so the hero (composerPhase === 'blank') collapsed. The host-side blank bit was already correct (sessionBlank = no turn/start; knob events open no turn), but the client derives its phase from window content, and command rows are log-only records, not conversation. derivePhase's hasContent now excludes command nodes — the client mirror of the host predicate. The knob events themselves never fold (not surface-eligible), so the pair was the only leak. Covers /plan on the hero identically (same lifecycle pair, same predicate). Specs: the host blank spec pins the three knob events as standalone events; a session spec drives the /permission pair through the live path and asserts phase stays 'blank' while the command node renders.