openclaw - 💡(How to fix) Fix Gateway restart/update resets session-level thinking setting to off [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#59040Fetched 2026-04-08 02:29:30
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Participants
RAW_BUFFERClick to expand / collapse

Bug

When the gateway restarts (e.g. after an update via pnpm add -g openclaw@latest + openclaw gateway restart), session-level thinking settings are reset to off.

Steps to Reproduce

  1. Set thinking to high via Control UI or /reasoning high
  2. Confirm thinking is high in session status
  3. Run openclaw gateway restart (or trigger an update that restarts the gateway)
  4. Check session status — thinking is now off

Expected Behavior

Session-level thinking setting should persist across gateway restarts. If it's stored only in ephemeral session state, it should at minimum be restored from config defaults on restart.

Actual Behavior

Thinking resets to off silently. User has no indication the setting changed unless they manually check /status.

Environment

  • OpenClaw 2026.3.31 (213a704)
  • macOS 26.2 (arm64)
  • Model: anthropic/claude-opus-4-6
  • Updated from 2026.3.23-2 → 2026.3.31

extent analysis

TL;DR

The session-level thinking settings are likely not being persisted across gateway restarts, requiring a mechanism to store and restore these settings.

Guidance

  • Verify if there's a configuration option to persist session settings, such as a persistSessionSettings flag, and enable it if available.
  • Check the OpenClaw documentation for any guidance on storing and restoring session-level settings, particularly for the thinking setting.
  • Consider implementing a workaround by storing the thinking setting in a persistent storage mechanism, such as a database or file, and restoring it on gateway restart.
  • Investigate if the openclaw gateway restart command has an option to preserve session settings, such as a --preserve-session flag.

Example

No code snippet is provided as the issue does not imply a specific code-based solution.

Notes

The issue may be specific to the OpenClaw version (2026.3.31) or the update process, and further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Implement a mechanism to store and restore the thinking setting, such as using a persistent storage mechanism, to ensure session-level settings persist across gateway restarts. This is recommended as the issue implies a potential gap in the current implementation.

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