Repository navigation
fix(alpha): say when status can't reach a host - #339
Merged
Merged
Conversation
Generated-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;started_at=2026-11-15T16:51:11Z;surface=cli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
agent statusprinted a bare "transport failed" when ssh to the run's host failed. The caller couldn't tell a dead run from an unreachable host, and the output dropped the local record of the run.Behavior change
When the status read fails with a transport error,
agent status NAMEprints the local record (name, host, account, start time, launcher) withphase=unknown rc=unknownand the texthost unreachable, run state unknown. It returns 1. A reachable host prints the same line as before.Risk
A caller that parsed the old error text sees a normal stdout line instead. The exit status is still nonzero, so a script that only reads the status isn't affected.
Verification
pytestpassed the driver and taint test files, and the new test asserts the exact output line and the return code.ruffpassed. CI runs the full Bazel suite.Opened-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;surface=cli
Generated-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;started_at=2026-11-15T16:51:11Z;surface=cli