VSCode Extension: Plan content not visible before approval prompt in ExitPlanMode
Bug Description
When using plan mode in the Claude Code VSCode extension, calling ExitPlanMode triggers an approval prompt before the user can see the plan content. This leaves users unable to make an informed decision about whether to approve the plan.
Environment
- Tool: Claude Code VSCode Extension
- Mode: Plan mode active
- OS: Linux (Ubuntu)
Steps to Reproduce
- User triggers plan mode (e.g., via a planning task)
- Claude writes the plan to the designated plan file using the
Writetool - Claude calls
ExitPlanModeto request user approval - Bug: User sees the approval prompt but the plan file content has not been displayed/rendered in the UI
Expected Behavior
The plan content should be visible to the user before they are asked to approve or reject it. Either:
- The plan content should be displayed inline before the approval prompt
- Or the approval dialog should include/show the plan content
Actual Behavior
The approval prompt appears immediately after ExitPlanMode is called, but the plan content is not shown. The user has no way to review what they are being asked to approve.
User Impact
Users must reject the approval, manually read the plan file, and then re-trigger the approval flow — or blindly accept without knowing the plan contents.
Additional Context
This was observed during a planning session where the plan file was written to /home/user/.claude/plans/<plan-name>.md. The Write tool succeeded, but the content was never surfaced to the user before the approval prompt appeared.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