Skip to content

Reduce app-server JSON serialization overhead - #34761

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/304e14bcaea24e32743bf852a60a208e2f273db3
Jul 22, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/304e14bcaea24e32743bf852a60a208e2f273db3

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 22, 2026 •

Copy link
Copy Markdown

Reduce app-server JSON serialization overhead

What changed

  • Decode JSONRPCRequest into ClientRequest without serializing the entire request back into an intermediate JSON value.
  • Define every client method's wire name explicitly and use it directly for request, response, and tracing method lookups.
  • Serialize outgoing transport messages directly to JSON strings instead of first building a serde_json::Value.

Testing

  • Add regression coverage that compares direct request conversion with Serde decoding, including omitted and null parameters, legacy methods, and unknown methods.
  • Verify that direct outgoing-message serialization preserves the notification wire shape.

## What changed

- Decode `JSONRPCRequest` into `ClientRequest` without serializing the entire request back into an intermediate JSON value.
- Define every client method's wire name explicitly and use it directly for request, response, and tracing method lookups.
- Serialize outgoing transport messages directly to JSON strings instead of first building a `serde_json::Value`.

## Testing

- Add regression coverage that compares direct request conversion with Serde decoding, including omitted and null parameters, legacy methods, and unknown methods.
- Verify that direct outgoing-message serialization preserves the notification wire shape.

GitOrigin-RevId: 304e14bcaea24e32743bf852a60a208e2f273db3
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/304e14bcaea24e32743bf852a60a208e2f273db3 branch from e7ab925 to f69dc49 Compare July 22, 2026 14:18
@copyberry
copyberry Bot merged commit f69dc49 into main Jul 22, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/304e14bcaea24e32743bf852a60a208e2f273db3 branch July 22, 2026 14:19
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 22, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — f69dc49b Deployed Jul 22, 2026 by droflebalocin-tech via Identify potential duplicates (all issues) #33403
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants