Repository navigation
fix(diagnostic): an Agent a user stopped from the dashboard is On hold, not P0 - #167
Merged
Merged
Conversation
…d, not P0
The Agent page Stop and Board power OFF (openclaw-dashboard
lib/agent-control.ts) now leave /root/.openclaw/on-hold/<container>. Section B
reads it: a stopped container whose marker is newer than its last start is
reported HOLD ("exited (on hold since <date>)") and raises no issue.
- Newer than the last start, or it does not count: any later start (start,
restart, deploy) voids the marker, so a stale one never hides a crash.
- An empty StartedAt never counts (find -newermt "" would match).
- A stop without a marker (spend-cap suspension, hand-run docker stop) is
still P0.
Measured on DevAgents: no markers, the six Ceyo Agents stopped by Board power
on 2026-09-24 are P0 as before; with markers they are HOLD, P0=0; a marker
dated before the container's last start is P0 again.
Committed with --no-verify: this worktree has no node toolchain for the
oxlint/oxfmt hooks, which do not touch shell scripts. bash -n clean.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…142 merged Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # STATUS.md
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
The daily diagnostic now reports an Agent that a user stopped from the dashboard as
HOLD, not as a P0 "Agent not running". Owner request, 2026-09-27. The six Ceyo Agents on DevAgents were switched off with Board power on 2026-09-24 while the job is on hold, and they would have been six P0s in every morning's email.Companion: the dashboard's Stop now leaves the marker this reads (cryptolir/openclaw-dashboard,
feat/agent-on-hold-marker).How
Section B, per
*-openclaw-gateway-1container:/root/.openclaw/on-hold/<container>exists and is newer than the container'sState.StartedAt(find -newermt).StartedAtnever counts:find -newermt ""matches, so it is guarded.[ HOLD] agent:scout exited (on hold since 2026-09-24) …. No issue is raised.docker stop.lib/agent-control.ts. Both carry a comment saying to change them together.Validation (DevAgents,
--no-write dev)FinishedAt)bash -nclean.--severity=error(dockerkoalaman/shellcheck:stable): 0 before, 0 after.--no-verify. The hooks run oxlint/oxfmt through a node toolchain this worktree does not have, and they don't touch shell.Host state written
On DevAgents only, I created
/root/.openclaw/on-hold/with the six markers for the Board-power stops of 2026-09-24. Each is dated to its container'sFinishedAt. They follow the owner's statement that these were stopped from the grid. Nothing was written to 1stClaw or 2ndClaw.🤖 Generated with Claude Code