Skip to content

fix(alpha): say when status can't reach a host - #339

Merged
tbhb-agent merged 1 commit into
mainfrom
agent/tools-status-unreachable
Nov 23, 2026
Merged

tbhb-agent merged 1 commit into
mainfrom
agent/tools-status-unreachable

Conversation

@tbhb-agent

Copy link
Copy Markdown
Collaborator

Why

agent status printed 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 NAME prints the local record (name, host, account, start time, launcher) with phase=unknown rc=unknown and the text host 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

pytest passed the driver and taint test files, and the new test asserts the exact output line and the return code. ruff passed. 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

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
@tbhb-agent
tbhb-agent requested a review from tbhb as a code owner November 23, 2026 14:47
@tbhb-agent
tbhb-agent merged commit 084dea4 into main Nov 23, 2026
5 checks passed
@tbhb-agent
tbhb-agent deleted the agent/tools-status-unreachable branch November 23, 2026 15:13
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