You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 45da779
Browse filesBrowse the repository at this point in the historyBrowse files
fix(relay): do not treat a notification-only SSE reply as answered (#476)
* fix(relay): do not treat a notification-only SSE reply as answered
A request-scoped SSE reply that carried only notifications and then
ended passed for a successful request, so the stdio client never got an
answer for its id. Track whether the request's own response was emitted:
a stream that ends without it now gets one error, and a read error after
the response no longer adds a second answer for the same id.
Fixes#475
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(relay): keep tracking answers under the tools/list hook; note why not era-gated
Only an MRTR hook (which comes with input_required_abort) owns the
answer for its transaction. The tools/list header hook never swallows,
so its requests are tracked like plain ones. Record in the code why the
fix applies to the legacy era too, as #444 and #416 do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(relay): track answers under MRTR too and stop at the response
Address the code review on #476: track the answer after an MRTR hook's
rewrite and route the one error through input_required_abort; skip ids
the client cancelled; leave null ids untracked; stop reading once the
response is out so a repeated one never reaches the client; word the
error like #444; do not log a failed attempt for an answered request;
skip the parse for payloads without an id.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(relay): recognise the response by parsing, not by a literal "id"
Address ai-review R3F1: an escaped key such as "id" is a valid id,
so drop the substring prefilter and always parse. Address R2F1: state
the no-difference claim for intact streams only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(relay): answer directly when no MRTR transaction owns the request
The abort funnel does nothing when no transaction is live, so an
MRTR-eligible request whose SSE stream carried only progress and ended
before any round opened was still left unanswered. The callback now
returns whether it answered, and the relay writes the error itself when
it did not. Adds an end-to-end test through run().
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(relay): keep reading after the response and centralise the owed error
Address the second code review on #476: instead of stopping at the
response, keep reading so later frames (list_changed) arrive and the
connection returns to the pool, and drop only a repeated response. Route
every "this id is owed one error" outcome through one helper that tries
the MRTR funnel first. Drop the unreachable cancel-tracker check and
update the docstring to the new contract.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(relay): keep the cancel-tracker check in the owed-error helper
Address ai-review R6F1: REVIEW.md §3 asks every synthesized response to
skip ids the client has cancelled, so the helper consults the tracker
before the plain write, as #444's path does. R6F2: the repeated-response
test's docstring now says the stream is still read to its end.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments