claude-code - 💡(How to fix) Fix `claude --resume` shows sessions from unrelated projects [1 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#47781Fetched 2026-04-15 06:42:32
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report
  • I am using the latest version of Claude Code

What's Wrong?

When running claude --resume from a project directory, the picker shows sessions from completely unrelated projects in other directories.

What Should Happen?

The resume picker should only show sessions from the current project (or at least the current git repo), not sessions from every project on the machine.

Steps to Reproduce

  1. cd ~/projects/project_a
  2. claude
  3. /exit
  4. cd ~/projects/project_b
  5. claude --resume
  6. Picker lists the conversation from project_a

Claude Code Version

2.1.107 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

project_a and project_b are separate git repos with different remotes. The default view of the resume picker should be scoped to the current project. The "Ctrl+A to show all projects" option exists, which implies the default view is supposed to be project-scoped — but it isn't.

extent analysis

TL;DR

The issue can be mitigated by ensuring Claude Code properly scopes the resume picker to the current project directory.

Guidance

  • Verify that the claude command is correctly configured to use the current project directory as its context.
  • Check if there's an option or configuration setting in Claude Code to explicitly set the project scope for the resume picker.
  • Investigate how Claude Code determines the project scope, possibly related to git repository detection.
  • Consider using the "Ctrl+A to show all projects" option as a temporary workaround to manually filter sessions.

Example

No code snippet is provided as the issue seems related to configuration or command-line usage rather than code.

Notes

The exact solution might depend on specifics of Claude Code's configuration options or internal logic for determining project scope, which are not detailed in the issue.

Recommendation

Apply workaround: Use the "Ctrl+A to show all projects" option and manually filter sessions until a proper fix or configuration setting is found to scope the resume picker correctly.

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