-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: MiniMax auth stage takes 30-50s on every request in 5.x — worked fine in 4.23 #83449
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.bugSomething isn't workingSomething isn't workingclawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.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.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.regressionBehavior that previously worked and now failsBehavior that previously worked and now fails
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingclawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.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.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.regressionBehavior that previously worked and now failsBehavior that previously worked and now fails
Type
Fields
Priority
None yet
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
After upgrading from 4.23 to 5.x (tested on 5.7, 5.12), every single message
triggers an auth stage that takes 30–50 seconds before the agent can respond.
In 4.23, the same setup responded in under 5 seconds. The auth delay alone
makes the agent unusable for daily conversation.
This is a Windows + MiniMax CN (api.minimaxi.com) + Feishu/Lark specific
combination. The issue persists regardless of whether minimax-portal (OAuth)
or minimax (api_key) is used as the provider.
Steps to reproduce
Provider: minimax-portal with OAuth (CN endpoint: api.minimaxi.com)
Fallback: custom-api-deepseek-com/deepseek-chat
Expected behavior
Auth stage should complete in under 1 second, as it did in 4.23.
The agent should respond to a simple "Hello" within 10–15 seconds total.
Actual behavior
Auth stage consistently takes 30–50 seconds on every single message request.
This happens regardless of session warmup state — even warm sessions trigger
the full auth delay on every message. Combined with session-resource-loader
(20–35s) and tool-policy (3–5s), total response time reaches 3–5 minutes
for a simple greeting.
Confirmed: rolling back to 4.23 with identical config reduces auth to <1s
and total response time to under 10s.
OpenClaw version
5.7 (f066dd2), also reproduced on 5.12 (eeef486)
Operating system
Windows 11 (Build 26200.8457)
Install method
npm
Model
minimax-portal/MiniMax-M2.7
Provider / routing chain
openclaw -> minimax-portal/MiniMax-M2.7 (primary) openclaw -> custom-api-deepseek-com/deepseek-chat (fallback)
Additional provider/model setup details
openclaw -> minimax-portal/MiniMax-M2.7 (primary)
openclaw -> custom-api-deeps- Provider: minimax-portal
(network latency contributes, but 4.23 handled same network in <1s)eek-com/deepseek-chat (fallback)
Logs, screenshots, and evidence
Impact and severity
Additional information
Tested c
configurations@cconfigurationsonfigurationsonfigurations to isolate the issue:The auth stage delay appears to be unrelated to OAuth specifically,
since api_key mode exhibits the same behavior. Suspect the issue is in
how 5.x initializes the provider connection on each embedded run.
8888 (1).txt