feat: add healthy filter for workspace queries by sreya · Pull Request #21743 · coder/coder

Adds support for filtering workspaces by health status using
healthy:true or healthy:false in the search query.

The filter only applies to running workspaces (status=running or unset).
A workspace is considered unhealthy if any of its agents are:
- Disconnected
- Timed out waiting to connect
- Lost connection (no recent heartbeat)
- In error or shutting down lifecycle states

Fixes #21623

@sreya

@sreya

- healthy:true translates to has-agent:connected
- healthy:false translates to has-agent:disconnected,timeout
- Changed has-agent to accept multiple statuses (text array)
- Removed duplicate healthy SQL block

@sreya sreya marked this pull request as ready for review

February 3, 2026 00:22

coder-tasks[bot]

@sreya

@sreya

@sreya

@sreya

@sreya sreya deleted the filtering-k5qd branch

February 5, 2026 02:48