Repository navigation
chat: search retained turns without loading their replies - #623
Draft
Osvaldo Ortega (osortega) wants to merge 2 commits into
Draft
Osvaldo Ortega (osortega) wants to merge 2 commits into
Osvaldo Ortega (osortega) wants to merge 2 commits into
Conversation
Return stable match locations in visible prompts and replies. Require browsing so clients can reveal a result without loading the gap or changing another client’s view. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Integrate the browsing base without rewriting the published search branch. Match turn IDs open the first turn of a read page; search cursors remain independent. 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.
Stacked on #620. Review and merge browsing first, then retarget this PR to
main. Relative to #620, this adds one optional command:searchChatTurns. Browsing-only hosts do not need to implement it.For example, Find can locate the second
mapin the reply to turn 45 while the client is showing turn 100. The host returns{ turnId, kind, occurrence }. The client passes the match’sturnIdasfromTurnIdtoreadChatTurnsfrom #620. Turn 45 is first in the returned page; scrolling uses that page’spreviousCursorornextCursor, not the search cursor. Neither operation loads the gap or changes the live subscription.historyBrowsing: { search: {} }.historyBrowsing: {}still means list/read only.Start with the search contract. The VS Code implementation is tracked in microsoft/vscode#349287.
Validation:
npm run generatepassed,npm testpassed (683 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. The repository’s main CI workflow targets PRs againstmainand will run after retargeting.