-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
[Bug] EmbeddedAttemptSessionTakeoverError causes truncated replies + kimi-k2.6 schema incompatibility after upgrade #83615
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper: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:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.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:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.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.
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper: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:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.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:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
After upgrading to
2026.5.16-beta.7, conversations on both webchat and telegram channels exhibit the following issues:EmbeddedAttemptSessionTakeoverErrorbefore completing its response.reasoning_detailsfield.web_fetch/web_searchtool calls are blocked — DNS resolution for public domains is classified as "private/internal IP".To Reproduce
2026.5.16-beta.7.Expected behavior
reasoning_detailsfield should either be conditionally sent based on provider compatibility, or the provider should accept it.Actual behavior
Issue 1:
EmbeddedAttemptSessionTakeoverError— Truncated RepliesTimeline of a single conversation:
vercel-ai-gateway/deepseek-v4-flash)EmbeddedAttemptSessionTakeoverErrorthrown, agent abortsSuspected root cause: A concurrency race condition — the session
.jsonlfile was modified by another process/thread while the embedded agent prompt lock was released, causing the agent to abort before completing its reply.Issue 2: Model Schema Incompatibility —
reasoning_detailsRejected by kimi-k2.6Suspected root cause: After the upgrade, OpenClaw sends a
reasoning_detailsfield in the messages array. Theopencode-go/kimi-k2.6provider API does not accept this field and returns400: Extra inputs are not permitted. Since no fallback model is configured (fallback chain has only 1 candidate), the request fails entirely.Issue 3: DNS Resolution Blocked by Security Policy
Suspected root cause: DNS resolution for all public domains returns IP addresses that OpenClaw security layer classifies as private/internal/special-use, blocking all outbound URL fetches.
Environment
opencode-go/deepseek-v4-proConfiguration (relevant sections)
{ "agents": { "defaults": { "model": { "primary": "opencode-go/deepseek-v4-pro" }, "models": { "opencode-go/kimi-k2.6": {}, "opencode-go/deepseek-v4-pro": {}, "opencode-go/deepseek-v4-flash": {} } } }, "gateway": { "mode": "local", "bind": "loopback" }, "tools": { "web": { "search": { "provider": "firecrawl", "enabled": true } } } }Additional context
EmbeddedAttemptSessionTakeoverErrorappears to be a regression introduced in this version, as the same configuration worked before the upgrade.