Skip to content

Conversation

@mafredri
Copy link
Member

@mafredri mafredri commented Dec 4, 2025

When a devcontainer rebuilds, its sub-agent temporarily disconnects, causing the workspace to show as unhealthy.

image

This is a simplistic fix that excludes sub-agents from the workspace health calculation entirely. Ideally we'd only exclude them during rebuilds, but showing a healthy workspace inaccurately is less harmful than the current confusing UX.

Previously, when a devcontainer was rebuilding, its sub-agent would
become temporarily disconnected, causing the workspace to show as
unhealthy. This was confusing because the workspace itself was fine.

Sub-agents (agents with a ParentID) are now excluded from the workspace
health calculation. Their health is managed by their parent agent, and
temporary disconnections during devcontainer rebuilds should not affect
the overall workspace health status.
@mafredri mafredri force-pushed the mafredri/fix-agent-unhealth-devc-rebuild branch from 3e94111 to 67ead3a Compare December 4, 2025 12:18
Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@ssncferreira ssncferreira left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@mafredri mafredri merged commit 532a1f3 into main Dec 4, 2025
30 checks passed
@mafredri mafredri deleted the mafredri/fix-agent-unhealth-devc-rebuild branch December 4, 2025 13:38
@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants