Skip to content

Fix TypeError when startedAt is null in monitor renderers#120

Merged
joetannenbaum merged 1 commit intomainfrom
fix/null-started-at-renderer
Apr 3, 2026
Merged

Fix TypeError when startedAt is null in monitor renderers#120
joetannenbaum merged 1 commit intomainfrom
fix/null-started-at-renderer

Conversation

@joetannenbaum
Copy link
Copy Markdown
Collaborator

@joetannenbaum joetannenbaum commented Apr 3, 2026

Summary

Fixes #108.

When a command or deployment has null startedAt (e.g. on a hibernating environment), the monitor renderers pass null to DrawsThemeBoxes::box() which expects string $info, causing a TypeError.

Coalesces to empty string at the two call sites.

Changes inspired by #109, was unable to push to that PR.

Coalesce null startedAt to empty string at the call sites in
MonitorCommandRenderer and MonitorDeploymentsRenderer. Fixes #108.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@joetannenbaum joetannenbaum merged commit b1eef18 into main Apr 3, 2026
5 checks passed
@JoshSalway

This comment was marked as spam.

@JoshSalway

This comment was marked as spam.

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.

Can't run commands whilst environment is hibernating

2 participants