Skip to content

Terminal sessions in the notch, and Open terminal brings back the right app (#282, #238) - #326

Merged
Louis-CFM merged 7 commits into
mainfrom
community/terminals
Oct 8, 2026
Merged

Louis-CFM merged 7 commits into
mainfrom
community/terminals

Conversation

@Louis-CFM

Copy link
Copy Markdown
Owner

Claude Code sessions started in a terminal now show in the notch, and "Open terminal" brings back the right app. Both PRs keep their commits, so they close as merged with their authors' credit.

Security: no approval path changes when the toggle is off. When it is on, terminal sessions get the same card and explicit click as VS Code sessions.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT


Generated by Claude Code

Mateus Amaral and others added 7 commits October 5, 2026 09:14
"Open terminal" and the Jump to terminal shortcut picked the first running
app from a fixed list (Terminal, iTerm, kitty, Ghostty). Sessions in any
other terminal (cmux, Warp, WezTerm, Alacritty...) got a new Terminal.app
window instead.

The hook already sends the session's app as bundle_id. Keep it on the task
next to sessionCwd and activate that app first, then fall back to the known
terminals (now including cmux, Warp, WezTerm and Alacritty), then
Terminal.app as before. The three copies of the list now share
TerminalTarget, which has Foundation-only tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ClaudeHost: recognise terminal sessions from the hook's term_program /
  bundle_id and route them to the Claude Code pill (AgentTask.hostApp).
- The pill says "Claude Code" and "Open <terminal>" brings it forward;
  "Handled in …" notes name the right app.
- New setting, off by default: answer terminal sessions' questions and
  permissions in the notch. Off, the terminal asks itself straight away.
- Tests: scripts/test-claude-host.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ssion's app

- cmux (com.cmuxterm.app, #54) sets TERM_PROGRAM=ghostty: the bundle id is
  checked first, so it's no longer taken for Ghostty. Orca (com.stablyai.orca,
  reported in #32) is recognised too.
- The finished card's "Open terminal" brings forward the terminal the session
  runs in, before the fixed list. A Warp session no longer opens Terminal.app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kept upstream's Hermes notes and permission guard next to the terminal
routing, and its Claude Desktop "Open Claude" button; "Open terminal"
still tries the session's own terminal first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n app

#282 records the terminal a Claude Code session runs in (hostApp) for the pill's
label and routing; #238 records every session's app (sessionBundleId). Open
terminal tries the Claude Code terminal first, then the session's app (VS Code
included, which fixes #291), then any running terminal, then Terminal.app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
@Louis-CFM
Louis-CFM merged commit 3992d91 into main Oct 8, 2026
1 check 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.

"Open terminal" launches Terminal.app for sessions running in VS Code Claude Code sessions launched from Ghostty (non-editor terminals) are ignored

3 participants