sessions: Refresh chat status after background completion - #333804
Merged
Sandeep Somavarapu (sandy081) merged 1 commit intoSep 1, 2026
Merged
Conversation
Reacquire the owning session state when a chat turn completes so main and hidden chat statuses do not remain stale after the idle subscription expires. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sandeep Somavarapu (sandy081)
enabled auto-merge (squash)
September 1, 2026 16:14
Copilot started reviewing on behalf of
Sandeep Somavarapu (sandy081)
September 1, 2026 16:14
View session
Contributor
There was a problem hiding this comment.
Copilot review overview
Review tier: Balanced
Findings: None
What changed in this PR
Refreshes Agent Host chat status when background work completes after state-subscription expiry.
Changes:
- Reacquires the owning session-state subscription on chat completion.
- Adds regression coverage for background subagent completion.
| File | Description |
|---|---|
baseAgentHostSessionsProvider.ts |
Refreshes owning session chat state on turn completion. |
localAgentHostSessionsProvider.test.ts |
Verifies stale main and subagent statuses are updated. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Benjamin Christopher Simmonds (benibenj)
approved these changes
Sep 1, 2026
Contributor
|
This PR will be automatically cherry-picked to |
Sandeep Somavarapu (sandy081)
deleted the
sandy081/agents/regression-investigation-pr332931
branch
September 1, 2026 16:40
Bhavya U (bhavyaus)
pushed a commit
that referenced
this pull request
Sep 1, 2026
Reacquire the owning session state when a chat turn completes so main and hidden chat statuses do not remain stale after the idle subscription expires. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #333785
What changed
Why
Parent session rows now present the main chat status. Multi-chat sessions, including sessions with hidden subagent chats, keep that status in the chat catalog. When a background session's state subscription expired,
ChatTurnCompleterefreshed only aggregate session metadata, leaving the main-chat override stuck at In Progress until the session was reopened.Validation
npm run compilenpm run hygienegit diff --check