Hide OpenClaw Exec Lines in Telegram Chat: One-Command Fix

✍️ OpenClawRadar📅 Published: July 10, 2026🔗 Source
Hide OpenClaw Exec Lines in Telegram Chat: One-Command Fix
Ad

If you use OpenClaw via Telegram, you've likely seen raw ⚙️ Exec: lines cluttering your chat after every agent command. This happens because the config keys streaming.preview.toolProgress and streaming.progress.toolProgress default to true, streaming all tool progress — including exec details — into Telegram messages. These keys are not written to openclaw.json by default, so they must be added manually.

The Fix (One Command)

Run the following Python command to automatically back up your config and write the required keys:

python3 -c "
import json, os, shutil
p = os.path.expanduser('~/.openclaw/openclaw.json')
shutil.copy(p, p + '.backup')
with open(p) as f: c = json.load(f)
c.setdefault('channels', {}).setdefault('telegram', {})['streaming'] = {
    'preview': {'toolProgress': False},
    'progress': {'toolProgress': False}
}
with open(p, 'w') as f: json.dump(c, f, indent=2)
print('Done. Restart OpenClaw gateway.')
"
Ad

Validate JSON

After the change, verify your config is valid JSON:

node -e "JSON.parse(require('fs').readFileSync(require('os').homedir()+'/.openclaw/openclaw.json','utf8')); console.log('JSON OK')"

Restart Gateway

Kill the running OpenClaw gateway and start it again (replace <YOUR_PORT> with your actual port):

pkill -f "openclaw.*gateway" && sleep 2 && openclaw gateway --port <YOUR_PORT> & bg %1

Note: after the &, the process may hang in a Suspended state. Running bg %1 resumes it.

Relevant Config Keys

  • streaming.preview.toolProgress – set to false
  • streaming.progress.toolProgress – set to false

The original blog post and videos (English and German) are linked in the source below.

📖 Read the full source: r/openclaw

Ad

👀 See Also