happier icon indicating copy to clipboard operation
happier copied to clipboard

Claude: same-pool usage-limit stall exposes no usable recovery action; explicit member application restores progress

Open RogueKostas opened this issue 1 month ago • 8 comments

Summary

A Claude session stopped making progress after repeated provider usage-limit responses and an account change inside one Connected Services pool. The pool selected a connected replacement profile, while session metadata still recorded the previous member. No usable recovery attempt was exposed. Explicitly applying the already-selected member through the daemon switch coordinator, followed by one continuation, recovered the same native conversation without restarting its process.

This is separate from the cross-pool restart-policy restriction in #627. No active goal was present. Related reports are #348 (single-member recovery) and #407 (recovery presentation); this occurrence used multiple enabled members, and no structured runtime issue or usable recovery intent was exposed.

Observed state

  • CLI and daemon: stable 0.2.16; Windows worker; self-hosted deployment.
  • The Happier runner and native Claude process were alive. The session was active but not thinking, with an empty pending queue and no outstanding approval request.
  • Provider usage-limit responses were the final conversation activity. The session did not resume after the reset time displayed in those responses had passed.
  • The pool's active member and the profile recorded in session metadata differed. This alone does not prove which credential the provider process was using.
  • The live runtime rejected both runtime-identity inspection and usage-limit Check now with unsupported_session_runtime_method.
  • Daemon Check now returned session_usage_limit_recovery_control_inactive. Session metadata contained no usage-limit recovery intent, and the structured runtime-issue field was empty.
  • The client account-switch attempt did not restore progress; its exact error code was not captured.

Successful recovery

With the session idle and its native transcript backed up, daemon.sessionConnectedServiceAuth.switch was called with the existing group, its current active profile, and the expected group generation. It returned hot_applied, with verified shared-auth-surface provenance. Session metadata then recorded the selected member.

One continuation was delivered exactly once. Claude produced a substantive response and resumed inspecting existing task outputs. The Happier session, native conversation identifier, runner process, pool policy, and other sessions were preserved. No provider credentials or reset credits were changed.

Synthetic reproduction recipe

The following uses invented labels and disposable work. It is a proposed clean-environment recipe, not an independently completed reproduction.

  1. Configure one Claude subscription pool with test profiles A and B and automatic usage-limit switching enabled.
  2. Start a Claude session performing arithmetic checks, including background tasks. Do not enable a goal.
  3. Let A reach a usage limit, then select connected member B inside the same pool.
  4. Check whether the session remains idle despite the pool selection changing, emits usage-limit output without a usable recovery intent, and fails to recover through Check now.
  5. Compare the client switch attempt with an explicit same-pool daemon switch request targeting B and the current group generation.
  6. After a successful apply, send one continuation and verify useful provider output and unchanged native conversation identity.

Expected behavior and limits

Make quota failures actionable even when they arise during background-task activity. Show whether an account change is selected, pending, applied, or failed; retain a usable recovery action; and safely continue interrupted work when an eligible member is applied.

The root cause of the missing recovery intent is unconfirmed. This report does not establish that the displayed reset time matched the replacement member's current quota, that all members had available usage, or that every account-switch failure shares this cause. The verified result is that an explicit same-pool application and continuation recovered this occurrence.

No private logs, screenshots, conversation excerpts, project information, filesystem paths, hostnames, account or pool names, email addresses, or actual session or provider identifiers are included. Reproduction labels and work are synthetic.

RogueKostas avatar Oct 20 '26 22:10 RogueKostas

Follow-up after further verification: the initial same-pool hot application recovered useful foreground output, but background activity subsequently produced further structured usage-limit failures. A recovery wait was then present, unlike the initial stalled state.

Cached quota snapshots for some profiles showed utilization below the cap while live failures classified the selected account as exhausted. The snapshots were not a simultaneous fresh provider measurement, so this discrepancy does not establish a provider-side or caching root cause. Two profile labels also resolved to the same canonical usage account; those labels must not be counted as independent fallback quota.

An additional guarded idle restart of only this session runner reloaded the selected pool credentials while preserving the same native conversation and backed-up worker transcripts. One continuation reconciled existing outputs and resumed only unfinished tasks. Direct transcript checks then confirmed new successful tool results and checkpoint activity from the unfinished background workers, with no recent usage-limit errors in those workers. Completed work was not dispatched again.

