feat(sessions): list and resume past sessions - #51
Merged
Conversation
danielkov
force-pushed
the
feat/session-listing
branch
from
August 29, 2026 13:03
d843226 to
ab3f010
Compare
danielkov
enabled auto-merge (squash)
August 29, 2026 13:04
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a workspace-scoped catalog of durable sessions and exposes it through
kit sessions, the TUI/sessionspicker, and ACP v1/v2session/list. Session listings are newest-first and include stable titles, current previews where supported, and updated timestamps.Motivation
Persisted sessions were resumable only when the caller already knew the session ID. This makes past sessions discoverable from Kit's local interfaces and from protocol clients.
Impact
Users can list and resume prior sessions without copying IDs from earlier output. ACP v1 clients can use the advertised optional list capability, while ACP v2 clients use the standard session listing method. Unbound legacy transcripts remain resumable by a known ID but are excluded from discovery until they are bound to a workspace.
Technical details
Catalog isolation and compatibility
The shared catalog resolves scoped, global, and legacy transcript authorities without changing the persistent schema. It preserves stable titles through compaction and migration, skips malformed individual entries, sanitizes display metadata, and prevents metadata from leaking across workspaces.
Non-blocking protocol and TUI discovery
ACP handlers and the TUI run filesystem discovery off their async event paths. TUI updates and catalog responses carry attachment generations so stale events cannot cross session transitions.
ACP behavior
ACP v1 advertises
sessionCapabilities.listand implements exactcwdfiltering plus opaque cursor pagination. ACP v2 reuses the same catalog. Both versions report malformed cursors as invalid parameters.