Repository navigation
fix: Jump to the correct Codex desktop thread - #387
Merged
Merged
Conversation
`NSWorkspace.open(url)` gives a `codex:` link to the system's default handler, and more than one installed app can claim Codex's scheme and bundle id (a second copy of the app, a wrapper), so the link could open in an app that doesn't hold the thread. The link now goes to the running Codex Desktop (or the installed one), and if macOS can't deliver it the jump raises the app as before. The link is built by a function of the session alone, with tests: only a Codex Desktop session with a well-formed thread id gets one, never a Codex CLI in a terminal or another agent run in Codex's own terminal. Co-Authored-By: Claude Opus 5.5 <[email protected]>
wxtsky
added a commit
that referenced
this pull request
Oct 28, 2026
… idle removal and more Unreleased notes for this round: the island's 20 fps clock (#381, #391), "Always allow" holding in its session and Codex rules Codex can use (#380), shortcuts and pinned displays with a second monitor (#384), pi and Oh My Pi ringing once a task (#386), the Claude Desktop answer and background compaction fixes (#389, #388), removing idle cards (#385), the Codex Desktop thread jump (#387), the DeepSeek whale (#390) and the Grok / DeepSeek Harness sections in Group by CLI. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
|
Thanks @ljt990218! I checked the route against the current Codex Desktop bundle (ChatGPT.app 26.1016,
Related, on main: raising any desktop app now brings forward the running copy rather than another install with the same bundle id (a5036e0). |
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.
Summary
Clicking a Codex Desktop session currently activates an application window using the project directory, which cannot select a specific conversation. Open
codex://threads/<thread ID>through macOS so Codex can navigate to the selected thread and restore its minimized window.Implementation
isNativeAppModecheck.providerSessionId. Card IDs use the internalcodexapp:prefix and are not passed to Codex. The provider ID is populated by app-server events, discovery and hooks, and retained across persistence.Validation
DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer SIGN_ID=- ./build.sh.Limitations
A successful
NSWorkspace.opencall only confirms URL submission. Thread navigation and window restoration depend on Codex; the existing visibility feedback does not verify the selected thread.