Skip to content

fix(plugin): close TUI sidebar pane on session stop#1110

Merged
JeremyDev87 merged 1 commit into
masterfrom
fix/close-tui-on-stop-1109
Apr 1, 2026
Merged

fix(plugin): close TUI sidebar pane on session stop#1110
JeremyDev87 merged 1 commit into
masterfrom
fix/close-tui-on-stop-1109

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

  • Add _close_tui_sidebar() to stop hook that detects and kills codingbuddy tmux panes on session exit
  • Uses tmux list-panes to find panes running codingbuddy, then tmux kill-pane to close them
  • Fully exception-safe — stop hook never blocks Claude Code shutdown
  • 4 new tests covering all scenarios (no-tmux, kill, no-match, exception)

Test plan

  • yarn workspace codingbuddy-claude-plugin test:coverage — 423 passed
  • Manual: Start Claude Code in tmux → verify TUI sidebar opens → exit → verify TUI pane closes

Closes #1109

- Add _close_tui_sidebar() to stop.py that finds and kills codingbuddy
  tmux panes via list-panes + kill-pane
- Call it at the end of handle_stop() with exception safety
- Add 4 tests covering no-tmux, kill, no-match, and exception cases

Closes #1109
@JeremyDev87 JeremyDev87 added the bug Something isn't working label Apr 1, 2026
@vercel

vercel Bot commented Apr 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Apr 1, 2026 10:11am

@JeremyDev87 JeremyDev87 self-assigned this Apr 1, 2026
@JeremyDev87 JeremyDev87 merged commit 7c5ca6a into master Apr 1, 2026
28 checks passed
@JeremyDev87 JeremyDev87 deleted the fix/close-tui-on-stop-1109 branch April 1, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(plugin): close TUI sidebar pane on session stop

1 participant