Skip to content

chat: adopt provider-owned Agent Host read state in editor window#326071

Draft
roblourens wants to merge 2 commits into
mainfrom
roblou/agents/adopt-issue-325982-editor-window
Draft

chat: adopt provider-owned Agent Host read state in editor window#326071
roblourens wants to merge 2 commits into
mainfrom
roblou/agents/adopt-issue-325982-editor-window

Conversation

@roblourens

Copy link
Copy Markdown
Member

Summary

  • expose controller-owned read state through editor-window chat session items
  • route Agent Host read/unread mutations through AHP with optimistic list updates and server-summary reconciliation
  • keep the existing editor-window read heuristic for local and extension-provided sessions
  • add focused coverage for delegation, authoritative model state, and refresh races

Testing

  • npm run typecheck-client
  • focused chat session, Agent Sessions model, and Agent Host list tests (361 passing)
  • npm run valid-layers-check
  • npm run precommit

Adopts #325982 in the editor window.

(Written by Copilot)

Route editor-window read and unread mutations through Agent Host session item controllers, while preserving the existing local fallback for other providers. Reconcile optimistic state through AHP session summaries and cover delegation, model ownership, and refresh races.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 15, 2026 22:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adopts provider-owned Agent Host read state in editor-window session lists.

Changes:

  • Adds controller APIs for read-state ownership and mutation.
  • Projects and optimistically reconciles AHP read status.
  • Adds focused delegation, state, and race tests.
Show a summary per file
File Description
mockChatSessionsService.ts Mocks read-state delegation.
chatSessionsService.test.ts Tests controller capability and delegation.
agentSessionViewModel.test.ts Tests provider-authoritative read state.
agentHostChatContribution.test.ts Tests AHP updates and refresh races.
chatSessionsService.ts Defines read-state APIs.
chatSessions.contribution.ts Implements controller delegation.
agentSessionsModel.ts Integrates provider-owned state.
agentHostSessionListStore.ts Adds optimistic status mutation.
agentHostSessionListController.ts Projects and mutates AHP read state.

Review details

  • Files reviewed: 9/9 changed files
  • Comments generated: 1
  • Review effort level: Medium

Reassert provider-owned read state when a later unread update arrives for an open chat, while preserving an explicit Mark as Unread action.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants