[FEATURE] Session picker search should also filter by project path

Resolved 💬 1 comment Opened Apr 13, 2026 by fatihgune Closed May 24, 2026

Problem

When using claude -r or /resume, the session picker's search bar filters sessions by title, git branch, tag, and PR number — but not by the project path (working directory).

This makes it hard to find sessions from a specific project when you have many sessions across different directories. For example, if I have sessions from ~/Code/my-app, ~/Code/api-server, and ~/Code/docs, I can't type "api-server" to narrow down the list.

Current behavior

The search/filter only matches against:

  • Session title
  • Git branch name
  • Tag
  • PR number / PR repository

Expected behavior

The search should also match against the session's projectPath (working directory). The projectPath field is already available on session objects (it's used for display and for the "current project only" filter), it just needs to be included in the search predicate.

Suggested fix

In the conversation log list filter, include projectPath alongside the other searchable fields:

// Pseudocode for the filter predicate:
const title = getTitle(log).toLowerCase();
const branch = (log.gitBranch || "").toLowerCase();
const tag = (log.tag || "").toLowerCase();
const pr = log.prNumber ? `pr #${log.prNumber} ${log.prRepository || ""}`.toLowerCase() : "";
const path = (log.projectPath || "").toLowerCase(); // <-- add this

return title.includes(query) || branch.includes(query) || tag.includes(query) || pr.includes(query) || path.includes(query);

Environment

  • Claude Code version: 2.1.104
  • OS: macOS (Darwin 24.6.0)

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