openclaw - 💡(How to fix) Fix Feature Request: Add agents.defaults.reasoning config option to enable reasoning by default [2 comments, 3 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#51482Fetched 2026-04-08 01:10:39
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
0
Author
Timeline (top)
commented ×2closed ×1locked ×1mentioned ×1

Code Example

{
  "agents": {
    "defaults": {
      "reasoning": "stream"  // or "on"
    }
  }
}
RAW_BUFFERClick to expand / collapse

Feature Description

The /reasoning stream directive is supported on Feishu channels, but it requires users to manually enable it per-session by sending the directive. There is no way to configure this as a default behavior for new sessions.

Proposed Solution

Add a agents.defaults.reasoning configuration option (with values "on", "off", or "stream") that sets the default reasoning visibility for all new sessions. This would be the logical companion config to the existing agents.defaults.thinkingDefault.

Example config:

{
  "agents": {
    "defaults": {
      "reasoning": "stream"  // or "on"
    }
  }
}

Use Case

Users who want to see the AI's thinking process by default in every new conversation, without having to manually send /reasoning stream in each session.

Additional Context

-Feishu channels already support /reasoning stream (verified by user) -The channels.feishu.blockStreaming and channels.feishu.streaming options are already available in the config -agents.defaults.thinkingDefault already exists for the thinking budget level -This would be the logical companion config for reasoning visibility

extent analysis

Fix Plan

To implement the proposed solution, follow these steps:

  • Add a new configuration option agents.defaults.reasoning to the existing configuration file.
  • Update the code to read this new configuration option and set the default reasoning visibility for new sessions accordingly.

Example Code

// config.json
{
  "agents": {
    "defaults": {
      "reasoning": "stream",  // or "on" or "off"
      "thinkingDefault": "medium"
    }
  }
}
# agent.py
import json

class Agent:
    def __init__(self, config):
        self.config = config
        self.reasoning_visibility = self.config['agents']['defaults']['reasoning']

    def new_session(self):
        if self.reasoning_visibility == "stream":
            # Enable reasoning stream by default
            self.enable_reasoning_stream()
        elif self.reasoning_visibility == "on":
            # Enable reasoning by default
            self.enable_reasoning()
        else:
            # Disable reasoning by default
            self.disable_reasoning()

    def enable_reasoning_stream(self):
        # Code to enable reasoning stream
        pass

    def enable_reasoning(self):
        # Code to enable reasoning
        pass

    def disable_reasoning(self):
        # Code to disable reasoning
        pass

# Load config from file
with open('config.json') as f:
    config = json.load(f)

# Create a new agent instance
agent = Agent(config)

Verification

To verify that the fix worked, create a new session and check if the reasoning visibility is set to the default value specified in the configuration file.

Extra Tips

  • Make sure to handle invalid or missing configuration values to prevent errors.
  • Consider adding a default value for the agents.defaults.reasoning option if it is not specified in the configuration file.

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 Feature Request: Add agents.defaults.reasoning config option to enable reasoning by default [2 comments, 3 participants]