After those successful responses were verified to postdate the recovery attempt, only that exact stale wait was cancelled. Automatic fallback policy and future recovery settings were preserved. The pending queue was empty afterward.

This supports a conversation-preserving workaround for this occurrence, not a claim that hot application alone fixes the problem or that a persistent underlying fix is established. The unresolved distinction is between pool-selection state, shared-auth-surface verification, actual provider-process adoption, and stale recovery state.

This follow-up contains no private logs, conversation excerpts, paths, project details, hostnames, account labels, or actual identifiers.

RogueKostas avatar Oct 20 '26 22:10 RogueKostas

Correction to my earlier follow-up: I said two profile labels resolved to the same canonical usage account and therefore should not count as independent fallback quota. Matching user identity did not justify that conclusion, and I withdraw the shared-quota assumption.

The native configurations used the same user identity but different organization contexts and subscription-tier descriptors. Happier nevertheless returned the same quota record identity, meters, and snapshot timestamp for both. A controlled minimal request on the same machine, executable, model, and prompt failed with the pool authentication home but succeeded with the directly selected profile home. The detailed, redacted findings are now in #644. The provider's ultimate budget boundary and the exact implementation responsible remain unconfirmed.

Recovery succeeded by backing up the session, stopping its runner at an idle boundary, selecting the usable profile directly, and resuming the same native conversation. Its original model produced new responses and saved work resumed. A later user-requested model change was separate from that same-model recovery. Direct profile selection bypasses pooling for this session, so this is a workaround rather than a confirmed automatic-fallback fix.

An initial live binding request returned restart_disallowed_by_execution_policy. A group-binding profile hint also did not itself select the group's active member; the supported active-member operation was needed. Those observations do not establish that all same-pool switches require a restart.

No private project details, conversation excerpts, logs, filesystem paths, hostnames, actual profile or pool names, identity values, email addresses, or session identifiers are included here or in #644.

RogueKostas avatar Oct 21 '26 12:10 RogueKostas

Further recurrence and verified manual workaround

The same conversation made further useful progress after the previous recovery, then stopped again on a fresh provider usage-limit response. The selected model remained Opus 5.5. The runner was alive, the pending queue was empty, and structured recovery state was waiting for the reported reset.

Important scope clarification: the earlier workaround had deliberately bound this session directly to a profile, bypassing pooling. Therefore this latest event does not demonstrate a new automatic-switch failure while group selection was active. It demonstrates that the workaround leaves the user manually moving the conversation again when its selected profile becomes limited. The automatic-pooling problem described above remains unresolved.

What worked this time

Using invented labels A and B for the limited and replacement profiles:

  1. Tested B with an isolated, minimal Opus 5.5 request. It succeeded. The test had no tools, MCP servers, project settings, or session persistence.
  2. Backed up the existing native conversation and its background-worker transcripts.
  3. Stopped only the affected runner at a verified idle boundary.
  4. Applied B as a direct profile and resumed the exact same native conversation, preserving the selected model and saved work state.
  5. Sent one continuation directing the session to reconcile existing work and resume only unfinished tasks. Verified delivery exactly once, fresh assistant responses and a successful native tool result, an empty pending queue, and a cleared runtime issue. Other session runners were preserved.

This restored foreground progress. It does not establish that every interrupted background worker resumed, that quota will remain available, or that automatic switching is fixed. Shared pool policy, spending limits, and reset credits were not changed.

Additional eligibility and UX detail

B had an exhausted Fable meter, while its displayed general meters were below their limits and its live Opus request succeeded. The configured pool policy considered all meters. That may exclude a profile usable for the selected model; exclusion under an explicitly configured all-meter policy is not itself proof of a defect. Please make that eligibility decision clear in the UI and provide an understandable way to configure model-appropriate fallback without losing conversation continuity.

The desired outcome is a dependable, supported automatic-pooling path: accurately identify usable credential contexts, safely apply an eligible member, preserve conversation and worker state, and continue interrupted work. If policy prevents a switch, expose the reason and an actionable recovery path. Repeated direct-profile rescue is not an adequate resolution to this report. Related credential-context findings remain in #644; this recurrence does not independently establish that quota-record identity caused it.

This update contains only product behavior and synthetic reproduction labels. It includes no private project details, conversation excerpts, logs, screenshots, filesystem paths, hostnames, actual profile or pool names, account identities, email addresses, or session identifiers.

