Shared backlog across the crew
Assignee
π§ Robbie
Project
restart-history
Created
10 May 2026, 8:00 am
Updated
never
Tags
Dependencies
Blocked By
Description
MC has been in repeated restart loops despite multiple "fixes". Root cause analysis (2026-05-10):
.next/BUILD_ID is missing β can be triggered by partial wipesThe "self-healing" design has become "self-destroying" β every recovery attempt creates more chaos.
Maxime's directive: MC restarts ONLY when triggered by him via UI.
Strip auto-restart triggers from start.sh
Reboot queue system
/home/maxime/.openclaw/workspace/state/reboot-queue.jsonPOST /api/reboot-queue (agent submits), GET /api/reboot-queue (list), POST /api/reboot-queue/trigger (Maxime clicks)/reboots page with details + trigger buttonscripts/queue-reboot.sh --task <id> --reason <text> [--rebuild]Restart log tracking
record-startup.js writes JSONL to /tmp/mc-restart-log.jsonl/api/restart-log serves history with statsTeam protocol update
systemctl restart)pending_reboot (or stay in_progress with a flag) β agent can still pick up next taskTests
New files:
app/api/reboot-queue/route.tsapp/api/reboot-queue/trigger/route.tsapp/api/reboot-queue/[id]/route.tslib/reboot-queue.tsapp/reboots/page.tsxcomponents/RebootQueueBanner.tsxcomponents/RestartLogDisplay.tsxscripts/queue-reboot.sh__tests__/reboot-queue.test.ts__tests__/restart-log.test.ts__tests__/record-startup.test.tsModified files:
start.sh β major refactor (simplify, remove watchdog, remove retry loop)app/page.tsx β add reboot queue bannerapp/hardware/page.tsx or components/HardwareClient.tsx β show restart history/home/maxime/.openclaw/workspace/AGENTS.md β agent reboot rule/home/maxime/.openclaw/workspace/team/CONVENTIONS.md β reboot protocolFiles to consider removing/deprecating:
BUILD_ATTEMPT_FILE)next build does NOT crash the running server (build lock prevents)record-startup.js should be enhanced to record reboot trigger source (agent ID, task ID, manual)Done end-to-end:
48977e948977e948977e948977e9__tests__/reboot-queue.test.ts927c4abVerified:
Known issue surfaced during work: Another openclaw agent was running git stash && npx next build concurrently at 12:36, which has been the smoking gun cause of multiple restart loops. Killed that process. The new banner + CI guard task (t-3392) prevent this going forward.
Review
Subtasks