Skip to content

fix(daemon): report an unresponsive daemon on restart - #325

Merged
ScriptedAlchemy merged 4 commits into
masterfrom
fix/restart-hung-daemon
Sep 26, 2026
Merged

ScriptedAlchemy merged 4 commits into
masterfrom
fix/restart-hung-daemon

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Why

hauler daemon restart against a daemon that never answered said the daemon did not come up and reported previousPid: null. daemonIdentity turned a ping timeout into absent. Only absent-socket errors now mean absent.

Scope

  • .changeset/restart-unresponsive-daemon.md
  • src/internal/client/ensure-daemon.ts
  • src/internal/client/shutdown.ts
  • src/internal/daemon/runtime/lifecycle.ts
  • tests/integration/lifecycle.test.ts

Blast Radius

Only the named message or document changes. Other paths are unchanged.

Verification

The failing test landed first and passes on the fix. Changed tests and pnpm typecheck pass locally.

Principles

  • Fix Root Causes.
  • Test Behavior, Not Implementation.

@changeset-bot

changeset-bot Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2f921c2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
cargo-hauler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 26, 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-26T00:41:34.666978Z 50f793a 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.

@ScriptedAlchemy
ScriptedAlchemy merged commit 8d3dd0a into master Sep 26, 2026
@ScriptedAlchemy
ScriptedAlchemy deleted the fix/restart-hung-daemon branch September 26, 2026 01:01
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