Skip to content

Speed up session listing - #446

Open
irh wants to merge 1 commit into
agentclientprotocol:mainfrom
irh:speed-up-session-listing
Open

Speed up session listing#446
irh wants to merge 1 commit 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).

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).
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