Skip to content

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
mainfrom
fix/6868-queued-followup-after-error
Open

code-yeongyu wants to merge 2 commits into
mainfrom
fix/6868-queued-followup-after-error

Conversation

@code-yeongyu

@code-yeongyu code-yeongyu commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

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:

Evidence (faux provider and harness, offline):

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_limit refusal when the provider is under a rate-limit or spent-account hold. A user abort still leaves queued input waiting.

Refusals and receipts

  • Refused input leaves the queue through the pending-input journal and surfaces as a refused RPC effect, so waiting senders resolve instead of hanging.
  • After a transient rate limit or overload without a hold, omo#14428's backoff still applies to peer deliveries.

Written for commit e3074e3. Summary will update on new commits.

View guided diff Turn on auto-fix

code-yeongyu and others added 2 commits November 22, 2026 20:12
… 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>

This branch has not been deployed

No deployments
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.

A follow-up queued behind a turn that ended in a provider error never starts on the idle session

1 participant