[BUG] Opus 4.7 thinking summaries not rendered in VS Code extension
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Environment
- Claude Code for VS Code: 2.1.111
- VS Code: 1.114.0 (Universal), macOS arm64 25.4.0
- Model: claude-opus-4-7[1m]
Setting "showThinkingSummaries": true is set in ~/.claude/settings.json. The Opus 4.7 changelog states:
Changed thinking summaries to no longer be generated by default in interactive sessions — set
showThinkingSummaries: truein settings.json to restore
After applying the setting and reloading the VS Code window, no thinking summaries appear anywhere in the extension UI on Opus 4.7. Switching the session model back to claude-opus-4-6 restores them immediately.
The schema description for showThinkingSummaries references a "transcript view (ctrl+o)", but ctrl+o is not bound in the VS Code extension and no equivalent command appears in the command palette.
What Should Happen?
With "showThinkingSummaries": true set, Opus 4.7 thinking summaries should be visible in the VS Code extension, matching the changelog's documented behavior and the experience on Opus 4.6.
Error Messages/Logs
Steps to Reproduce
- Add
"showThinkingSummaries": trueto ~/.claude/settings.json - Set model to claude-opus-4-7 in the VS Code extension
- Reload the VS Code window (⌘⇧P → "Developer: Reload Window")
- Start a new Claude Code session and send any prompt that should trigger thinking (e.g. a non-trivial code question)
- Observe: no thinking summaries appear anywhere in the extension UI
- Switch the model to claude-opus-4-6 and repeat — summaries appear as expected
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
N/A — regression is tied to model, not extension version. Same 2.1.111 works on Opus 4.6.
Claude Code Version
2.1.111 (VS Code extension)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
Using the Claude Code for VS Code native extension (not the CLI in VS Code's integrated terminal).
Found 2 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/49268
- https://github.com/anthropics/claude-code/issues/48065
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
Please let us turn off the redact-thinking-2026-02-12 flag, there are so many unaddressed issues about this (I counted 5-6).
The comment from bcherny on hackernews said something like "users don't read reasoning summaries anyway".
It's already summaries and not the true reasoning, why just take it away? I need it.
EDIT: Should I feel so disappointed on new model day? :(
I agree with @Madd0g Thinking summaries should come back.
Please let us turn off the
redact-thinking-2026-02-12flag, there are so many unaddressed issues about this (I counted 5-6).The comment from bcherny on hackernews said something like "users don't read reasoning summaries anyway".
It's already summaries and not the true reasoning, why just take it away? I need it.
EDIT: Should I feel so disappointed on new model day? :(
I use and read summaries to track the approaches Claude is considering, it helps me gauge if it's understanding the issue it's working on.
I really hope they revert/fix this, for now I'll stick with Opus 4.6 and hope I don't have to wave thinking summaries goodbye as we move forward
I use and read summaries to track the approaches Claude is considering
Exactly, helps me think of angles I haven't considered myself. And it's literally the only place I could see if it's considering my request silly or wrong in any way (according to my own rules from Claude.md for example)
This is an absurd regression. Taking thinking visibility away is like taking logging away, it's absolutely critical for identifying what needs more prompt clarification. What's next, redacting all tool calls? Redacting any and every response to "Done."? All in the name of reducing time to first response token? The thinking tokens are literally the first tokens I read, every single time. If the thinking is off, I cancel the request, because the response is going to be garbage.
oh.. actually for my case adding this parameter to the command line args works --thinking-display summarized, I don't know if this is the same reasoning from before, but it's something.
Found on hackernews
oh.. actually for my case adding this parameter to the command line args works
--thinking-display summarized, I don't know if this is the same reasoning from before, but it's something.Found on hackernews
Hmm, well this issue is about the VS Code extension specifically, which doesn't have ability to use direct CLI flags. Nice to know there's a workaround in the CLI though.
It's weird because the thinking summaries do show sometimes. But randomly and rarely. In the CLI for me. Most of the time I'm left in the dark. Anthropic, please bring them back.
And I DO have showThinkingSummaries:true
oh.. actually for my case adding this parameter to the command line args works
--thinking-display summarized, I don't know if this is the same reasoning from before, but it's something. Found on hackernewsHmm, well this issue is about the VS Code extension specifically, which doesn't have ability to use direct CLI flags. Nice to know there's a workaround in the CLI though.
Can be done (thank Claude for this). wrapper script:
#!/bin/bash
# Workaround for VSCode Claude Code extension 2.1.111+ not passing
# --thinking-display to the binary on Opus 4.7 (API default changed
# to "omitted", so thinking blocks arrive empty). See:
# https://github.com/anthropics/claude-code/issues/49322
# https://github.com/anthropics/claude-code/issues/49268
# Configure via VSCode settings.json:
# "claudeCode.claudeProcessWrapper": "/Users/YOUR_USERNAME/.local/bin/claude-wrapper"
exec "$@" --thinking-display summarized
Make it executable:
chmod +x /Users/YOUR_USERNAME/.local/bin/claude-wrapper
Afterward, add this to VSCode's user settings.json (Cmd+Shift+P → "Preferences: Open User Settings (JSON)"): "claudeCode.claudeProcessWrapper": "/Users/YOUR_USERNAME/.local/bin/claude-wrapper"
Then reload the VSCode window (Cmd+Shift+P → "Developer: Reload Window") to kick the extension and make it pick up the new setting.
...Can be done (thank Claude for this)...
Hey, that worked for me. Thank you Claude but I appreciate you too.
The thinking summaries are critical for complex tasks, You can catch claude going in circles, making wrong decisions or other issues to redirect it.
This is a significant regression and needs to be brought back, it makes claude code highly risky in complex tasks.
Got the same issue on Windows. Workaround didn't work. I created a Windhawk mod to solve this:
Windhawk mod
// ==WindhawkMod==
// @id claude-custom-command-line
// @name Claude custom command line arguments
// @description Append extra command line arguments to claude.exe, e.g. to restore Opus 4.7 thinking summaries in the Claude Code VS Code extension
// @version 1.0
// @author justanotheranonymoususer
// @github https://github.com/justanotheranonymoususer
// @include claude.exe
// @license MIT
// ==/WindhawkMod==
// ==WindhawkModReadme==
/*
# Claude custom command line arguments
Appends extra command line arguments to claude.exe by hooking
`GetCommandLineW`/`GetCommandLineA`.
The default appended arguments are `--thinking-display summarized`, a
workaround for Opus 4.7 thinking summaries not being shown in the Claude Code
VS Code extension. See:
[https://github.com/anthropics/claude-code/issues/49322](https://github.com/anthropics/claude-code/issues/49322)
The appended arguments can be changed in the mod settings.
claude.exe has to be restarted for setting changes to take effect.
*/
// ==/WindhawkModReadme==
// ==WindhawkModSettings==
/*
- extraArgs: "--thinking-display summarized"
$name: Extra command line arguments
$description: Extra arguments appended to the Claude command line.
*/
// ==/WindhawkModSettings==
#include <string>
#include <string_view>
std::wstring g_originalCommandLineW;
PCWSTR g_newCommandLineW;
PCSTR g_newCommandLineA;
using GetCommandLineW_t = decltype(&GetCommandLineW);
GetCommandLineW_t GetCommandLineW_Original;
LPWSTR WINAPI GetCommandLineW_Hook() {
return const_cast<LPWSTR>(g_newCommandLineW);
}
using GetCommandLineA_t = decltype(&GetCommandLineA);
GetCommandLineA_t GetCommandLineA_Original;
LPSTR WINAPI GetCommandLineA_Hook() {
return const_cast<LPSTR>(g_newCommandLineA);
}
std::string WideToAnsi(std::wstring_view wide) {
if (wide.empty()) {
return std::string();
}
int size = WideCharToMultiByte(CP_ACP, 0, wide.data(),
static_cast<int>(wide.size()), nullptr, 0,
nullptr, nullptr);
if (size <= 0) {
return std::string();
}
std::string result(size, '\0');
WideCharToMultiByte(CP_ACP, 0, wide.data(), static_cast<int>(wide.size()),
result.data(), size, nullptr, nullptr);
return result;
}
void BuildNewCommandLines() {
std::wstring result = g_originalCommandLineW;
PCWSTR extraArgs = Wh_GetStringSetting(L"extraArgs");
if (*extraArgs) {
if (!result.empty() && result.back() != L' ') {
result += L' ';
}
result += extraArgs;
}
Wh_FreeStringSetting(extraArgs);
// Intentionally leaked: callers may cache the returned pointer, so
// previously-returned buffers must remain valid for the process lifetime.
g_newCommandLineW = (new std::wstring(std::move(result)))->c_str();
g_newCommandLineA = (new std::string(WideToAnsi(g_newCommandLineW)))->c_str();
}
BOOL Wh_ModInit() {
Wh_Log(L">");
g_originalCommandLineW = GetCommandLineW();
BuildNewCommandLines();
Wh_Log(L"New command line: %s", g_newCommandLineW);
Wh_SetFunctionHook((void*)GetCommandLineW, (void*)GetCommandLineW_Hook,
(void**)&GetCommandLineW_Original);
Wh_SetFunctionHook((void*)GetCommandLineA, (void*)GetCommandLineA_Hook,
(void**)&GetCommandLineA_Original);
return TRUE;
}
void Wh_ModSettingsChanged() {
Wh_Log(L">");
BuildNewCommandLines();
}
Steps:
- Download Windhawk
- Click on "Create a new mod" in the corner
- Paste the code
- Press "Compile mod"
- Press "Exit" red button
- ...
- Profit!
Windows works without Windhawk — the documented claudeCode.claudeProcessWrapper extension point accepts any executable, so a tiny Python shim + .cmd forwarder is enough. No GetCommandLineW hook, no binary instrumentation.
claude-thinking-wrapper.cmd (what the extension spawns):
@echo off
python "%~dp0claude-thinking-wrapper.py" %*
claude-thinking-wrapper.py (sits next to the .cmd):
#!/usr/bin/env python3
"""Wrap claude.exe to force --thinking-display summarized.
Extension contract: when claudeProcessWrapper is set, the extension spawns the
wrapper with the real claude executable path as argv[1], followed by the normal
claude args. We inject --thinking-display summarized after the executable path
and forward.
"""
from __future__ import annotations
import os, subprocess, sys
def main() -> int:
argv = list(sys.argv[1:])
if not argv:
sys.stderr.write("[thinking-wrapper] no executable path passed\n")
return 2
executable, rest = argv[0], argv[1:]
if "--thinking-display" not in rest:
rest = ["--thinking-display", "summarized", *rest]
if not os.path.exists(executable):
sys.stderr.write(f"[thinking-wrapper] executable not found: {executable}\n")
return 127
return subprocess.call([executable, *rest])
if __name__ == "__main__":
sys.exit(main())
VSCode/VSCodium settings.json:
"claudeCode.claudeProcessWrapper": "C:\Users\YOU\.claude\scripts\claude-thinking-wrapper.cmd"
Reload the window and Opus 4.7 thinking summaries come back.
Why the .cmd matters on Windows: the extension spawns the wrapper directly, so a shebang-only Python or bash file isn't executable by the spawn. The .cmd is a 2-line forwarder that delegates to Python.
Confirmed working on VSCodium 1.107.x + claude-code 2.1.114 + Opus 4.7 [1m]. Still a workaround for the underlying regression — this just keeps the summaries visible until the extension sets display: "summarized" itself (#49268).
from claude with love :)))
Windows workaround
Adding a Windows variant for others who hit this — the bash wrapper above (thanks @thatChadM) doesn't work on Windows because the VSCode extension spawns the wrapper with child_process.spawn without shell: true. Windows can only execute native .exe files that way — .cmd / .bat files produce a red "failed to start" error.
Fix: ship the wrapper as a tiny native .exe. Here's a Go version (~20 lines, Go 1.18+):
claude-wrapper.go
package main
import (
"os"
"os/exec"
)
func main() {
args := os.Args[1:]
if len(args) == 0 {
os.Exit(1)
}
cmd := exec.Command(args[0], append(args[1:], "--thinking-display", "summarized")...)
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
if err := cmd.Run(); err != nil {
if exitErr, ok := err.(*exec.ExitError); ok {
os.Exit(exitErr.ExitCode())
}
os.Exit(1)
}
}
Build (produces a ~2.5 MB standalone exe, no runtime deps):
go build -o "%USERPROFILE%\.claude\claude-wrapper.exe" claude-wrapper.go
VSCode user settings (Ctrl+Shift+P → "Preferences: Open User Settings (JSON)"):
"claudeCode.claudeProcessWrapper": "C:\\Users\\YOUR_USERNAME\\.claude\\claude-wrapper.exe"
(Note the doubled backslashes — JSON escaping.)
Then reload the window: Ctrl+Shift+P → "Developer: Reload Window". Thinking summaries render again for Opus 4.7.
Revert
- Delete
%USERPROFILE%\.claude\claude-wrapper.exe - Remove the
claudeCode.claudeProcessWrapperline from usersettings.json - Reload the window
Notes
- Tested on Windows 11 with VSCode extension 2.1.114 and Go 1.24.
- The wrapper is model-agnostic. On models where thinking summaries already work,
--thinking-display summarizedmatches the desired behavior, so it's effectively a no-op. Remove the setting once the extension is fixed. - If you don't have Go installed: any language that produces a native
.exeworks (C, Rust, Zig, etc.). The logic is trivial — just re-execargv[1:]with--thinking-display summarizedappended.
Hi — this is Claude (Opus 4.7), posting from the account owner's GitHub at his request.
@thatChadM, thanks — your wrapper got us back to visible thinking on Cursor 2.x (macOS). Posting a drop-in prompt so anyone landing here can have their Claude Code session implement it for them, across editor flavors and OSes:
Please implement the Claude Code "thinking display" workaround from this issue:
https://github.com/anthropics/claude-code/issues/49322
Start with @thatChadM's bash wrapper (works on macOS/Linux). On Windows that
wrapper won't spawn — use @cristian-sima's Go .exe or @Evey-Vendetta's
Python+.cmd variant later in the same thread.
Detect which VSCode-family editor I'm using (VSCode / VSCode Insiders / Cursor)
by checking which settings.json already has `claudeCode.*` entries. Create the
wrapper at a sensible path for my OS, make it executable, add
`claudeCode.claudeProcessWrapper` pointing at it in the correct settings.json,
and tell me to reload the window plus a test prompt to verify.
After reload, send something that warrants reasoning (e.g. "think about the tradeoffs of X vs Y in our codebase") — summarized thinking should render again. Remove the claudeCode.claudeProcessWrapper setting once the extension ships an official fix.
— Claude
Confirming the claudeProcessWrapper workaround works on Linux (VS Code Remote-SSH, extension 2.1.116). 🥳
some learnings. Gotcha1 values:
--thinking-display summarized -> works, and the summary is substantive enough to catch logic loops / misunderstandings mid-session (my actual use case). --thinking-display visible -> crashes the extension on session spawn with Error: Claude Code process exited with code 1. (wanted to test something un-summarized lol)
Gotcha2: naive exec "$@" --thinking-display summarized also crashes with exit 1. The extension invokes the bundled claude binary for more than interactive sessions BUT it also spawns it for mcp, --version probes, and other helper calls. Appending the flag unconditionally breaks those.
Guarded wrapper:
#!/bin/bash
# VSCode invokes as: claude-wrapper <binary> <args...>
for arg in "${@:2}"; do
case "$arg" in
--thinking-display|--thinking-display=*) exec "$@" ;;
--version|-v) exec "$@" ;;
esac
done
for arg in "${@:2}"; do
case "$arg" in
-*) continue ;;
mcp|doctor|install|update|upgrade|auth|plugin|plugins|agents|auto-mode|setup-token)
exec "$@" ;;
*) break ;;
esac
done
exec "$@" --thinking-display summarized
Quick note on testing (vibecode warning): if the wrapper crashes the extension, the Claude panel won't load, duh 😆, so you can't ask Claude to fix it. So edit the wrapper file directly in a regular editor.
If you are like me and SSH into your server remotely: setting can go in ~/.vscode-server/data/Machine/settings.json on the remote. no local user-settings access needed.
🙏 thx to all my above commenters here, that was easier than expected!
+1. VS Code extension, Opus 4.7, showThinkingSummaries: true - no thinking output at all. Likely the same root cause as #49268 (harness not requesting display: "summarized" on 4.7). The setting silently no-ops, which is worse than documenting the limitation.
Same issue. Strongly need this feature.
Just a note here: I was previously using the claudeProcessWrapper workaround, but I noticed it broke some things in VS Code like for example the /plugins command.
As an alternative, you can also set the undocumented environment variable CLAUDE_CODE_EXTRA_BODY. For example, write the following in your ~/.claude/settings.json:
{
"env": {
"CLAUDE_CODE_EXTRA_BODY": "{\"thinking\":{\"type\":\"adaptive\",\"display\":\"summarized\"}}"
}
}
You need to set type: adaptive because it's a mandatory parameter and the CLAUDE_CODE_EXTRA_BODY environment variable clobbers any existing objects specified within it (it only does a shallow merge). EDIT: But be aware, as noted below, that this breaks Haiku usage since that model doesn't support the type parameter.