Repository navigation
chat: list prompts, open a turn by ID, and page by cursor - #620
Draft
Osvaldo Ortega (osortega) wants to merge 3 commits into
Draft
Osvaldo Ortega (osortega) wants to merge 3 commits into
Osvaldo Ortega (osortega) wants to merge 3 commits into
Conversation
Let clients list prompt previews, read a contiguous window by turn ID, and locate matching text without extending the live subscription. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Nov 20, 2026
Make the prompt index and direct turn-window reads available on their own. Advertise the pair with a per-chat presence object; keep subscription paging unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Start at the selected turn rather than centering a window. Return opaque continuations on each available side, leaving the live chat subscription unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
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.
A client at turn 100 can show the full prompt list, open turn 45, and keep reading from there without downloading the gap.
historyBrowsing: {}. Without it, existing subscription paging (fetchTurns) still works as before.listChatTurnsreturns stable IDs and short prompt previews in transcript order, without replies or file-change statistics.readChatTurnswithfromTurnId: "t45"and, for example,limit: 5. The first page starts at 45 and can contain 45–49. To scroll, pass either itspreviousCursorornextCursorback ascursor. A missing cursor marks that end. Reads are byte-bounded, private, and do not change the live subscription.Start with the example in the chat spec. Host-side Find is in #623, stacked on this PR. Merge this PR first, then retarget #623 to
main. The VS Code implementation is tracked in microsoft/vscode#349287; avoiding collapsed-gutter file-change subscriptions (microsoft/vscode#348141) requires a client change, not more fields in the outline.Validation:
npm run generatepassed,npm testpassed (676 tests), and the shared wire fixtures passed locally in TypeScript, Go, Rust, Swift, Kotlin (JDK 17), and .NET. No live host interoperability or VS Code UI run was performed.