Track session-reference attachment support across chat session types
@anthonykim1 is already working on this.
Since Jul 2, 2026.
Assessment
This issue has not been assessed yet.
Description
Related: https://github.com/microsoft/vscode/issues/315193
Related PR: https://github.com/microsoft/vscode/pull/323773
Context
PR #323773 is intentionally scoped to Agent Host session references that can resolve to a Copilot CLI events.jsonl file. That gives Agent Host Copilot a concrete model-readable attachment source without introducing a new AHP attachment kind or attempting broader session migration.
This issue tracks the broader attachment matrix for session references across chat/session providers.
Current scoped behavior in #323773
- Agent Host-backed chats only show attachable Copilot CLI sessions in the
Sessions...picker. - Supported session references are converted into:
- a visible session chip (
Simpleattachment) for UI/replay metadata - a hidden
Resourceattachment pointing at the host-localevents.jsonl
- a visible session chip (
- Unsupported session references are not converted as model-readable attachments by Agent Host.
Session attachment matrix
| Referenced session type | Example URI | Readable history source | Supported by #323773? | Follow-up path |
|---|---|---|---|---|
| EH Copilot CLI | copilotcli:/<id> |
Local ~/.copilot/session-state/<id>/events.jsonl |
Yes | Keep using events.jsonl as attachment source |
| Local Agent Host Copilot CLI | agent-host-copilotcli:/<id> |
Local ~/.copilot/session-state/<id>/events.jsonl |
Yes | Keep using events.jsonl as attachment source |
| Remote Agent Host Copilot CLI | remote-<authority>-copilotcli:/<id> |
Remote host ~/.copilot/session-state/<id>/events.jsonl, when connection/home resolves |
Yes, when resolvable | Keep using host-local events.jsonl path |
| Other Agent Host/AHP sessions | provider-specific Agent Host session URI | No shared events.jsonl contract |
No | Need first-class AHP session-reference support or an IChatModel/session-content path |
| Claude Code sessions | provider-specific session URI | Not Copilot CLI events.jsonl |
No | Need provider-specific or common session model access |
| Local/workbench chat sessions | workbench chat session URI | IChatModel/chat session model, not Copilot CLI events.jsonl |
No | Need IChatModel/session-content attachment path |
| Other extension-host chat sessions | extension/provider-specific URI | Provider-specific, no shared events.jsonl contract |
No | Need provider-specific or first-class session-reference contract |
Open questions
- Should session references become a first-class AHP attachment concept instead of being represented through
Simple+Resource? - Should non-Copilot-CLI sessions expose model-readable attachment content through
IChatModel,IChatSessionsService, or provider-specific session content APIs? - What UI affordance should distinguish a visible session chip from hidden model-readable context resources?
Non-goal
This issue is about attaching a referenced session as context. Full session migration/porting for continue in should be tracked separately.
/cc @connor4312 @roblourens
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.9k
- PR merge metrics
- PR metrics pending
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
new release
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
All issues in microsoft/vscode
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·