Repository navigation
Open
Labels
agents-windowbugIssue identified by VS Code Team member as probable bugchat-inputstaleIssues that have not been triaged in an appropriate amount of timetriage-needed
Description
In the Agents window, the chat input of an active chat offers no working way to reference another session. The "Sessions..." picker is empty, #session completion has no suggestions, and pasting a session link leaves plain text. Users expect a session reference to appear as an attachment pill, the same way session links appear in agent responses.
Environment
- VS Code Insiders 1.146.0-insider, commit d9cccdd (2026-11-06)
- Windows
- Agents window, local Agent Host Copilot CLI sessions (frontend resources
agent-host-copilotcli:/<id>, backend resourcesahp-session:/<id>)
Steps to reproduce
- Open an existing chat in the Agents window. Click Add Context (+) > "Sessions...". The picker (placeholder "Select a session") shows only "Go back", although the sidebar lists several local sessions.
- In the same input, type
#sesand press Ctrl+Space. The suggest widget shows "No suggestions." - Use "Copy Link" on a session in the sidebar and paste the link (
vscode-insiders://agents/agent-host-session/ahp-session/<uuid>) into the input. It stays as plain text, and no attachment or pill is created.
Expected
Each of these lets the user attach another session as a session reference, shown as an attachment pill.
Root cause analysis (main)
SessionReferenceContextPickerPickinsrc/vs/workbench/contrib/chat/browser/actions/chatContext.tslists sessions fromIChatSessionsService.getChatSessionItems([Local, Background, AgentHostCopilot]). In the Agents window,AgentHostSessionListContribution(src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListContribution.ts) returns early withif (this._isSessionsWindow) return;, so it never registers the agent host session item controllers. The picker is therefore always empty there. The workbench#session:completion insrc/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.tsreads the same empty source.- The Agents window has its own
SessionReferenceCompletions(src/vs/workbench/contrib/sessions/browser/chat/sessionReferenceCompletions.ts, restored in sessions: restore #session references for /troubleshoot in the composer #343378), which readsISessionsManagementService. It is wired only intoSharedChatInputComposer, whichnewChatWidget.tsandnewChatInSessionWidget.tsuse. The active chat input inChatView(src/vs/workbench/contrib/sessions/browser/chat/chatView.ts) is a regular ChatWidget input and does not get it. chatPasteProviders.tsturns only GitHub issue and pull request URLs into attachments. No paste provider handlesagent-host-sessionlinks.
Suggested fixes
- Make "Sessions..." and
#sessionin the Agents window read fromISessionsManagementService, or addSessionReferenceCompletionsto the active chat input. - Add a paste provider that turns
agent-host-sessionlinks into session reference attachments.
Related: #323969 tracks how referenced sessions become model-readable attachments across session types. This issue covers the input entry points in the Agents window.
Metadata
Metadata
Assignees
Labels
agents-windowbugIssue identified by VS Code Team member as probable bugchat-inputstaleIssues that have not been triaged in an appropriate amount of timetriage-needed
Activity
alexdima commentedon Nov 28, 2026
I tried this on VS Code Insiders 1.147.0-insider (macOS), signed in, in the Agents window, with three local sessions in the sidebar:
#ses+ Ctrl+Space: still broken. The suggest widget shows "No suggestions."The clip below shows all three. I'm keeping this open for the picker and the
#sessioncompletion.346531-sessions-picker-and-hash-full.mp4
🤖 Authored with GitHub Copilot on behalf of Alexandru Dima (@alexdima).