Skip to content

orca: close the Terminal tab when its session ends - #21

Open
mutlumehmet wants to merge 1 commit into
mainfrom
fix/close-tab-after-claude
Open

mutlumehmet wants to merge 1 commit into
mainfrom
fix/close-tab-after-claude

Conversation

@mutlumehmet

Copy link
Copy Markdown
Owner

New sessions opened by successor.py (orca-fleet) and resumed by /orca-move:switch now leave no empty Terminal windows behind.

  • orca-fleet 0.5.1 successor.py: the line typed into the new tab is cd <dir> && { claude ... ; exit 0; }. When the session closes, the shell exits and Terminal closes the window. A failed cd stops before exit, so the error stays visible. The clipboard copy is unchanged.
  • orca-move 0.1.5 move.py: types sh <resume script> && exit 0.
  • Tests: plugins/orca-fleet/scripts/test_successor.py (3 tests; suite 26 pass).

Not changed: sessions already running were started without exit, so their windows stay open after they close; Terminal's default profile setting (close if the shell exited cleanly) does the rest.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ghb76u4xTMqbM11vQRntCi

…ssion ends

successor.py types 'cd X && { claude ... ; exit 0; }' into the new tab, so the
shell exits (and Terminal closes the window) once the session closes; a failed
cd leaves the error on screen. orca-move types 'sh <resume> && exit 0' for the
same reason. Tests in test_successor.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ghb76u4xTMqbM11vQRntCi
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