feat: add VS Code Remote SSH / vscode-server Copilot session support#80
Open
VSydorenko wants to merge 1 commit into
Open
feat: add VS Code Remote SSH / vscode-server Copilot session support#80VSydorenko wants to merge 1 commit into
VSydorenko wants to merge 1 commit into
Conversation
- Add ~/.vscode-server and ~/.vscode-server-insiders paths to findVsCodeDirs() so the extension detects sessions from VS Code Remote SSH servers, not only local installations. - Fix harnessFromPath() to return 'Copilot' for .vscode-server paths (was classified as 'Local Agent', hiding Copilot sessions from charts). - Add new parser-debug-logs.ts that handles the Copilot Chat debug-logs span format (GitHub.copilot-chat/debug-logs/<sessionId>/main.jsonl), which is the primary session source on newer VS Code versions (April 2026+). - Add transcript parsing for GitHub.copilot-chat/transcripts/<sessionId>.jsonl (events format, similar to CLI) so sessions from both transcript and debug-log formats are loaded with deduplication. - Improve LLM fallback in panel-llm.ts: add Claude/o4-mini families to selectModel() and reset modelOptions on first JSON parse failure so the next retry uses plain-text mode instead of structured output.
Author
|
@microsoft-github-policy-service agree |
|
Related with #63 |
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.
Problem
When using VS Code Remote SSH, Copilot Chat session data lives on the remote server at
~/.vscode-server/data/User/workspaceStorage/. The extension only searched~/.config/Code/User/workspaceStorage/(local path), so all Copilot sessions were invisible on Remote SSH setups.Additionally, newer VS Code versions (April 2026+) write sessions in two new formats not previously parsed:
GitHub.copilot-chat/transcripts/<sessionId>.jsonl(events format)GitHub.copilot-chat/debug-logs/<sessionId>/main.jsonl(spans format)The old
chatSessions/directory is no longer populated on these newer versions.Changes
src/core/parser-vscode.tsfindVsCodeDirs(): Added~/.vscode-serverand~/.vscode-server-insiderspaths for Remote SSH support.harnessFromPath(): Fixed —.vscode-serverpaths now return'Copilot'instead of'Local Agent'.processWorkspaceEntry/Async(): Added parsing for transcripts and debug-logs with deduplication.src/core/parser-debug-logs.ts(new file)Parser for the Copilot Chat span format. Each
main.jsonlline is a span:session_start,user_message,llm_request,tool_call,agent_response,turn_end.src/webview/panel-llm.tsselectModel()modelOptionson JSON parse failure to disable structured output before retryingResult
Before: 0 Copilot sessions on Remote SSH.
After: 172 sessions loaded, all 3 harnesses visible in the dashboard.