claude-code - 💡(How to fix) Fix [UX] --resume with no past conversations should offer to start new session instead of asking to restart [2 comments, 2 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#46131Fetched 2026-04-11 06:28:15
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
commented ×2labeled ×2closed ×1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

When running claude --resume (e.g. claude --resume --chrome --allow-dangerously-skip-permissions) and there are no past conversations to resume, Claude asks the user to restart the shell without the --resume flag.

This adds unnecessary friction — the user has to exit, re-type or edit their command, and re-launch. Since the intent is clear (the user wants to use Claude), there's no reason to force a full restart.

Proposed Solution

Instead of telling the user to restart without --resume, simply display a message like:

No past conversations found. Press Enter to start a new conversation.

On Enter, proceed to start a fresh session with all other flags (e.g. --chrome, --allow-dangerously-skip-permissions) preserved. This keeps the user in flow without requiring them to manually re-invoke the command.

Alternatives Considered

  • Keep current behavior (status quo) — works but adds unnecessary friction.
  • Auto-start a new session without prompting — could be surprising if the user specifically expected to resume something.

The "press Enter" approach strikes a good balance: it informs the user that no sessions were found, while letting them proceed without leaving the terminal.

extent analysis

TL;DR

Modify the claude --resume command to display a prompt and start a new conversation when no past conversations are found, instead of asking the user to restart without the --resume flag.

Guidance

  • Check the current implementation of the --resume flag to understand how it handles the absence of past conversations.
  • Consider adding a conditional statement to display the proposed message and wait for user input (e.g., pressing Enter) before starting a new conversation.
  • Ensure that the new conversation is started with the same flags (e.g., --chrome, --allow-dangerously-skip-permissions) as the original command.
  • Test the modified behavior to verify that it works as expected and does not introduce any regressions.

Example

# Pseudocode example of the proposed change
if no_past_conversations:
  print("No past conversations found. Press Enter to start a new conversation.")
  input()  # Wait for user to press Enter
  start_new_conversation(with_flags=True)  # Start a new conversation with the original flags

Notes

The proposed solution assumes that the claude command has the necessary logic to start a new conversation and preserve the original flags. The implementation details may vary depending on the underlying codebase.

Recommendation

Apply the proposed workaround to modify the claude --resume command, as it provides a better user experience and reduces friction.

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