8000 fix(protocol)!: preserve int64 RPC error codes by dominicnunez · Pull Request #319 · dominicnunez/codex-sdk-go · GitHub
[go: up one dir, main page]

Skip to content

fix(protocol)!: preserve int64 RPC error codes - #319

Merged
dominicnunez merged 1 commit into
mainfrom
fix/rpc-error-code-width
Nov 4, 2026
Merged

dominicnunez merged 1 commit into
mainfrom
fix/rpc-error-code-width

Conversation

@dominicnunez
Copy link
Copy Markdown
Owner

A 32-bit build rejected valid JSON-RPC error codes outside the signed 32-bit range, replacing the peer’s code, message and data with a generated parse error. Match the checked-in int64 schema throughout the public error record/accessor, stdio numeric parser and generated-error helper paths. Incoming errors and outgoing callback replies now retain the same values on both architectures.

Error.Code and RPCError.Code() now use int64 instead of int. Untyped protocol constants retain their names and values. Required/null handling, aliases, duplicate selection and sticky failures, fractional/exponent/out-of-range rejection, raw data ownership, diagnostic policy and request correlation stay covered.

Validation: executed 386 regression has eight meaningful pre-fix failures and eight passing controls. Expanded executed 386 coverage includes public error identity/formatting, all eight signed boundary codes through actual incoming and outgoing pipes, malformed-error recovery and schema cases. A focused 386 CI step executes those error checks on every PR. Formatting, module tidiness, build, vet, lint, ordinary/race suites, focused schema/error checks, the exact new 386 CI command and RPC-error fuzzing (30,036 executions) pass. Independent full-patch review found no outstanding findings or material evidence gaps.

Closes #266.

Use the schema-defined signed 64-bit code throughout public errors, incoming parsing and outgoing generated/callback replies. Execute focused 32-bit coverage in CI.

BREAKING CHANGE: Error.Code and RPCError.Code() now use int64 instead of int.
@chatgpt-codex-connector
chatgpt-codex-connector Bot commented Nov 4, 2026 •
Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T02:43:20.301154Z a69f8de PR opened
🔒 Security Review ✅ Completed 2026-11-04T02:44:31.971322Z a69f8de PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a69f8de430

ℹ️ 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".

Comment thread docs/protocol.md Resolved
@dominicnunez
dominicnunez merged commit a25831f into main Nov 4, 2026
4 checks passed
@dominicnunez
dominicnunez deleted the fix/rpc-error-code-width branch November 4, 2026 02:48
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.

fix: preserve int64 JSON-RPC error codes on 32-bit builds

1 participant

0