Herdr-hosted Claude session cannot stop: terminal_host_adapter_unavailable
This was generated by AI during triage.
Summary
Two attempts to stop a Herdr-hosted Claude session from the iOS app returned Session stop incomplete: terminal_host_adapter_unavailable.
What happened
The daemon recorded the Herdr launch. At 11:48 UTC on Nov 21, 2026, both Stop requests reached the daemon through machine RPC. The physical stop path returned terminal_host_adapter_unavailable both times.
A later read-only probe using the running daemon's executable lookup settings found supported Herdr 0.9.5. The stop implementation returns this error when it cannot obtain the adapter for the recorded host kind. An earlier failed probe is possible because the daemon caches its default adapter registry. The first probe result is unavailable.
Expected behavior
Stop should use the adapter for the existing attachment and report the outcome. If adapter lookup fails, include the probe failure in diagnostics.
Environment
Happier CLI and daemon 0.2.21-dev.1, Claude Code 2.1.329, Herdr 0.9.5 at the later check, Linux ARM64 host, iOS client.
Related to #391, which covers a failure after adapter selection.
Disposable-session retest after daemon restart
On Nov 21, 2026, I reproduced the original error on a newly created Herdr-backed Claude session before restarting the daemon. I then restarted the daemon with Herdr 0.9.5 available and created a separate disposable Claude session on the same CLI release, 0.2.21-dev.1.
- Adapter lookup recovered. The new session reached runner cleanup on all three Stop attempts. The initial registry probe is unavailable, so the restart result supports the stale-cache diagnosis without establishing why the first probe failed.
- Stop returned
runner_signal_incomplete. The daemon tracked the launcher as PID 614023, and the Claude runner reported PID 614037. The Stop log shows the PID safety check refused to signal 614023. In the installed code, runner registration stores the runner fingerprint on the launcher-keyed record. Stop uses that fingerprint with the launcher PID. An isolated check of the bundled functions reproduced the rejection for the launcher and acceptance for the runner with separate fingerprints. - The session stayed active after both processes exited. Claude had already completed the test turn. I closed only the disposable pane. The daemon recorded the runner as missing and removed it from tracking. The server and iOS app still showed the conversation as active. A new message remained queued and the CLI timed out. The installed idle-exit path stages no session-end mutation without an active turn ID. The send path uses runtime delivery while the server reports the session as active, so it skips inactive-session resume.
The test confirms that restarting can clear the adapter error while leaving Stop and resume unsuccessful.
The Herdr Stop and pane-close fixes are in the 0.2 source on dev. They’ll be available in the next 0.2 dev-channel CLI release. Updating the CLI and daemon to that release will pick them up.
Thanks for tracking down the two PIDs, Tom. That showed why Stop could find the Herdr pane after restarting the daemon but still refuse to signal the process. Stop now uses the saved Herdr socket to reach an existing pane even if Herdr is missing from the daemon’s PATH, and it verifies and signals the runner’s PID. We also reproduced a real Herdr 0.9.5 pane close on Linux and verified that the hangup now runs the runner’s normal shutdown cleanup. Herdr socket fix · Runner and pane-close fix
A hard kill such as SIGKILL still prevents the runner from reporting its exit. In that case, we reproduced the session appearing active until server presence expires, with messages potentially queuing and timing out in the meantime.
Posted on behalf of @elliotlr.