Files
Sandeep SomavarapuandCopilot a8c1541df5 agentHost: scope changesets to chat working folders (#337263)
* agentHost: scope changesets to chats

Publish independent changeset catalogues for each chat and route changes, Git state, repository operations, and review state through the owning chat workspace while preserving session-wide checkpoints, summaries, and mutation safety.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: harden chat changeset ownership

Refresh chat and aggregate Git state concurrently, prevent session Git fallback for chats, evict removed-chat Git state, and preserve the legacy session catalogue fallback when chat catalogues are unavailable.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* sessions: scope focused changes to active chat

Read focused changes, changesets, operations, review state, and status pills from the owning chat without falling back to aggregate session state. Preserve session-wide catalogues for lists, lifecycle reporting, telemetry, and draft-session repository preparation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: move selectable changesets to chats

Make each chat the sole catalogue owner from draft creation onward while sessions retain only aggregate change summaries. Route chat-rooted subscriptions and operations through the containing session without duplicating selectable state.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: restore session changes alongside chat changes

Publish cumulative session changes separately from chat-owned changesets, scope picker visibility and ordering to the active chat, and keep last-turn changes accurate across peer chat databases.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: clarify changeset catalogue ownership

Document the final split between session-wide and chat-owned selectable changesets.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* sessions: fix changeset test fixtures

Align session test doubles and catalogue expectations with the restored session-owned Session Changes entry.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: update changeset catalogue snapshots

Record the expected chat changeset catalogue notification in provider AHP traffic after restoring session-owned changesets.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: scope changesets to working folders

Share Branch Changes across chats that use the same folder while retaining checkpoint-based active-chat changes. Route Git operations, blob reads, reviews, summaries, and monitoring through the owning folder and preserve the Sessions changes UI behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: harden folder-scoped changesets

Restore non-Git chat changes, folder-owned operation refreshes, stable summaries and catalogues, and multi-root review-ref lifecycle behavior. Keep changes pills and session workflow operations aligned with the active chat scope.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: harden changeset recomputation

Keep coalesced full recomputes from inheriting incremental turn state, and distinguish non-Git scopes from transient Git failures so incomplete worktree summaries are not persisted.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: restore chat changes across host versions

Resolve restored peer state before computing chat changes and preserve compatibility with legacy session-owned changeset catalogues. Avoid duplicate operation refreshes and remove the obsolete Branch computation path.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: restore session changes across chats

Keep Session Changes session-owned and project it into every chat while preserving chat-scoped repository and turn changesets. Remove the obsolete host-side Chat Changes production path.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Merge origin/main into sessions chat changeset ownership

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* sessions: address changeset review and CI failures

Remove the unused session-level changeset publication and obsolete Chat Changes identity so every chat consumes the provider-projected Session Changes catalogue. Harden the affected cross-platform and asynchronous CI tests by using platform-native paths and waiting for the observable completion conditions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* sessions: update fixtures for chat-owned changes

Component fixtures still mocked the removed session-level changes and changesets. Provide main-chat changes to session list fixtures and implement getChatChanges on agent feedback service mocks so the fixtures render again.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-23 18:16:41 +02:00
..
2026-09-17 22:18:25 +00:00