Repository navigation
fix(a2a): say why a peer was unreachable, not just that it was - #288
Conversation
844ba9d to
79c94ae
Compare
2593545 to
6ccc139
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
79c94ae to
6775c71
Compare
002019e to
8e6e622
Compare
6775c71 to
44e17d4
Compare
8e6e622 to
eb2ba6f
Compare
The unreachable reason carried only the outer message, so an operator saw "Transport error (GET …/hello)" and nothing about the socket or header failure beneath it. Walk the cause chain and join the distinct messages. Built by Claude Fable 5.1 in Claude Code. Co-Authored-By: Claude Fable 5.1 <[email protected]>
44e17d4 to
6eeec53
Compare
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: Jacksondr5/j5code/.coderabbit.yaml Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. 2 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour. 📝 WalkthroughWalkthrough
ChangesError reason formatting
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~4 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to This change gives administrators and operators more detail when a peer cannot be reached. The inspected request and response paths show no concrete harmful exposure or behavior regression, so no material issue remains before merge. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
BastiHu squashed #314 into 2ab2cfc on top of j5/main. Its content equals e2f4f4f, which this branch already merged, plus #288 from j5/main, so overlapping hunks keep this branch's side. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Based on
j5/main. It was split out of the cross-server peering stack (#172–#198, now merged) and editsPeerRegistryService.ts, which #173 introduced.Problem
When
j5 a2a peer addor the Connections dialog cannot reach the other server, thePeerUnreachableErrorreason carried only the outermost message. With Effect's HTTP client that is a generic "Transport error (GET …/hello)"; the part an operator needs, ECONNREFUSED, a DNS miss, a TLS failure, sits on the error'scausechain and was dropped.Fix
reasonOfinPeerRegistryService.tswalks thecausechain up to four levels and joins the distinct messages. Both callers use it: the unreachable error and the "hello answered with an unexpected shape" error. Nothing else changes; the registry tests assert on the leading text and still pass.Split out of #198 at review request (bryantderosier), since it has nothing to do with carrying names.
Built by Claude Fable 5.1 in Claude Code.
🤖 Generated with Claude Code
Summary by CodeRabbit