openclaw - 💡(How to fix) Fix agents.list[].thinkingDefault not reflected in Control UI session thinking selector [1 comments, 2 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#73529Fetched 2026-04-29 06:18:42
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
0
Timeline (top)
closed ×1commented ×1

Root Cause

Root Cause Investigation

Code Example

{
  agents: {
    list: [
      {
        id: "investment-master",
        model: { primary: "deepseek/deepseek-v4-flash" },
        thinkingDefault: "high"
      }
    ]
  }
}
RAW_BUFFERClick to expand / collapse

Bug Description

Setting thinkingDefault: "high" in agents.list[] per-agent config does not change the Control UI session thinking selector — it still shows Default (off) for DeepSeek V4 Flash sessions, even after gateway restart and new session creation.

Environment

  • OpenClaw 2026.4.25 (aa36ee6)
  • Model: deepseek/deepseek-v4-flash (via api.deepseek.com)

Steps to Reproduce

  1. Set thinkingDefault: "high" in openclaw.json for an agent:
{
  agents: {
    list: [
      {
        id: "investment-master",
        model: { primary: "deepseek/deepseek-v4-flash" },
        thinkingDefault: "high"
      }
    ]
  }
}
  1. Restart gateway (openclaw gateway restart)
  2. Create a new session
  3. Check Control UI → session → thinking selector shows Default (off) instead of Default (high)

Expected Behavior

When agents.list[].thinkingDefault is set to "high", the Control UI session thinking selector should show Default (high) and new sessions should inherit that level.

Actual Behavior

  • Control UI always shows Default (off) regardless of thinkingDefault value
  • Sessions do not appear to inherit the configured thinkingDefault from agent config

Root Cause Investigation

Trajectory files in session data confirm that thinkingDefault: "high" IS being applied at runtime — the trajectory files show "thinkLevel":"high" when a conversation runs. However, the Control UI thinking selector always shows Default (off).

It appears that session-utils / getSessionDefaults() resolves the thinking default from the global default model rather than the per-agent model, so agent-level thinkingDefault never reaches the UI display layer.

Additional Context

  • This was tested on both webchat (main) sessions and Feishu sessions
  • DeepSeek V4 Flash API defaults to thinking enabled even without explicit parameters, so the actual behavior is correct — but the UI is misleading
  • The thinkingDefault value is correctly displayed in trajectory logs but not surfaced in the Control UI

extent analysis

TL;DR

Update session-utils to resolve the thinking default from the per-agent model instead of the global default model to fix the mismatch between the Control UI display and the actual thinking default applied.

Guidance

  • Investigate the getSessionDefaults() function in session-utils to understand how it resolves the thinking default and modify it to use the per-agent model configuration.
  • Verify that the thinkingDefault value is correctly applied at runtime by checking the trajectory files in session data.
  • Consider adding a logging statement or debug output to confirm that the updated getSessionDefaults() function is using the per-agent model configuration.
  • Review the documentation for session-utils and openclaw.json configuration to ensure that the expected behavior is clearly described and aligned with the actual implementation.

Example

No code example is provided as the necessary changes are specific to the session-utils implementation, which is not fully described in the issue.

Notes

The fix may require updates to the session-utils library or the openclaw.json configuration handling, and careful testing to ensure that the changes do not introduce unintended behavior.

Recommendation

Apply a workaround by modifying the session-utils to use the per-agent model configuration, as the root cause investigation suggests that this is the primary issue.

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 agents.list[].thinkingDefault not reflected in Control UI session thinking selector [1 comments, 2 participants]