#is this possible to solve this trough telegram commands?
1 messages · Page 1 of 1 (latest)
s
LLM request rejected: messages.7.content.1:
thinking or redacted_thinking blocks in the
latest assistant message cannot be modified.
These blocks must remain as they were in the
original response.
12:50
@gloomy relic
No — my earlier “update from rox” message wasn’t actually based on anything I can see here. I don’t have access to someone else’s machine/chat, so that was wrong on my part.
If your question is “can I fix this purely via Telegram commands?”: only if your Gateway is already running and your Telegram channel is already connected/paired so the agent can execute tooling. If the Gateway is crashing / not starting, you’ll need shell/SSH access on the gateway host to fix it.
For the error you pasted:
LLM request rejected … thinking or redacted_thinking blocks … cannot be modified
That’s a provider-side rejection (commonly Anthropic) when something resends conversation history but changes a previous assistant message that contained thinking blocks. Practical next steps:
- Start a fresh session/thread (often the quickest workaround).
- Grab diagnostics from the gateway host (this is the “command ladder” from the troubleshooting docs):
openclaw --versionopenclaw statusopenclaw logs --follow(paste the lines around the rejection)
If you paste those outputs, I can tell you whether this is a config/session-store issue vs a provider/model quirk.
Looks like that “s” might’ve been accidental 🙂
To move this forward, can you paste:
openclaw --version
openclaw status
openclaw gateway status
…and tell me what you’re trying to do via Telegram (restart gateway? fix a config crash? approve pairing?).
i have telegram connected, but the bot is constantly replying this:
:00
LLM request rejected: messages.7.content.1:
thinking or redacted_thinking blocks in the
latest assistant message cannot be modified.
These blocks must remain as they were in the
original response.
i am not close by my mac mini, so thats why i want to repair it trough telegram
the gateway is up
That error is Anthropic-side, and it means the Gateway is re-sending the chat history but the most recent assistant message’s thinking / redacted_thinking blocks don’t match exactly what Claude originally returned. Anthropic rejects the request when those blocks are changed/stripped.
In practice, this usually happens when:
- you restart and the session is reloaded but the stored assistant message lost/altered the thinking blocks, or
- you change thinking settings/model mid-thread, or
- something tries to “sanitize”/edit the last assistant message before the next call.
Fast workaround
- Start a brand new thread/session (don’t continue the broken one).
- Disable Claude thinking (so OpenClaw won’t create those blocks in the first place):
openclaw config set agents.defaults.models["anthropic/claude-opus-4-6"].params.thinking "off"
openclaw gateway restart
(If you’re on Sonnet or another Claude model, swap the model key accordingly.)
Anthropic docs in OpenClaw mention this knob here: https://docs.openclaw.ai/providers/anthropic
To diagnose properly (so we can tell if it’s a known bug/version thing)
Paste:
openclaw --version
openclaw config get agents.defaults.model
openclaw config get agents.defaults.models
Also: if the LLM call is failing like this, you generally can’t “fix it via Telegram commands” unless you still have some other working control path (shell/SSH, Control UI, or another agent that can run exec).
I’m here.
To fix this, I need two bits of info from the gateway host (terminal/SSH):
openclaw --version
openclaw config get agents.defaults.model
And if you can, also:
openclaw config get agents.defaults.models
If you just want the quickest “make it stop failing” workaround right now: start a new thread/session and disable Claude thinking in config, then restart the gateway:
openclaw config set 'agents.defaults.models["anthropic/claude-opus-4-6"].params.thinking' '"off"' --strict-json
openclaw gateway restart
(If you’re not using claude-opus-4-6, tell me which Anthropic model you’re on and I’ll give the exact key.)
Re: “can I solve it through Telegram commands?” — only if you still have a working path to run those config changes (the gateway + an agent run that can execute). If LLM calls are failing, Telegram usually can’t help because the “brain” can’t produce tool calls; you’ll need shell/SSH or the Control UI to change config and restart.
That’s almost certainly a single stuck session in your Telegram chat: the last assistant turn in that session contains Anthropic thinking/redacted_thinking blocks, and the gateway is (for whatever reason) re-sending them in a modified form on the next request — Anthropic rejects it, so every new message keeps failing.
Fix from Telegram (no SSH needed) — try this in your Telegram DM
-
Send
/status(standalone)- If this works, commands are being parsed correctly.
-
Send
/reset(or/new) as a standalone message- This starts a fresh session id for that chat, which should immediately stop the loop.
-
(Optional but recommended) disable thinking for this session so it can’t happen again:
- Send
/think off(alias:/thinking off) as a standalone message.
- Send
Docs for these commands: https://docs.openclaw.ai/tools/slash-commands and session resets: https://docs.openclaw.ai/concepts/session
If /status / /reset don’t work (still goes to the model and errors)
Then commands aren’t being recognized/authorized in that chat. In that case, I’ll need:
openclaw --version
- and your
commands+channels.telegram.commandsconfig (or just pasteopenclaw config get commandsandopenclaw config get channels.telegram.commands)
Once I see that, I can tell you exactly what to flip so /reset works and you can recover the session.
If the Mac mini is up and the Gateway is running, then yes — you can repair this specific problem purely via Telegram, because it’s a “stuck session / thinking-mode history” issue, not something that requires file access.
Do this from Telegram (DM with the bot):
-
Send
/status(standalone)- This confirms commands are being parsed (and should reply even if normal LLM calls are failing).
-
Send
/reset(or/new) as a standalone message- This creates a fresh session for that chat, which should stop the repeating Anthropic “thinking blocks cannot be modified” rejection.
-
Then send
/think off(standalone)- Prevents Claude thinking blocks from reappearing in that session.
If /status doesn’t reply (or /reset still triggers the same LLM rejection), then Telegram can’t fix it because commands aren’t being recognized/authorized in that chat — at that point you’d need remote shell access (SSH/Tailscale) or to get back to the Mac mini.
If you try step 1, paste what /status returns here and I’ll tell you the next move.