RogueKostas avatar Oct 21 '26 12:10 RogueKostas

A model-specific pool configuration has now recovered a real in-flight usage failure

The direct-profile workaround was replaced with a dedicated automatic pool for Opus 5.5, leaving the pre-existing shared pools unchanged. The session kept its original native conversation, model, saved work and backed-up worker history.

Configuration used:

  • autoSwitch: true, strategy: least_limited, recoveryMode: switch_or_wait.
  • Selected quota ids: five_hour, seven_day, seven_day_opus. Fable-specific and optional extra-spend meters were excluded from eligibility for this Opus workload.
  • Fresh group probes before turns, a 15 percent soft-switch threshold, and bounded switching attempts.
  • No automatic paid quota-reset consumption.

Two distinct credential contexts answered isolated Opus requests successfully. Another member returned an actual provider usage-limit response. The configured pool automatically skipped that limited member on session resume, and useful Opus work continued.

More importantly, a subsequent real usage-limit event happened while a foreground turn was already in progress. Happier recorded a connected-service-account-switch with reason: usage_limit and mode: hot_apply. The group generation advanced and its active member changed. The original conversation and Happier runner identifiers remained unchanged.

The transcript then recorded additional native Opus tool calls and corresponding results before that same foreground turn completed, followed by further successful work. The current session has no runtime issue. This was observed real usage, not a synthetic failure injected into production, and no extra quota was deliberately exhausted for the check.

This confirms one successful automatic mid-turn recovery under the model-specific configuration. It does not establish that every failure class or interrupted worker will recover, or resolve the separate credential-context quota identity finding in #644. The all-meter eligibility policy remains an important usability distinction: with the earlier captured observations, it rejected every member, whereas the Opus-specific policy selected a live-tested usable member.

Please make model-appropriate eligibility and the reasons for excluding an account clearer in the UI, while retaining safe automatic continuation and explicit recovery diagnostics.

This update contains no project details, session text, logs, screenshots, file paths, hostnames, actual account or pool names, email addresses, native identifiers, session identifiers, or process identifiers. Only product behavior, public model names, generic protocol symbols and configuration are included.

RogueKostas avatar Oct 21 '26 16:10 RogueKostas

A remaining recovery failure after the successful mid-turn usage-limit case

Automatic Opus failover does work for the previously described usage-limit case. A separate provider spending-cap rejection still exposes a recovery gap.

Observed behavior

The pool has automatic switching enabled, including usage-limit recovery. Quota selection includes the general and Opus usage windows, while excluding optional extra-spend meters. After a usage-limit switch, the selected candidate rejects the request because its organization has reached a monthly spending cap. Recovery is then cancelled because the switch reason is considered disabled, rather than proceeding to another eligible member.

The successful earlier failover therefore does not establish that every provider limit class is recovered correctly.

Synthetic reproduction

  1. Configure a disposable Opus pool with accounts A, B and C. Enable automatic usage-limit switching and select general plus model-specific quota windows.
  2. Exclude optional extra-spend meters so that an unused extra-billing allowance does not incorrectly block otherwise available subscription usage.
  3. Arrange a test in which A is usage-limited, B is selected but rejects requests for an organization spending cap, and C can still serve the model.
  4. Observe whether the actual rejection from B advances to C or terminates recovery as a disabled reason.

Expected behavior

Distinguish quota-meter selection from recovery after an actual provider rejection. An account that cannot serve the request because of a hard organization spending cap should be skipped without treating optional billing as a prerequisite for ordinary subscription usage. Do not require a new conversation or raise spending limits automatically.

Verified workaround

Disable the rejecting candidate in the affected session's dedicated pool. Leave other pools and credentials unchanged. The current account, original native conversation and existing runner can all remain unchanged while the remaining eligible members stay available for automatic switching. Re-enable the excluded candidate only after its provider-side restriction is resolved.

This update contains only a generic description and synthetic account labels. No project details, file paths, account identifiers, machine identifiers, session identifiers, logs, screenshots or conversation text are included.

RogueKostas avatar Oct 21 '26 16:10 RogueKostas

Another recurrence with automatic switching enabled and an available alternative member.

