openclaw - 💡(How to fix) Fix Subagent spawn fails: thinking enabled but reasoning_content missing [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#70563Fetched 2026-04-24 05:56:22
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

Error Message

FailoverError: LLM request rejected: thinking is enabled but reasoning_content is missing in assistant tool call message at index 2

Root Cause

The subagent system does not correctly propagate reasoning_content in tool call messages when thinking mode is enabled in the parent session. The platform checks for reasoning_content when thinking is enabled, finds it missing, and rejects the request.

Fix Action

Workaround

Use exec + direct CLI for tasks instead of subagents.

Code Example

FailoverError: LLM request rejected: thinking is enabled but reasoning_content is missing in assistant tool call message at index 2
RAW_BUFFERClick to expand / collapse

Bug Description

When spawning a subagent via sessions_spawn runtime=subagent, the LLM request is rejected with:

FailoverError: LLM request rejected: thinking is enabled but reasoning_content is missing in assistant tool call message at index 2

This causes all subagent tasks to fail and fall back to minimax model.

Steps to Reproduce

  1. Enable thinking mode for the main session model (e.g. kimi/kimi-for-coding with thinking enabled)
  2. Spawn a subagent using sessions_spawn runtime=subagent
  3. Observe the subagent immediately fails with the above error

Expected Behavior

Subagent should spawn successfully and process the assigned task.

Environment

  • Runtime: agent=main | model=minimax/MiniMax-M2.7 (default) | main session: kimi/kimi-for-coding
  • OS: Windows_NT
  • Node: v24.12.0

Analysis

The subagent system does not correctly propagate reasoning_content in tool call messages when thinking mode is enabled in the parent session. The platform checks for reasoning_content when thinking is enabled, finds it missing, and rejects the request.

Workaround

Use exec + direct CLI for tasks instead of subagents.

extent analysis

TL;DR

The most likely fix is to modify the subagent system to propagate reasoning_content in tool call messages when thinking mode is enabled in the parent session.

Guidance

  • Verify that the reasoning_content is indeed missing in the tool call messages sent by the subagent by inspecting the request payload.
  • Check the subagent system's implementation to see where the reasoning_content is supposed to be added to the tool call messages.
  • Consider modifying the subagent system to include the reasoning_content in the tool call messages when thinking mode is enabled.
  • As a temporary workaround, use the suggested exec + direct CLI approach for tasks instead of subagents.

Example

No code snippet is provided as the issue does not contain sufficient implementation details.

Notes

The provided analysis suggests that the issue is specific to the subagent system and the propagation of reasoning_content when thinking mode is enabled. The workaround provided in the issue may not be suitable for all use cases.

Recommendation

Apply the workaround by using exec + direct CLI for tasks instead of subagents, as modifying the subagent system may require significant changes and testing.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Subagent spawn fails: thinking enabled but reasoning_content missing [1 participants]