Skip to content

Draft: Open Terminal sessions in existing window tabs - #50

Draft
it-baron wants to merge 1 commit into
mainfrom
hotfix-terminal-tabs
Draft

it-baron wants to merge 1 commit into
mainfrom
hotfix-terminal-tabs

Conversation

@it-baron

@it-baron it-baron commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Terminal currently opens a new window for every managed start. Use a new tab when a window exists, and create a window only when none is open; iTerm already follows that rule. The Terminal branch identifies a new TTY before sending the existing quoted launch command and restores the previously focused app on both success and failure.

This is the user-prioritized 0.8.1 candidate for native issue #147 / release #146. Role/model selection, native approvals, root protection and durable delivery are unchanged. Terminal tab creation uses the standard shortcut and requires the OS to allow Automation/Accessibility. A refused or ambiguous creation fails before typing into an existing tab.

The release matrix uses the dedicated Intel macOS pool after the actual 0.8.0 hosted ARM-pool runner acquisition failures. All three 0.8.1 platform binaries must be rebuilt; no prior-version binary is reused.

Validation: failing-first Terminal-tab regression; final 59 spawn/restart unit tests, 7 spawn integrations and 3 remote Codex integrations passed. Formatting, diff checks, all-target workspace Clippy with warnings denied, local build and AppleScript syntax compilation passed. The comment-only focus description was included in the final bound build.

Pending: independent source review, actual Terminal UI verification, hosted CI and publication. Computer Use refused Terminal app access; the script was compiled but not executed through another UI route after that refusal. This draft does not claim release readiness.

Use an existing terminal window for new sessions and identify a fresh TTY before sending the launch command. Keep iTerm behavior and native session policies unchanged.

Issue: #147
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