Repository navigation
Description
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?
claude --continue -p "..." no longer works when the originating session was also started with -p.
WORKAROUND: export CLAUDE_CODE_ENTRYPOINT=sdk-cli (Just cli prior to 2.1.108)
Root Cause
This is caused by the 2.1.90 change: "Changed --resume picker to no longer show sessions created by claude -p or SDK invocations".
The flow is:
claude -p "..."creates a session tagged withsessionKind = "print"(or similar)claude --continue -p "..."scans for the most recent session → the enrichment function filters it out becausesessionKindis set → returnsnullloadInitialMessagesseesnullfrom the--continueblock, silently falls through with no error, and starts a brand new empty session
The --continue flag should bypass the sessionKind filter, since its explicit purpose is to continue the most recent session regardless of how it was created.
Additionally, the silent fallthrough is a design issue — if --continue can't find a session, it should error rather than silently starting fresh.
What Should Happen?
--continue -p should continue the most recent session created by any previous invocation, including -p sessions. If no session can be found, it should emit an error rather than silently creating a new session.
Error Messages/Logs
No session to continue.
Steps to Reproduce
cd $(mktemp -d)
claude --max-turns 1 -p "The answer is 42. Reply only with: OK"
claude --continue # note the previous session isn't continuedImportant: Must be run from a standalone shell, NOT from within a Claude session - having CLAUDE_CODE_ENTRYPOINT set masks the problem
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.89
Claude Code Version
v2.1.90, v2.1.91, v2.1.92
Platform
Google Vertex AI
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
We rely on this functionality to run Claude in CI for multi-stage workflows where each stage uses --continue -p to build on the previous stage's context.
Activity
github-actions commentedon Apr 3, 2026
Found 1 possible duplicate issue:
--continueon 2.1.90 silently drops conversation context (regression from 2.1.89) #42376This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
jocel1 commentedon Apr 3, 2026
It's related to the change from 2.1.90: "Changed --resume picker to no longer show sessions created by claude -p or SDK invocations"
stbenjam commentedon Apr 3, 2026
Maybe similar to #42376? Some bad things happened to resume / continue.
For me this is a workaround:
stbenjam commentedon Apr 3, 2026
Actually #42376 is not quite the same, they are not using
-p, but I think the causes are related.Work around --continue + -p bug in Claude Code
15 remaining items
stbenjam commentedon May 24, 2026
This is still broken in 2.1.150.
stbenjam commentedon Jun 1, 2026
Still broken in 2.1.159.
Work around --continue + -p bug in Claude Code (openshift#77369)
stbenjam commentedon Jun 17, 2026
Still a problem in 2.1.179
fix: set CLAUDE_CODE_ENTRYPOINT in build_local_env for --continue sup…
github-actions commentedon Jul 29, 2026
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
Work around --continue + -p bug in Claude Code (openshift#77369)
github-actions commentedon Sep 23, 2026
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.