[Bug] Opus 4.8 Fails to use tools and softbricks context: Cannot modify thinking blocks in assistant message
Resolved 💬 6 comments Opened May 28, 2026 by thelok1s Closed Jul 3, 2026
Bug Description
Claude Opus 4.8 (claude-opus-4-8) in Claude Code at some point fails to use any tools and then softbricks context:
continue
⎿ API Error: 400 messages.3.content.23: `thinking` or `redacted_thinking` blocks in the latest assistant message
cannot be modified. These blocks must remain as they were in the original response.
Full chat (### - redacted text):
⏺ Bash(printf "SELECT ######## FROM Flags WHERE
name='########';\n" | adb shell su -c '/d…)
⎿ Error: Exit code 1
Error: near line 1: no such table: Flags
⏺ Bash(find . -name 'service.sh' -path '*########*' 2>/dev/null | head; echo "---on-device module---"; adb shell su -c ‘ls
/data/adb/modules/ 2>/dev/null | grep -i ########’…)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⏺ Bash(adb shell su -c 'ls -d /data/adb/modules/*########* 2>/dev/null' 2>&1; echo "==="; adb shell su -c 'for d in
/data/adb/modules/*########*; do echo "MOD: $d"; ls "$d»;…)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⏺ Reading 1 file… (ctrl+o to expand)
⎿ agy/mosey-extended/service.sh
⏺ Bash(DB=/data/user/0/########/########/########
printf "%s\n" \…)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⏺ Bash(adb shell su -c 'am force-stop ########' 2>&1; echo "######## stopped, waiting for rebind to ########...»;
adb shell su -c 'until dumpsys activity service…)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⏺ Bash(adb shell su -c 'dumpsys activity services ######## 2>/dev/null' 2>&1 | grep -iE
"########|########|########|app=Proce…)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⏺ Bash(adb shell su -c 'dumpsys activity services ######## 2>/dev/null' 2>&1 | grep -iE
"########|########|########|ProcessRe…)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⏺ Bash(adb shell 'su -c "dumpsys activity services ########"' 2>&1 | grep -iE
"########|########|########" | head)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⏺ Bash(adb shell su -c 'ps -A | grep -i ########’)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⏺ Bash(echo connectivity_check; adb get-state)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⏺ Bash(adb devices)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⏺ Bash(true)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⏺ Bash(adb shell su -c 'dumpsys activity services ######## | grep -iE "gms|########"'; echo
"EXIT=$?»)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⏺ Bash(adb shell su -c 'ps -A | grep -i ########'; echo "---"; adb shell su -c 'dumpsys activity services
######## | grep -c gms’)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⏺ Bash(adb devices -l)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⏺ Bash(echo hello_world)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⏺ Bash(echo hello)
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⎿ Cancelled: parallel tool call Bash(printf "SELECT packageName,name,intVal,f…) errored
⎿ API Error: 400 messages.3.content.23: `thinking` or `redacted_thinking` blocks in the latest assistant message
cannot be modified. These blocks must remain as they were in the original response.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.153
- Feedback ID: 0a71e066-be03-497f-8865-f79542be5775
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.5.content.29: `thinking` or `redacted_thinking` blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original response.\"},\"request_id\":\"req_011CbVZpK1MPCxpyTtvnivCe\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63764)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T20:04:33.339Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.5.content.29: `thinking` or `redacted_thinking` blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original response.\"},\"request_id\":\"req_011CbVZrobNDuap3AWqcNhLr\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63764)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T20:05:07.128Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.5.content.29: `thinking` or `redacted_thinking` blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original response.\"},\"request_id\":\"req_011CbVZv6yURa74CoYnYG5yB\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63764)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T20:05:51.902Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3.content.23: `thinking` or `redacted_thinking` blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original response.\"},\"request_id\":\"req_011CbVb8pQJQMB9UhZ9SGTY4\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63764)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-28T20:21:51.391Z"}]This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