Streamline MCP handlers#19496
Merged
pakrym-oai merged 1 commit intopakrym/appserver-errors-thread-resume-forkfrom Apr 27, 2026
Merged
Streamline MCP handlers#19496pakrym-oai merged 1 commit intopakrym/appserver-errors-thread-resume-forkfrom
pakrym-oai merged 1 commit intopakrym/appserver-errors-thread-resume-forkfrom
Conversation
b9ce629 to
03c30b8
Compare
58cf3c8 to
5308b02
Compare
5308b02 to
a548a0f
Compare
03c30b8 to
bdfcca9
Compare
a548a0f to
d8792fc
Compare
8056186 to
f3290ec
Compare
d8792fc to
67e573a
Compare
f3290ec to
3c9686e
Compare
67e573a to
9dfa99f
Compare
This was referenced Apr 27, 2026
9dfa99f to
eaf38ae
Compare
0de7bb7 to
ef966b4
Compare
13117fc to
8053487
Compare
4d451bd to
9541603
Compare
0f3ad06 to
c55f80b
Compare
9541603 to
0cc9bde
Compare
c55f80b to
b236a5e
Compare
0cc9bde to
867fb28
Compare
11fa611
into
pakrym/appserver-errors-thread-resume-fork
37 checks passed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Why
The MCP request handlers had repeated local JSON-RPC error emission around validation and manager calls. Returning those errors directly makes the normal response path much easier to scan.
What Changed
codex-rs/app-server/src/codex_message_processor.rs.send_error/returnbranches with returned JSON-RPC errors where that flattens control flow.Verification
cargo check -p codex-app-servercargo test -p codex-app-server --test all v2::mcp_resource -- --test-threads=1cargo test -p codex-app-server --test all v2::mcp_tool -- --test-threads=1cargo test -p codex-app-server --test all v2::mcp_server_status -- --test-threads=1