feat: implement per-turn changeset recompute logic and associated tests (#317256)

* fix: update changeset labels and descriptions to reflect branch changes

* Update tests

* feat: implement per-turn changeset recompute logic and associated tests

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* updates

* Refactor comments in agentService tests to clarify handling of git state in transient sessions

* Improve teardown logic in sessionDiffs integration test to handle Windows file locks

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Don Jayamanne
2026-05-19 13:48:02 +02:00
committed by GitHub
co-authored by Copilot Autofix powered by AI
parent 3d0bb6af4c
commit a45bf445cf
9 changed files with 521 additions and 82 deletions
@@ -546,7 +546,7 @@ suite('ProtocolServerHandler', () => {
summary: 'Session With Changesets',
changesets: [
{
label: 'Session Changes',
label: 'Branch Changes',
uriTemplate: `${sessionUri}/changeset/session`,
additions: 5,
deletions: 2,
@@ -565,7 +565,7 @@ suite('ProtocolServerHandler', () => {
const result = (resp as unknown as { result: ListSessionsResult }).result;
assert.deepStrictEqual(result.items[0].changesets, [
{
label: 'Session Changes',
label: 'Branch Changes',
uriTemplate: `${sessionUri}/changeset/session`,
additions: 5,
deletions: 2,