Skip to content

Conversation

@RaistlinMuc
Copy link

Summary\n- Strip DYLD_* environment variables when spawning the codex app-server on macOS to avoid library leakage.\n- Remove node_modules/.bin entries from PATH when using the default codex binary so npm-run wrappers don't shadow the real install.\n- Add a 5s timeout for the initialize request and extra debug logging for stdout/stderr + exit status.\n\n## Motivation\nWhen running via npm scripts, PATH prepends node_modules/.bin and can resolve an unrelated codex script, causing the app-server to exit immediately and the UI to show "request canceled". DYLD_* vars from cargo can also poison child processes.\n\n## Testing\n- Not run (local environment).

@RaistlinMuc RaistlinMuc force-pushed the fix/codex-app-server-env branch from 8f62fdb to a06f1fe Compare January 12, 2026 20:04
@RaistlinMuc
Copy link
Author

Closing for now; keeping changes in our fork first.

@Dimillian
Copy link
Owner

Not ready yet?

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.

2 participants