Skip to content

feat(rpc): expose missing response groups on timeout#604

Merged
marcus-pousette merged 1 commit intomasterfrom
codex/rpc-missing-groups
Feb 25, 2026
Merged

feat(rpc): expose missing response groups on timeout#604
marcus-pousette merged 1 commit intomasterfrom
codex/rpc-missing-groups

Conversation

@marcus-pousette
Copy link
Member

@marcus-pousette marcus-pousette commented Feb 24, 2026

Summary

  • add missingGroups metadata to MissingResponsesError
  • include the unresolved shard groups when throwing from queryAll
  • add a focused regression test in RPC

Why

queryAll already knows which shard groups failed to respond, but callers could only inspect a stringified message. Exposing structured metadata enables targeted retries and better diagnostics.

Changes

  • packages/programs/rpc/src/utils.ts
    • MissingResponsesError now has missingGroups: string[][]
    • queryAll passes unresolved groups when constructing the error
  • packages/programs/rpc/test/index.spec.ts
    • new test: reports missing groups on timeout

Verification

  • pnpm --filter @peerbit/rpc test -- --grep "reports missing groups on timeout"

Refs #607

@marcus-pousette marcus-pousette merged commit 0e16a6e into master Feb 25, 2026
12 checks passed
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