Streamline thread mutation handlers#19493
Merged
pakrym-oai merged 1 commit intomainfrom Apr 27, 2026
Merged
Conversation
da2717b to
b8828ca
Compare
9cfedc6 to
2a102a7
Compare
Contributor
There was a problem hiding this comment.
💡 Codex Review
thread_list now delegates to thread_list_response, but this helper still calls send_error(request_id, ...) and uses bare return;. In this function, request_id is out of scope and the control flow no longer returns Result<ThreadListResponse, JSONRPCErrorError>. This introduces a build-breaking regression in the thread/list path.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
b8828ca to
558676d
Compare
2a102a7 to
2d38a30
Compare
558676d to
8f1b0a0
Compare
2ecea71 to
a6f9880
Compare
e89693c to
c4b7cab
Compare
37de240 to
c641ef2
Compare
c4b7cab to
6001c85
Compare
571c6c6 to
559a855
Compare
6001c85 to
016897c
Compare
016897c to
869e8b6
Compare
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
Thread mutation handlers had many short error branches whose only job was to emit a JSON-RPC error and stop. This slice keeps those errors visible, but lets each handler build a result and return early from validation helpers instead of nesting the main path.
What Changed
codex-rs/app-server/src/codex_message_processor.rs.codex-rs/app-server/src/bespoke_event_handling.rsfor rollback-related request failures.send_errorcalls where they remain the simplest boundary for pending async event responses.Verification
cargo check -p codex-app-servercargo test -p codex-app-server --test all v2::thread_rollback -- --test-threads=1