Observed on CLI 0.2.16:

  • An existing Opus session repeatedly ended on a provider rate-limit error. The provider's message described an organisation spending cap and also gave a session reset time; the account's five-hour usage observation was exhausted. The precise scope of the underlying limit was therefore ambiguous.
  • A different enabled, connected member of the same pool showed available general allowance and passed an isolated, tools-disabled Opus request before recovery.
  • The pool still had automatic switching, pre-turn probing, usage-limit switching and switch-or-wait recovery enabled. Its selected usage windows covered five-hour, weekly and Opus allowance. The alternative member's recorded exhaustion deadline had already elapsed.
  • There was no new account-switch event for the latest failed turns. Session recovery metadata still showed a cancelled attempt associated with an earlier member and the diagnostic code switch_reason_disabled. This stale state is an observation, not proof of the new failure's cause.

Support recovery:

  1. Verified the session was idle and backed up the native conversation.
  2. A direct daemon session-auth application attempt returned restart_disallowed_by_execution_policy. An inactive application still resolved to the pool's existing authoritative active member; supplying another fallback profile did not itself select that pool member.
  3. Explicitly selected the available member through the pool's active-profile operation, applied the binding while stopped, and resumed the same native conversation.
  4. Sent one continuation. Fresh Opus thinking, tool calls and a response were observed. The conversation identity, model, saved work state and account-pool boundary were preserved; other session runners and the daemon were left running.
  5. After the original account's reported reset, it also passed an isolated Opus request. Both enabled members were responding by the end of the check. No spending limits were raised and no paid reset was used.

This is a successful manual recovery, not evidence that automatic failover is fixed. Please investigate why a fresh provider rejection did not select the demonstrably usable member or create a new actionable recovery state. Ambiguous provider spending-cap text should not silently disable recovery when the session can continue on another eligible member. Where a runtime restart is required, queue an authorised continuation at an idle boundary or expose a clear recovery action.

Synthetic reproduction: create a pool with two eligible work accounts, select Opus, and enable automatic switching plus pre-turn probing. Exhaust the current member while leaving the second usable. Retry the existing session before the first member resets. Expect recovery through the second member without losing context or requiring an external support script. Also test that old cancelled recovery state does not suppress a new attempt and that the UI distinguishes pool-member selection from application of an existing group binding.

This update contains no real project details, account identifiers, hostnames, file paths, session identifiers, conversation excerpts, logs or attachments.

RogueKostas avatar Oct 21 '26 21:10 RogueKostas

Thanks @RogueKostas for the follow-ups. The corrected organization-context analysis, successful model-specific mid-turn recovery, and distinction between old recovery metadata and a fresh failure helped separate several different problems.

The all-meter eligibility behavior is expected: if a pool includes Fable allowance, exhausted Fable usage can exclude a member even when an Opus request would succeed. Separate pools with the appropriate selected meters are the supported way to express those different policies. Your successful Opus-specific pool recovery is consistent with that behavior.

We also confirmed and corrected separate recovery bugs in cca3875dd1:

  • Actual Claude SDK failure payloads could be missed, leaving no structured failure for recovery to act on. Advisory allowance events and sidechain failures must remain distinct from a failed foreground operation.
  • An earlier recovery attempt could affect presentation or routing for a newer failure. Failure identity now stays consistent through reporting, scheduling, cancellation and Check Now.
  • Excluding an optional quota meter could incorrectly suppress recovery after a supported, actual request rejection. Such failures now follow the configured recovery rules and switching limits.

The organization-context identity correction is covered separately in #644. Matching user identities do not establish interchangeable organization allowances. Neither that correction nor these fixes establish which provider budget caused every reported rejection.

We agree that the cancelled switch_reason_disabled attempt from an earlier member does not prove the cause of your latest recurrence. Our regression checks reproduce the corrected failure paths; they do not replay your exact Windows/provider incident.

Pool-member selection, applying its binding to a session, and successful provider use remain separate facts. A group-binding profile hint does not select another active member. A new message can retry work, but cannot change eligibility or authorize a required restart. Existing restart permissions remain in effect; this correction adds no automatic restart queue.

The broader request for clearer per-member exclusion and selected/pending/applied presentation has not been implemented by this patch. We should not describe that UI request as completed.

These corrections are integrated in source; that does not establish that your installed 0.2.16 contains them. Once they reach your stable channel, please check automatic recovery and Check Now after a fresh failure. If it still stalls, the CLI/daemon/client versions, sanitized failure classification and limit identifier, and whether a new recovery attempt or switch event appeared would help distinguish the remaining cause.

