Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.

Commit 9e7f81d

Browse files
authored
Sessions - more metadata updates (#4759)
* Sessions - more metadata updates * Pull request feedback
1 parent fb84674 commit 9e7f81d

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/extension/chatSessions/vscode-node/copilotCLIChatSessions.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,14 @@ export class CopilotCLIChatSessionContentProvider extends Disposable implements
418418
}
419419
}
420420

421+
const firstCheckpointRef = lastCheckpointRef
422+
? `${lastCheckpointRef.slice(0, lastCheckpointRef.lastIndexOf('/'))}/0`
423+
: undefined;
424+
421425
metadata = {
422426
isolationMode: IsolationMode.Workspace,
423427
workingDirectoryPath: workingDirectory?.fsPath,
428+
firstCheckpointRef,
424429
lastCheckpointRef
425430
} satisfies { readonly [key: string]: unknown };
426431
}

src/extension/chatSessions/vscode-node/copilotCLIChatSessionsContribution.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,14 @@ export class CopilotCLIChatSessionItemProvider extends Disposable implements vsc
333333
}
334334
}
335335

336+
const firstCheckpointRef = lastCheckpointRef
337+
? `${lastCheckpointRef.slice(0, lastCheckpointRef.lastIndexOf('/'))}/0`
338+
: undefined;
339+
336340
metadata = {
337341
isolationMode: IsolationMode.Workspace,
338342
workingDirectoryPath: workingDirectory?.fsPath,
343+
firstCheckpointRef,
339344
lastCheckpointRef
340345
} satisfies { readonly [key: string]: unknown };
341346
}

0 commit comments

Comments
 (0)