Skip to content

Fix false 'waiting' status for Write/Edit in plan permission mode#58

Merged
kosinal merged 1 commit into
masterfrom
feature/57-fix-plan-mode-waiting-status
Mar 9, 2026
Merged

Fix false 'waiting' status for Write/Edit in plan permission mode#58
kosinal merged 1 commit into
masterfrom
feature/57-fix-plan-mode-waiting-status

Conversation

@kosinal

@kosinal kosinal commented Mar 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fixes false "waiting" status shown on the dashboard when Claude Code is in plan permission mode and auto-approves Write/Edit/NotebookEdit tools
  • Extends the isEditAutoApproved check to treat plan mode the same as acceptEdits mode for edit tools
  • ExitPlanMode correctly remains "waiting" since it requires user interaction

Test plan

  • Added tests for Write, Edit, NotebookEdit in plan mode → all show "running"
  • Added test for ExitPlanMode in plan mode → shows "waiting"
  • All 113 existing tests pass (no regressions)
  • Verified acceptEdits and default mode behavior unchanged

Closes #57

In plan mode, Write/Edit/NotebookEdit operations to plan files are
auto-approved by Claude Code and don't require user permission. The
PreToolUse handler now treats plan mode the same as acceptEdits mode
for edit tools, correctly showing "running" instead of "waiting".

Closes #57
@kosinal kosinal merged commit 993be0f into master Mar 9, 2026
6 checks passed
@kosinal kosinal deleted the feature/57-fix-plan-mode-waiting-status branch March 9, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False 'waiting' status for Write/Edit in plan permission mode

1 participant