skip to content

When you resume a Claude Code session with claude --continue, which permission mode does it start in if it ended in plan or bypassPermissions?

level: middleimportance: nice to knowfreq 6%

answer

  1. restored, with exceptions
  2. bypass is a launch-time decision
  3. plan isn't carried into a new process
  4. the picker and /resume don't restore
  5. a flag overrides what is restored

basics

~10 s

claude --continue normally restores the mode the session ended in, but not plan or bypassPermissions: both start in the mode a new session would start in. Pass --permission-mode or --dangerously-skip-permissions to choose explicitly.

solid answer

~40 s

Resuming from a terminal with `claude --continue`, `claude --resume <session-id>`, or `claude --resume <name>` when the name matches one session restores the mode the session ended in, with exceptions. A session that ended in `bypassPermissions` or `plan` starts in the mode a **new** session would start in; bypass must be re-enabled at launch. `auto` is restored only if the account still meets auto mode's requirements, and a Manual session resumes in Manual unless a `defaultMode` from settings takes effect. The session picker, opened by `claude --resume` alone, does not restore the stored mode, and `/resume` inside a session keeps the current session's mode. `--permission-mode` or `--dangerously-skip-permissions` on the resume command overrides all of this.

go deeper

for a junior

Recall that claude --continue usually brings the session back in the same mode, and that a flag on the resume command overrides it.

for a middle

Explain the exceptions, plan and bypass not restored and auto re-checked, and that the picker and /resume don't restore at all.

for a senior

Justify why bypass must be a launch-time choice and show how a resumed session can quietly gain or lose autonomy.

for a principal

Treat resume as a policy edge: decide whether team tooling should always pass an explicit mode on resume rather than rely on restoration.

## Why the mode on resume matters A **permission mode** sets how far Claude acts without asking. When you come back to a conversation, Claude Code loads it from its transcript into a new process, and it has to decide which mode that process runs in. Restoring blindly would let a session that once ran with no checks come back with no checks, so the rules are uneven. Interactive resume in general, its picker and branching, is a separate subject; this is only about the mode. ## The terminal path: --continue and --resume with an id When you resume with `claude --continue`, `claude --resume <session-id>`, or `claude --resume <name>` where the name matches exactly one session, without `-p`, Claude Code **restores the mode the session was in**, except in these cases: | Session ended in | Mode after a terminal resume | | :- | :- | | `bypassPermissions` | The mode a new session would start in; re-enable bypass at launch to get it back | | `plan` | The mode a new session would start in | | `auto` | `auto`, only if the account still meets the auto mode requirements | | Manual | Manual when a new session would start in auto from the built-in default; if a `defaultMode` from settings takes effect, that mode instead | A mode that isn't listed, such as `acceptEdits`, comes back as it was. Passing `--permission-mode` or `--dangerously-skip-permissions` on the resume command overrides the restored mode. ```bash # came back to a bypass session inside its container: re-enable explicitly claude --continue --dangerously-skip-permissions ``` ## The paths that never restore - **The session picker.** If you pick the session from the picker, opened with `claude --resume` alone, with `claude --from-pr`, or with a name that matches more than one session, Claude Code does **not** restore the stored mode. It starts in the mode a new session would start in from the same command line. - **`/resume` inside a session.** Switching conversations from inside a running session does not restore the stored mode either; the conversation continues in the mode **your current session** is in. - **A background session that is still running.** Opening it is not a reload, so it keeps whatever mode it is in. Non-interactive resumes with `claude -p --resume` or `claude -p --continue` start in the mode a new `-p` run would, with a narrow exception that can restore plan mode when a permission prompt tool is supplied; that path belongs with scripted runs. The VS Code extension restores plan mode for a conversation that ended in it, with its own exceptions. ## How to read each exception 1. **bypassPermissions** can only be entered from a session that enabled it at launch, and a terminal resume does not carry that enablement over. Coming back to an old session therefore never silently skips every check. You opt in again with `--permission-mode bypassPermissions`, `--dangerously-skip-permissions`, or `defaultMode: "bypassPermissions"` in user, `--settings` or managed settings. 2. **plan** is not carried into a terminal resume; the session starts in your normal starting mode, and to plan again you press `Shift+Tab` or prefix a prompt with `/plan`. 3. **auto** depends on account, model and organisation settings that may have changed since the session ended, so it is re-checked. 4. **Manual** yields to a `defaultMode` from settings because that setting expresses what you want every session to start in. ## Interview traps - Assuming resume is all-or-nothing. The terminal path restores; the picker and `/resume` don't. - Expecting `Shift+Tab` to reach bypass after a resume. Bypass only joins the cycle when enabled at launch, so if the resume command did not enable it, no amount of cycling gets there. - Fixing it with a project setting. `defaultMode: "bypassPermissions"` in a project's `.claude/settings.json` does not take effect at all.

  • You select an old acceptEdits session from the picker opened by claude --resume. Which mode does it get?
    Not the stored `acceptEdits`. The picker never restores the stored mode; the session starts in whatever a new session would start in from the same command line, for example `auto` on a recent release with no flag or `defaultMode`. Pass `--permission-mode acceptEdits` on that command, or switch with `Shift+Tab` after it opens.
  • Why can't you just press Shift+Tab to get back into bypassPermissions after resuming?
    `bypassPermissions` only appears in the `Shift+Tab` cycle when the process was started with a flag or setting that enables it, such as `--dangerously-skip-permissions` or `--allow-dangerously-skip-permissions`. A plain `claude --continue` doesn't enable it, so it isn't in the cycle; you must relaunch with one of those flags.

  • Resuming always restores whatever mode the session ended in.
  • /resume inside a session switches to the stored mode of the picked conversation.
  • A bypassPermissions session comes back in bypass with claude --continue.
  • The session picker restores the stored mode just like --continue does.
  • You cannot choose a different mode when resuming a session.