Posted on behalf of @leeroybrun.

happier-bot avatar Oct 22 '26 09:10 happier-bot

Recurrence on 0.2.17: recovery dead-lettered, then remains idle after allowance returns

This is another real recurrence of the Claude pool-recovery problem in this issue. The latest recovery needed only one manual continuation in the existing worker, after an overnight reset. It did not require a new conversation or a process restart.

Versions and configuration

  • Windows x64, self-hosted relay, Claude backend. The current daemon status reports runner CLI/entrypoint 0.2.17 and daemon CLI/entrypoint 0.2.17. The older conversation-level version field still says 0.2.16; the current process-command-derived runner status is the stronger version observation. Exact frontend/server builds were not captured.
  • Automatic switching and usage-limit switching enabled; least-limited selection, switch-or-wait recovery, pre-turn probing, bounded switching and a 15% soft-switch threshold. Two enabled profiles, labelled A and B here. No automatic reset-credit consumption.
  • The selected model and account-pool membership were unchanged throughout this latest manual continuation.

What happened on 30 October, UTC

  1. At approximately 00:44, fresh provider usage responses showed both enabled profiles at 100% five-hour utilization. A reported a reset at 01:00; B at 05:10. At this point there really was no available fallback in the configured pool. This part should not be diagnosed as a false quota rejection or a switching defect.
  2. By 09:28, a fresh provider response for A showed 0% five-hour utilization and 89% weekly allowance remaining. The separate usage read for B returned an expired-access-token error, so B's current quota was unknown; this report does not treat that authentication failure as exhaustion or prove that a refresh could not repair it.
  3. The original session was still online but idle, with an empty pending queue, no useful work since the overnight failure, and the old primary usage_limit issue. Its binding now identified A, while the persisted exhausted recovery still referred to B. Selection metadata alone does not establish which credentials the running provider adopted.
  4. The supported daemon Check Now operation returned session_usage_limit_recovery_control_inactive, despite the visible failure and available allowance.
  5. One normal continuation was then queued and delivered exactly once to the same existing worker/native conversation. Within the verification window, the runtime issue cleared, the pending queue became empty, and fresh assistant tool calls appeared. The worker process was unchanged. There was no account-pool edit, credential replacement, spending-limit change or reset redemption for this latest recovery.

Captured terminal recovery state

Before the successful morning nudge, the persisted recovery had:

status: exhausted
resetAtMs: [the already-passed 05:10 UTC reset]
nextCheckAtMs: null
attemptCount: 37
maxAttempts: 5
lastProbeError: max_attempts_exhausted

The corresponding runtime-auth event was terminal dead_lettered, with code recovery_dead_lettered, reason max_attempts_exhausted, attempt 37, and retryable: true. Its suggested actions included retry and opening connected accounts. The preceding event was retry_scheduled, attempt 36, with reason recovery_unproven_awaiting_provider_outcome.

The apparent 37-versus-5 counter mismatch is reported as observed state, not proof that 37 provider requests ran or that both counters necessarily use the same scope. Please clarify their semantics and test their consistency. Neither the dead-letter event nor the stale member reference alone proves the underlying cause.

Expected behavior / regression coverage

  • With ongoing work authorised and no explicit user stop, preserve a safe wake at a known reset even if shorter-term recovery polling has exhausted its retry budget. Re-evaluate enabled candidates after the reset rather than permanently abandoning the conversation.
  • Where automatic continuation is forbidden or recovery has become terminal, expose that reason and a usable retry action. Check Now should not report inactive while the UI retains a recoverable usage-limit failure without explaining how to proceed.
  • Reconcile the currently selected/applied account, the latest failure and the persisted recovery target. Test repeated failures, both members legitimately exhausted, one member resetting earlier, another token expiring, and a manual message succeeding without restarting the worker.
  • Verify actual useful continuation, not only an online wrapper or a changed pool label.

Related Codex recovery report #747 now has a maintainer explanation and fixes on dev. This occurrence uses Claude on stable 0.2.17; it is not evidence that those unreleased fixes were tested here or that the root cause is identical. This also does not independently re-establish the credential-context identity defect in #644.

No private conversation content, project details, account/pool names, identity values, session/process identifiers, hostnames, filesystem paths, credentials, raw logs, screenshots or attachments are included. A and B are synthetic labels.

RogueKostas avatar Oct 30 '26 09:10 RogueKostas