claude-code - 💡(How to fix) Fix [BUG]VS Code extension: slash command triggers API Error: Content block not found

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…

Error Message

API Error: Content block not found

Partial output before failure:

Got it — I'll follow those guidelines: surface assumptions, keep changes minimal, stay surgical, and define verifiable success criteria before implementing.

EnterPlanMode Entered plan mode. You should now focus on exploring the codebase...

我先确认项目结构和现有模式,再给你一个可执行的最小实现方案。

API Error: Content block not found

Code Example

API Error: Content block not found

Partial output before failure:


Got it — I'll follow those guidelines: surface assumptions, keep changes minimal, 
stay surgical, and define verifiable success criteria before implementing.

EnterPlanMode
Entered plan mode. You should now focus on exploring the codebase...

我先确认项目结构和现有模式,再给你一个可执行的最小实现方案。

API Error: Content block not found
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?

When running the /karpathy-guidelines slash command in the VS Code extension, the command loads successfully and Claude begins responding, but the session then crashes with API Error: Content block not found. Additionally, Claude incorrectly enters Plan Mode despite the user explicitly requesting not to.

This is reproducible across multiple attempts, including after Developer: Reload Window and /clear.

What Should Happen?

The slash command should apply behavioral guidelines without breaking the session Claude should continue to execute the user's task normally after the skill is loaded Claude should respect the user's explicit instruction to not enter Plan Mode No Content block not found error should occur during normal task execution

Error Messages/Logs

API Error: Content block not found

Partial output before failure:


Got it — I'll follow those guidelines: surface assumptions, keep changes minimal, 
stay surgical, and define verifiable success criteria before implementing.

EnterPlanMode
Entered plan mode. You should now focus on exploring the codebase...

我先确认项目结构和现有模式,再给你一个可执行的最小实现方案。

API Error: Content block not found

Steps to Reproduce

1 Open Claude Code in VS Code extension 2 Run /karpathy-guidelines 3 Send a task prompt: 用 TypeScript 实现一个用户注册功能,要求支持邮箱验证。 请严格遵循 Karpathy guidelines。请不要进入 Plan Mode,直接正常思考并实现。 4 Claude starts responding, loads the skill, begins task execution 5 Session crashes with API Error: Content block not found

Note: Tested with Developer: Reload Window and /clear before retrying — issue persists.

Claude Model

Other

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.100 && 2.1.132

Platform

Other

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

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