Skip to content

Conversation

@bolinfest
Copy link
Collaborator

When trying to introduce an integration test for the codex-shell-tool-mcp in
#7617, macOS CI hit serde decode errors in
the escalation pipe when huge env vars inflated the EscalateRequest payload
past the stream frame, corrupting JSON. (I'm pretty sure $GITHUB_EVENT was the
offending env var.)

This PR updates exec-server to filter out oversized env entries and skip
reserved vars before serialization.

It also updates the code to avoid attaching empty SCM_RIGHTS control messages
so frames stay lean when no FDs are sent.

When trying to introduce an integration test for the `codex-shell-tool-mcp` in
#7617, macOS CI hit serde decode errors in
the escalation pipe when huge env vars inflated the `EscalateRequest` payload
past the stream frame, corrupting JSON. (I'm pretty sure `$GITHUB_EVENT` was the
offending env var.)

This PR updates `exec-server` to filter out oversized env entries and skip
reserved vars before serialization.

It also updates the code to avoid attaching empty `SCM_RIGHTS` control messages
so frames stay lean when no FDs are sent.
@bolinfest
Copy link
Collaborator Author

This did not turn out to be the right fix. Went with #7654 instead.

@bolinfest bolinfest closed this Dec 7, 2025
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