Skip to content

feat: render API-supplied health headlines in agent status (PCC-822)#173

Merged
mattshep merged 1 commit intomainfrom
pcc-822
May 7, 2026
Merged

feat: render API-supplied health headlines in agent status (PCC-822)#173
mattshep merged 1 commit intomainfrom
pcc-822

Conversation

@mattshep
Copy link
Copy Markdown
Contributor

@mattshep mattshep commented May 5, 2026

format_health_lines now prefers health.headline when the API provides one, showing the customer-friendly label (e.g. "Out of memory") instead of the raw k8s vocabulary ("CrashLoopBackOff (OOMKilled, exit 137)"). The exit code is appended as its own subhead segment so it remains visible.

Older API responses without the headline field continue to render via the existing string-construction path — additive on the API side, so no release-order constraint between API and CLI.

format_health_lines now prefers health.headline when the API provides one,
showing the customer-friendly label (e.g. "Out of memory") instead of the
raw k8s vocabulary ("CrashLoopBackOff (OOMKilled, exit 137)"). The exit
code is appended as its own subhead segment so it remains visible.

Older API responses without the headline field continue to render via the
existing string-construction path — additive on the API side, so no
release-order constraint between API and CLI.
@mattshep mattshep requested review from cbrianhill and markbackman May 5, 2026 18:01
@mattshep mattshep self-assigned this May 5, 2026
@linear
Copy link
Copy Markdown

linear Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

@markbackman markbackman left a comment

Choose a reason for hiding this comment

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

Looks great!

@mattshep mattshep merged commit dbe0048 into main May 7, 2026
2 checks passed
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.

3 participants