Files
kilocode/packages
Marius 5678c09cf5 fix(agent-manager): keep detail pane for unassigned sessions (#12722)
The setup-terminal gate introduced in #12703 changed the detail-stack
predicate from !contextEmpty() && !history() to !history && selection
!== null. An unassigned session has selection === null but a live
session showing, so contextEmpty() is false there. The new gate
dropped that case, blanking the content pane, leaving readOnly() dead
code, and unmounting every live xterm on selection.

showTerminalStack now takes contextEmpty and returns !history &&
(selection !== null || !contextEmpty), restoring the pre-#12703
semantics while keeping the provisioning worktree (empty context with a
side Setup tab) rendering the stack.

Adds a showTerminalStack regression suite covering the unassigned,
history, selected-context, provisioning, and empty cases.
2026-07-31 09:38:15 +00:00
..
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00