[BUG] macOS desktop: Code session search buries older matches under the most recent few
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
In the macOS Claude app, Code session search returns only about five results, ranked by recency, with no way to page past them. So if I search a word that appears in more than a handful of sessions, I only get the most recent ones, and an older session that matches (even much more strongly) never shows up.
Example: one of my sessions has the word right in its title and uses it a couple hundred times in the body. Searching that word doesn't turn it up at all, because five recent sessions take the slots. Searching a rare word that only occurs in that session brings it up right away, so it's clearly indexed, just outranked and cut off.
One catch: the dialog also lists Claude.ai chats (relevance-ranked, often on top), so it can look like older items surface, but those are chats, not Code sessions.
What Should Happen?
Searching a term should be able to surface any matching Code session, not just the most recent few. Ranking by relevance, a higher result cap, or pagination through all matches would each do it.
Error Messages/Logs
Steps to Reproduce
- Open the session search in the desktop app.
- Pick a session more than a few days old, and note a word in it that also appears in several of your recent sessions.
- Search that word: only about five recent sessions appear, the older one is absent, and there's no way to page to it.
- Search a rare word that occurs only in that older session: it appears right away, confirming it's indexed and was just capped out in step 3.
Claude Model
_No response_
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude desktop app 1.20186.9 (latest per in-app check, 2026-07-14)
Platform
Other
Operating System
macOS
Terminal/Shell
Other
Additional Information
This is the macOS desktop app UI, not the CLI, so the Platform/Terminal fields don't cleanly apply. (claude --version in a terminal reports 2.1.92, but that's unrelated to this desktop-app bug.)