fix(claude): move to @col/a2a-claude@0.2.1-beta.5 - #10
Merged
Conversation
Corrects the rate-limit behaviour shipped in v0.1.11, where a rate-limited turn ended as a non-terminal input-required task on the reasoning that holding the task open let a client continue the conversation. That reasoning did not hold. The interrupted turn cannot resume — a follow-up on the open task sends the new user message as a fresh prompt, exactly what a new task would send — and continuity comes from the contextId -> Claude session mapping, not the task state. input-required also means the agent lacks information, whereas a rate limit lacks quota: nothing a client sends unblocks it, only elapsed time, so generic input-required handling would prompt a human for input nobody wants. A rate limit now always publishes failed, with the message pointing at the contextId and still carrying the structured retry metadata. The rateLimit .taskState option is removed rather than re-defaulted; Throng never set it. Also: session.cleanupInterval now defaults to 0 to match ttl, which has been 0 since the last release — the old 300s default was dead configuration. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013hanN6ZyX6tDZEsxGZpFto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the Claude wrapper to
0.2.1-beta.5. Pin bump only — Throng set neither of the affected config blocks.Rate limits fail the task again, correcting v0.1.11
v0.1.11ended a rate-limited turn as a non-terminalinput-requiredtask, on the reasoning that holding the task open let a client continue the same conversation. That reasoning did not hold:contextId→ Claude session mapping, which is indifferent to how a task ended.input-requiredsays the wrong thing. It means the agent lacks information; a rate limit lacks quota, and nothing a client sends unblocks it — only elapsed time. A client with genericinput-requiredhandling would prompt a human for input nobody wants.final: truewas inconsistent.A rate limit now always publishes
failed. TherateLimit.taskStateoption is removed rather than re-defaulted, so this is no longer configurable; Throng never set it. The message now points at thecontextIdrather than the closed task and still carries the structured retry metadata (reason,rateLimitType,resetsAt,resetsAtIso,utilization, pluserrorCode/canPurchaseCreditswhen reported).features.emitRateLimitEventsis unchanged — the SDK's in-turn retries remain visible asrate_limitsideband events.Net effect: a rate-limited turn looks the way it did before
0.1.11— a terminalfailedtask — but is now distinguishable from a generic error, since the status names the limit and the metadata says when it resets.session.cleanupIntervaldefaults to0Only consulted when
ttl > 0, andttlhas defaulted to0since the last release, so the old300_000was dead configuration that read as if it swept something. Both disabled states now log at startup. No behaviour change for Throng, which sets neither.Verification
npm run build,npm run typecheck,npm testall pass locally (7/7 turbo tasks, 6/6 tests).🤖 Generated with Claude Code
https://claude.ai/code/session_013hanN6ZyX6tDZEsxGZpFto