Skip to content

fix(ui): break panes before toggling dangerous mode to prevent duplicates#313

Merged
bborn merged 1 commit intomainfrom
fix/duplicate-executor-panes-on-toggle
Jan 31, 2026
Merged

fix(ui): break panes before toggling dangerous mode to prevent duplicates#313
bborn merged 1 commit intomainfrom
fix/duplicate-executor-panes-on-toggle

Conversation

@bborn
Copy link
Copy Markdown
Owner

@bborn bborn commented Jan 31, 2026

Summary

  • Fixes duplicate executor panes when toggling dangerous/safe mode while viewing a task
  • Root cause: panes joined to task-ui weren't killed by killAllWindowsByNameAllSessions (which only kills daemon windows)
  • Fix: Call Cleanup() before toggling to break panes back to daemon first

Test plan

  • Open a task in detail view (so panes are joined to task-ui)
  • Toggle dangerous mode with D
  • Verify only 2 panes exist (1 Claude + 1 Shell), not 4

🤖 Generated with Claude Code

…ates

When toggling dangerous/safe mode while viewing a task, the Claude pane
is joined to task-ui. The executor's killAllWindowsByNameAllSessions
only kills windows in daemon sessions, so the pane in task-ui survived.
This left the old Claude running while a new one was created, resulting
in duplicate executor panes (2 Claudes + 2 shells = 4 panes).

Fix: Call Cleanup() on the detail view before toggling to break panes
back to the daemon window. Then the executor's kill finds and terminates
them properly before creating the new window.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bborn bborn merged commit 6f106c0 into main Jan 31, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant