Skip to content

Reject calls matched by invalid RPC responses - #12

Merged
jmorrell merged 1 commit into
mainfrom
codex/reject-invalid-rpc-response
Oct 14, 2026
Merged

jmorrell merged 1 commit into
mainfrom
codex/reject-invalid-rpc-response

Conversation

@jmorrell

Copy link
Copy Markdown
Owner

A malformed response with an ID matching an in-flight call reported a protocol error but left that call pending forever. Reject the matched call before reporting the diagnostic, so it settles even when the diagnostic callback throws; unrelated calls and the session remain usable.

Validation:

  • npm run fmt:check
  • npm run lint (passes with three pre-existing unused-import warnings in websocket.test.ts)
  • npm run build
  • npm run test (164 tests)

Independent review found no issues after checking matching and non-matching IDs, a throwing diagnostic callback, pending-call cleanup, and continued session use.

@jmorrell
jmorrell merged commit bb0d872 into main Oct 14, 2026
1 check passed
@jmorrell
jmorrell deleted the codex/reject-invalid-rpc-response branch October 14, 2026 04:11
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.

1 participant