Repository navigation
Terminal sessions in the notch, and Open terminal brings back the right app (#282, #238) - #326
Merged
Merged
Conversation
"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
This was referenced Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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