claude-code - 💡(How to fix) Fix [BUG] Thinking blocks don't expand on Opus 4.7 in VSCode extension 2.1.117 [1 comments, 2 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
anthropics/claude-code#52046Fetched 2026-04-23 07:38:00
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Thinking blocks render as "thought for Xs" in the chat panel but cannot be expanded to view content. Clicking the summary line does nothing. The thinking panel is effectively read-only (duration indicator only) when using Opus 4.7.

Error Message

Error Messages/Logs

Root Cause

Thinking blocks render as "thought for Xs" in the chat panel but cannot be expanded to view content. Clicking the summary line does nothing. The thinking panel is effectively read-only (duration indicator only) when using Opus 4.7.

Fix Action

Fix / Workaround

Notes

  • showThinkingSummaries: true is set
  • Settings schema references ctrl+o for transcript view, but that shortcut belongs to the terminal CLI — not wired in VSCode extension
  • Webview bundle still contains expandable thinking-block components (thinkingToggle, areThinkingBlocksExpanded, <details> with onToggle), so the UI exists but isn't receiving renderable content on Opus 4.7
  • Downgrading to Opus 4.6 may be a workaround, but that model is no longer in the /model picker
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Summary

Thinking blocks render as "thought for Xs" in the chat panel but cannot be expanded to view content. Clicking the summary line does nothing. The thinking panel is effectively read-only (duration indicator only) when using Opus 4.7.

Environment

  • Claude Code for VS Code: 2.1.117
  • OS: Windows 11 Pro (10.0.26200)
  • Model: claude-opus-4-7 (1M context)
  • Settings: {"effortLevel": "xhigh", "showThinkingSummaries": true}

Notes

  • showThinkingSummaries: true is set
  • Settings schema references ctrl+o for transcript view, but that shortcut belongs to the terminal CLI — not wired in VSCode extension
  • Webview bundle still contains expandable thinking-block components (thinkingToggle, areThinkingBlocksExpanded, <details> with onToggle), so the UI exists but isn't receiving renderable content on Opus 4.7
  • Downgrading to Opus 4.6 may be a workaround, but that model is no longer in the /model picker

What Should Happen?

Clicking the "thought for Xs" summary (or its chevron) expands an inline block showing the thinking content — both while it is streaming live and after it completes. Clicking again collapses it. This is the behavior that worked on Opus 4.6 and matches the <details> toggle component still present in the webview bundle.

Error Messages/Logs

Steps to Reproduce

  1. Use Opus 4.7 in the VSCode extension (native panel, not webview)
  2. Send any prompt that triggers multi-second thinking
  3. Observe "thought for Xs" line appears
  4. Click the line / its chevron → nothing happens

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.117

Claude Code Version

Claude Opus 4.6 (1M context)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

Live expansion matters for my workflow: I watch thinking as it streams to catch loops or off-track reasoning and interrupt early. On Opus 4.7 the duration indicator is the only signal, which prevents me from doing so. If this isn't a bug, it's an update I'm very unhappy with.

extent analysis

TL;DR

Downgrade to Opus 4.6 or wait for a fix, as the issue is likely related to changes in Opus 4.7 that broke the thinking block expansion feature.

Guidance

  • Verify that the issue is specific to Opus 4.7 by testing with other models or versions.
  • Check the webview bundle for any potential issues with the thinkingToggle and areThinkingBlocksExpanded components.
  • Consider using the terminal CLI with the ctrl+o shortcut to view transcripts as a temporary workaround.
  • Test the expansion feature in the webview to see if it works outside of the native panel.

Example

No code snippet is provided as the issue seems to be related to the Opus model version rather than a specific code implementation.

Notes

The issue may be specific to the Opus 4.7 model, and downgrading to Opus 4.6 may be a temporary solution. However, since Opus 4.6 is no longer available in the /model picker, this may not be a viable long-term solution.

Recommendation

Apply workaround: Downgrade to Opus 4.6 if possible, or wait for a fix from the developers, as the issue is likely related to changes in Opus 4.7.

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

claude-code - 💡(How to fix) Fix [BUG] Thinking blocks don't expand on Opus 4.7 in VSCode extension 2.1.117 [1 comments, 2 participants]