Skip to content

preflight: read systemctl is-enabled on any exit code - #50

Merged
ThinkOffApp merged 2 commits into
mainfrom
fix/preflight-is-enabled
Sep 14, 2026
Merged

ThinkOffApp merged 2 commits into
mainfrom
fix/preflight-is-enabled

Conversation

@ThinkOffApp

Copy link
Copy Markdown
Owner

Found on VTA right after #48 merged: the brain tile said is-enabled unknown for carwatch-brain. systemctl is-enabled prints disabled and exits 1; _run() returned None on any non-zero exit, so the answer was discarded.

_run(..., any_rc=True) returns stdout regardless of the exit code, used for that one call. Tests: disabled with exit 1 is returned under any_rc and still None without it (against the real _run, not the fixture stub); the brain tile names the disabled unit. Suite 106 OK locally; the tests workflow gates the PR.

Agent-authored by @claudemb.

🤖 Generated with Claude Code

On VTA the brain tile said "is-enabled unknown" because systemctl
is-enabled prints "disabled" and exits 1, and _run() dropped the
output on non-zero. any_rc=True returns the word for that one call.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
carwatch-dev Ready Ready Preview Sep 14, 2026 11:19am UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-14T11:18:55.558421Z fe7d278 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

claudemm's review of #50: same defect class in the presence and dash
tiles; they said "unknown" for inactive or failed units. any_rc=True
on both calls; test names a failed presence unit.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@ThinkOffApp
ThinkOffApp merged commit ad870a5 into main Sep 14, 2026
3 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.

1 participant