Skip to content

Preserve structured JSON-RPC error data - #2664

Draft
ellismg wants to merge 1 commit into
mainfrom
ellismg-preserve-rpc-error-data-a1c
Draft

ellismg wants to merge 1 commit into
mainfrom
ellismg-preserve-rpc-error-data-a1c

Conversation

@ellismg

@ellismg ellismg commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • preserve optional structured JSON-RPC error data on copilot::Error
  • expose the data through Error::rpc_data() without changing existing error formatting or source behavior
  • add framed JSON-RPC regressions for errors with and without data

Validation

  • cargo test --all-features --test prepared_session_test client_call_
  • rustup run nightly-2026-04-14 cargo fmt --check
  • cargo clippy --all-features --all-targets -- -D warnings
  • cargo test --all-features

Keep JSON-RPC error data on copilot::Error and expose it through rpc_data() while retaining existing code, message, display, and source behavior. Add framed transport regressions for responses with and without data.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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