Add VS Code extension for Copilot chat session health tracking#1
Add VS Code extension for Copilot chat session health tracking#1
Conversation
Co-authored-by: chf3198 <5415358+chf3198@users.noreply.github.com>
Co-authored-by: chf3198 <5415358+chf3198@users.noreply.github.com>
Co-authored-by: chf3198 <5415358+chf3198@users.noreply.github.com>
…on display Co-authored-by: chf3198 <5415358+chf3198@users.noreply.github.com>
Co-authored-by: chf3198 <5415358+chf3198@users.noreply.github.com>
Co-authored-by: chf3198 <5415358+chf3198@users.noreply.github.com>
|
@copilot We must design a VS Code extension that helps developers manage GitHub Copilot chat session health. Track the number of user messages/exchanges in active chat sessions. Display current count in status bar. Warn users at configurable threshold (default 20) that context may degrade. Provide command to export session summary for handoff to new chat. Goal: prevent context window exhaustion and lost work by prompting timely session refresh. |
|
@copilot Another AI Agent helped me move and organize all development tools and local repositories to the USB Drive. It also helped to clean up the Chromebook's local drive in order to increase available drive space to the system. I now cannot find the copilot-handoff project folder. If you cannot find the repo on either drive or as a backup, then we will need to recreate the local repo from the github master repo. |
The copilot-handoff repository is already available and working in the current environment at If you need to recover it on your local Chromebook, you can clone it fresh from GitHub: git clone https://github.com/chf3198/copilot-handoff.git
cd copilot-handoff
git checkout copilot/track-chat-session-health
npm install
npm run compileThe repository contains the complete VS Code extension with all source files, documentation, and build configurations intact. |
|
@copilot Can we switch you from a Cloud Agent to a local Agent? |
Implements a VS Code extension to prevent GitHub Copilot context window exhaustion by tracking message count, warning at threshold, and enabling session handoff.
Implementation
💬 Chat: N(normal) /⚠️ Chat: N(warning with orange background)Copilot: Export Session SummaryandCopilot: Reset Session CountConfiguration
Architecture
Extension activates on startup, restores state from
workspaceState, and tracks viaonDidChangeTextDocument. Warning triggers once per threshold crossing. Session start time persists across restarts for accurate duration calculation.Known Limitation
Uses text edits as proxy for Copilot chat events since VS Code Extension API doesn't expose chat-specific events. Provides best-effort approximation within API constraints.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.