claude-code - 💡(How to fix) Fix [BUG] [VSCODE] Fails to re-prompt (ask user tool) when opening a previous session after a restart [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#46433Fetched 2026-04-11 06:20:25
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

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 I open a previous session after reloading VS Code, if the agent stopped at the ask user tool, it doesn't restore the prompt.

What Should Happen?

Re-show the prompt when I open the session

Error Messages/Logs

Steps to Reproduce

  1. Start a session (plan or something to get a prompt)
  2. Restart VS Code
  3. Re-open the session and observe that there is no re-prompt

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.101 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

Using the Claude Code extension under WSL via VS Code WSL extensions

extent analysis

TL;DR

The issue can be addressed by modifying the session restoration logic to re-show the prompt when a session is re-opened after a restart.

Guidance

  • Investigate the session restoration code to identify why the prompt is not being re-shown after a restart.
  • Verify that the ask user tool state is being properly saved and restored when the session is re-opened.
  • Check if there are any specific settings or configurations in the Claude Code extension or VS Code that may be affecting the prompt restoration behavior.
  • Consider adding a workaround to manually re-show the prompt when a session is re-opened, if a full fix is not feasible.

Example

No code snippet can be provided without more information about the specific implementation details.

Notes

The issue may be specific to the Opus Claude model or the WSL setup, and may not be reproducible in other environments.

Recommendation

Apply a workaround to manually re-show the prompt when a session is re-opened, as the root cause of the issue is not clear and a full fix may require significant changes to the session restoration logic.

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