Repository navigation
fix(session): a follow-up queued behind a failed turn starts, or fails typed under a usage hold - #7363
Open
code-yeongyu wants to merge 2 commits into
Open
fix(session): a follow-up queued behind a failed turn starts, or fails typed under a usage hold#7363code-yeongyu wants to merge 2 commits into
code-yeongyu wants to merge 2 commits into
Conversation
… typed Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
3 tasks
This branch has not been deployed
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.
Fixes #6868.
A follow-up queued while a turn runs never started when that turn ended in a provider error. The session went idle with the follow-up parked, and an RPC or relay sender waiting on it hung until the session closed. This implements the issue's ruled behaviour:
account_usage_limitrefusal naming the hold. It leaves the queue through the existing pending-input journal, and the waiting sender resolves with it.Evidence (faux provider and harness, offline):
CI=1 vitest run --maxWorkers=1 test/suite/regressions/6868-queued-followup-after-error.test.tsgave 2 failed, 1 passed. The follow-up was never requested, and the held follow-up stayed queued at count 1. The user-abort control passed.Format, lint, the source type check and the browser smoke check passed.
Summary by cubic
Fixes #6868. A follow-up queued behind a turn that ended in a provider error never started: the session went idle with the follow-up parked, and the sender waiting on it hung until session close. Queued input now starts its own turn after retries and fallback settle on a provider error, or fails with a typed
account_usage_limitrefusal when the provider is under a rate-limit or spent-account hold. A user abort still leaves queued input waiting.Refusals and receipts
Written for commit e3074e3. Summary will update on new commits.