Skip to content

feat: add batch session metadata lookup - #669

Open
slapoguzov wants to merge 4 commits into
mainfrom
issue-233-batch-get
Open

slapoguzov wants to merge 4 commits into
mainfrom
issue-233-batch-get

Conversation

@slapoguzov

@slapoguzov slapoguzov commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

A session browser may load only the 50 most recent conversations via session/list, while pinned sessions and saved folders refer to much older ones. After a restart, the client still has those IDs but needs their current titles, locations and archive state to rebuild the saved views. Finding a handful of retained sessions by paging through the entire history becomes increasingly expensive as that history grows.

Add _session/batch_get to retrieve metadata for up to 100 known session IDs in one request. Successful results use the same row format as session/list, including archived sessions and sessions in worktrees, so the client can merge them with its recent page and apply its usual display filters.

The response contains the sessions whose metadata is available, in request order. Other IDs are simply omitted. The client can refresh the rows it receives while keeping its saved references, so pinned and folder views stay independent of the recent-list window.

@slapoguzov slapoguzov self-assigned this Oct 23, 2026
@slapoguzov
slapoguzov marked this pull request as draft October 23, 2026 14:31
@slapoguzov slapoguzov changed the title feat: add AIR session batch metadata lookup feat: add batch session metadata lookup Oct 23, 2026
@slapoguzov
slapoguzov marked this pull request as ready for review October 23, 2026 18:00

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