Skip to content

Speed up session listing - #446

Open
irh wants to merge 2 commits into
agentclientprotocol:mainfrom
irh:speed-up-session-listing
Open

irh wants to merge 2 commits into
agentclientprotocol:mainfrom
irh:speed-up-session-listing

Conversation

@irh

@irh irh commented Aug 28, 2026 •

Copy link
Copy Markdown

Instead of listing all available sessions from their transcripts and then filtering by cwd in the client, Codex can return the filtered session list from a database query, which is much faster for users with large numbers of sessions (e.g. ~30s down to ~40ms on my machine with a few hundred sessions).

This PR also fixes the issue addressed by #329 (cwd filtering works correctly during pagination).

irh added 2 commits September 16, 2026 20:59
Listing sessions via the scan-and-repair path and then filtering by cwd
in the client can take a long time. By comparison using a cwd-filtered DB
query is much faster (e.g. 40ms vs ~30s on my machine with a few hundred
sessions).
@irh
irh force-pushed the speed-up-session-listing branch from ea565cc to f437e68 Compare September 17, 2026 10:11

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant