-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Kimi/Moonshot 'Rate Limit' error masks insufficient funds, causes UI lockout #43447
Copy link
Copy link
Closed
Closed
Copy link
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug Report: Kimi/Moonshot "Rate Limit" Error Masking Insufficient Funds
Environment
Problem Summary
When Kimi/Moonshot API account balance reaches zero, the API returns a 429 Rate Limit Reached error instead of a clear billing/insufficient funds message. OpenClaw interprets this literally, triggering a cascading failure that locks the UI and prevents model switching.
Symptoms
⚠️ API rate limit reached. Please try again later.model=...)slug-gentask infinitely retries, spamming terminalRoot Cause
slug-genbackground task keeps hitting API on failureReproduction Steps
Expected Behavior
Actual Behavior
Workaround
Reload funds into Kimi account, or force model switch via control UI dropdown (bypasses chat parser).
Proposed Fixes
1. Better Error Parsing (kimi-claw)
Parse Moonshot error responses for billing-specific codes/messages and surface accurate error to user.
2. Failsafe for Background Tasks
3. Emergency Model Override
Route
/modelcommands through control layer, not through the active AI provider. Critical for provider outages.Impact
Reported by: Coach O via Clawd