Skip to content

Copilot - add session parentId to metadata#311366

Merged
lszomoru merged 3 commits intomainfrom
lszomoru/underground-catfish
Apr 20, 2026
Merged

Copilot - add session parentId to metadata#311366
lszomoru merged 3 commits intomainfrom
lszomoru/underground-catfish

Conversation

@lszomoru
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 20, 2026 13:46
@lszomoru lszomoru enabled auto-merge (squash) April 20, 2026 13:46
@lszomoru lszomoru self-assigned this Apr 20, 2026
@lszomoru lszomoru added this to the 1.118.0 milestone Apr 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 20, 2026

Screenshot Changes

Base: 334c5b7f Current: 2b19b5b4

Changed (1)

agentSessionsViewer/CompletedUnread/Dark
Before After
before after

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for propagating and persisting a “parent session id” for Copilot CLI-backed chat sessions, so that child/background sessions can be linked back to their originating session.

Changes:

  • Thread parentSessionId from initialSessionOptions into Copilot CLI session creation (sessionParentId).
  • Persist parentSessionId in the chat session metadata store and expose it via new store APIs.
  • Include sessionParentId in session metadata returned by the Copilot CLI chat session item/content providers.
Show a summary per file
File Description
extensions/copilot/src/extension/chatSessions/vscode-node/copilotCLIChatSessionsContribution.ts Parses parentSessionId from initial options and passes it into session creation; includes parent id in session item metadata.
extensions/copilot/src/extension/chatSessions/vscode-node/copilotCLIChatSessions.ts Adds sessionParentId into metadata returned for chat session content.
extensions/copilot/src/extension/chatSessions/vscode-node/chatSessionMetadataStoreImpl.ts Implements setSessionParentId / getSessionParentId backed by the metadata file.
extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotcliSessionService.ts Accepts sessionParentId on session creation options and stores it in metadata.
extensions/copilot/src/extension/chatSessions/common/chatSessionMetadataStore.ts Extends IChatSessionMetadataStore API surface with parent-id getters/setters.

Copilot's findings

  • Files reviewed: 6/6 changed files
  • Comments generated: 3

jrieken
jrieken previously approved these changes Apr 20, 2026
@lszomoru lszomoru merged commit a6209df into main Apr 20, 2026
40 of 41 checks passed
@lszomoru lszomoru deleted the lszomoru/underground-catfish branch April 20, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants