claude-code - 💡(How to fix) Fix [DOCS] [CLI] `--permission-mode plan` not restored on `--resume`/`--continue` after v2.1.132 (docs say it isn't, but it now is) [1 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#56883Fetched 2026-05-07 03:42:54
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×5
RAW_BUFFERClick to expand / collapse

Documentation Type

Incorrect/outdated documentation

Documentation Location

https://code.claude.com/docs/en/hooks

Section/Topic

PreToolUse hook section — "defer" workflow paragraph (line ~1232)

Current Documentation

The docs currently say:

--resume does not restore the permission mode from the prior session. Pass the same --permission-mode flag on resume that was active when the tool was deferred. Claude Code logs a warning if the modes differ.

This statement no longer reflects actual behavior for --permission-mode plan after v2.1.132.

What's Wrong or Missing?

A. Outdated claim about --resume and permission modes

The changelog for v2.1.132 (line 20) includes this fix:

Fixed --permission-mode flag being ignored when resuming a plan-mode session with -p --continue/--resume, and plan mode not being re-applied after ExitPlanMode within the same session

After this fix, --permission-mode plan is correctly restored when resuming a plan-mode session with -p --continue or -p --resume. The hooks.md warning that says the opposite is now incorrect.

B. Missing documentation for restored plan mode on resume

There is no documentation section that explicitly confirms that --permission-mode plan (or plan mode generally) is now restored on resume. Users who relied on the old limitation in hooks.md may not realize this now works as expected.

C. Missing documentation for ExitPlanMode re-application

The changelog also notes that "plan mode not being re-applied after ExitPlanMode within the same session" was fixed. There is no documentation that explains this behavior — i.e., that after a session calls ExitPlanMode and then resumes, plan mode is correctly re-applied.

Suggested Improvement

Update hooks.md

Remove or narrow the absolute statement that --resume never restores permission mode. Replace it with a note that reflects the v2.1.132 fix for plan mode:

For sessions deferred in plan mode, -p --resume and -p --continue correctly re-apply plan mode as of v2.1.132, including after ExitPlanMode within the same session. If you rely on other permission modes during resume, pass the same --permission-mode flag that was active when the tool was deferred.

Add new section to permission-modes.md

Add a note in the plan mode documentation clarifying the v2.1.132 fix:

Plan mode and --resume: Starting in v2.1.132, --permission-mode plan is correctly restored when resuming a session with -p --continue or -p --resume. Previously, the --permission-mode flag was ignored on resume for plan-mode sessions. Plan mode is also re-applied after ExitPlanMode within the same session.

Add to headless.md

The "Continue conversations" section could note the restored behavior:

When resuming a session that was in plan mode, the mode is restored automatically (v2.1.132+). For other permission modes, pass the same --permission-mode flag on resume.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageLine(s)Context
https://code.claude.com/docs/en/hooks~1232Warning that --resume does not restore permission mode — now outdated for plan mode
https://code.claude.com/docs/en/permission-modes119–155Plan mode entry/exit docs; no mention of resume restoration
https://code.claude.com/docs/en/headless230–248Continue conversations section; no mention of permission mode restoration

Total scope: 3 pages affected

Version: v2.1.132

Changelog entry (v2.1.132 line 20):

Fixed --permission-mode flag being ignored when resuming a plan-mode session with -p --continue/--resume, and plan mode not being re-applied after ExitPlanMode within the same session

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 [DOCS] [CLI] `--permission-mode plan` not restored on `--resume`/`--continue` after v2.1.132 (docs say it isn't, but it now is) [1 participants]