Repository navigation
fix(codex): distinguish bundled tool hosts from Desktop - #372
Merged
Merged
Conversation
Owner
|
Thanks for tracking this down! Merged as 8d0ab01: the Desktop parent now also has to live in the app's own |
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.
Problem
A
codex app-serverstarted by ChatGPT's bundled tool host can be misclassified as the shared Desktop app-server. For example,ChatGPT.app/Contents/Resources/cua_node/bin/node_replhas the same outer bundle identifier (com.openai.codex) asChatGPT.app/Contents/MacOS/ChatGPT. The parent bundle check added in #371 therefore accepts both processes, even though the tool-hosted app-server owns its own sessions.That classification is shared by hook forwarding and bundled-process discovery. It can give an independently hosted session the Desktop namespace instead of its CLI identity.
Change
Require the direct parent to have the Desktop bundle identifier and an executable in the host app's own
Contents/MacOSdirectory. Bundled resource helpers are excluded; the native Desktop app-server continues to match. This does not pin the Codex executable to either the legacy resource path or the newer nestedCodexCLI.apppath.Add a regression using a bundled
node_replparent and assert both outcomes: no Desktop hook bundle, and.sessionfor process discovery.Validation
node_replparent, then passed after the change.CodeIslandCorepassed: the actual Desktop app-server, two independently hosted app-servers, the cloudexec-server, a regular CLI under ChatGPT, and a CLI prompt containingapp-server.__CFBundleIdentifieris absent.git diff --checkpassed.The XCTest regression is included but was not executed on this machine: its Command Line Tools installation has no XCTest framework. The standalone checks above are separate from the XCTest suite. No local cache, preferences, installers, or machine-specific diagnostic artifacts are part of this PR.