Repository navigation
Merged
Conversation
…r a daemon that never came up why: the auto-launch loop hands back the poll's own connection the moment the launched daemon answers `hello`, and that connection's close — the dying daemon's `http-start-failed` stop, not any daemon the command ever had — is what the client then reports. Docs reserve that code for a live connection that died, so the test asserts the start-failure code #672 gave this path's timeout sibling.
1 failing -> 0 failing. Keep the startup classification on the launched client until its first successful request; preserve later and pre-existing connection losses. Carry the triage regression, exercise a pending first request and mid-operation deaths, and update the CLI contract docs.
V3RON
marked this pull request as ready for review
October 19, 2026 14:49
# Conflicts: # docs/CLI.md # src/cli/index.test.ts
…on, pin its lower bound
… longer in src/daemon
This was referenced Oct 25, 2026
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.
What
Auto-launch checks
status.getbefore handing the client to a command.A close during that probe reports
DAEMON_STARTUP_FAILED; later operationlosses retain
DAEMON_CONNECTION_LOST, including a pending lease request.Why
Closes #684. Scripts can distinguish the reported hello-then-close failed
start from losing a daemon during an operation. Exit remains 1.
How
One CLI connector retains its launch deadline through credential rejection
and agent fallback. The probe shares that deadline, closes failed clients,
and cancels its timer. Pre-existing connections and daemon refusals keep
their original errors. No typed-client or wire changes.
Done when
runningandstartingstatus answers; held lease and later request losses covered.pnpm test:changed: 4 files passed, 315 tests passed. Commit and push hooks passed.Assumptions
startinganswer. Hello alone does not end classification; business operations do not extend it.DAEMON_STOPPINGrefusals retain their existing codes.Status
Implement: done (
38f75a22) Review: round 2 fix-check, complete Hardware: n/a Gate: runningNext: gate
Review
Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 2 blocking, 2 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 2. Tokens: 1.1M.
Runs: 11. Cost USD: 2.4268. Agent seconds: 1156.
Rejected:
Written by an agent.