Skip to content

Fix two stale Toad tests that failed every hosted suite - #1334

Merged
trissim merged 2 commits into
mainfrom
fix/startup-failure-wording
Oct 29, 2026
Merged

trissim merged 2 commits into
mainfrom
fix/startup-failure-wording

Conversation

@trissim

@trissim trissim commented Oct 29, 2026 •

Copy link
Copy Markdown

Two tests on Toad main failed on #1320's first hosted run (run 40956631782), independent of the Neovim work. 2 test files, +4/-29.

  1. tests/app/test_agent_startup_failure.py: waited for "ACP process closed"; since d1c65d0 the conversation shows LogAgentFail("ACP session startup failed") (src/toad/acp/agent_session.py:255). Behaviour checks unchanged.
  2. tests/model/test_agent_process_retirement.py: deleted route_lock_available, its fcntl/os/active_route_path imports, the unused launch_root fixture and the route-lock assertion. AgentProcess.start captures a RouteSelection that owns no route lock (Core publishers own route storage and its lock), so the probe flocked a directory that need not exist. Child and session retirement stay asserted for cancel, stop and EOF. Ruled obsolete by root (f0d6b4b88f09); no mkdir, no caught FileNotFoundError, no fake lock.

🤖 Generated with Claude Code

d1c65d0 unified refusal explanations, so a process that exits during
startup is reported as LogAgentFail("ACP session startup failed")
(agent_session.py:255), not the process-level detail. The test still
asserts the behaviour it exists for: reported, never ready, process gone.
Found on #1320's first hosted run (run 40956631782).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RnH6dR85kyFKcc2tQAJLhK
Copilot AI balanced review requested due to automatic review settings October 29, 2026 21:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@trissim
trissim enabled auto-merge October 29, 2026 21:25
AgentProcess.start captures a RouteSelection for its transcript root, and
RouteSelection owns no route lock; Core publishers alone own route storage
and its publication lock. The test flocked a default-route directory that
need not exist (FileNotFoundError on a fresh runner, run 40956631782) and
its launch_root fixture never published the route it claimed. Child and
session retirement remain asserted for cancel, stop and EOF.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RnH6dR85kyFKcc2tQAJLhK
@trissim trissim changed the title Wait for the startup failure the conversation actually shows Fix two stale Toad tests that failed every hosted suite Oct 29, 2026
@trissim
trissim merged commit 67c3e97 into main Oct 29, 2026
2 of 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.

2 participants