Restart Resume
July 16, 2026 ยท View on GitHub
Re-activate idle threads after a MindRoom restart.
MindRoom already resumes in-progress work automatically when an agent was mid-reply or had a scheduled task pending. This plugin handles the other case: threads that are idle, but that you still want to resume after the next restart. Tag the thread before restarting, and the plugin will wake it once the bot comes back up.
Features
- Scans all rooms on
bot:readyfor threads tagged for restart follow-up - Sends a wake-up message with
trigger_dispatch=Trueso the agent continues working - Removes the restart tag after successful notification
- Uses a configurable tag name instead of hard-coding
pending-restart - Uses an atomic claim file to avoid duplicate notifications when multiple workers start at once
How It Works
- Tag a thread with
pending-restart, or another configured tag name. - Restart MindRoom.
- When the bot emits
bot:ready, thenotify-after-restarthook scans room state for tagged threads. - Each matching thread receives a restart-complete notification that triggers agent dispatch.
- After a successful notification, the restart tag is removed from that thread.
Hooks
| Hook | Event | Purpose |
|---|---|---|
notify-after-restart | bot:ready | Scan for tagged threads, wake them, and clear the restart tag |
Configuration
Plugin settings in config.yaml:
| Setting | Required | Description |
|---|---|---|
tag | No | Thread tag to scan for on restart. Defaults to pending-restart |
The plugin also uses state_root/.restart-claim as an atomic claim file so only one startup worker processes the restart notifications.
Install
Vendor this plugin with the MindRoom CLI:
mindroom plugins install restart-resume-plugin
Then reference it from config.yaml:
plugins:
- path: plugins/restart-resume-plugin
Update to the latest commit later with:
mindroom plugins update restart-resume-plugin
The command pins the exact installed commit in .mindroom-plugin.lock.json and strictly validates the plugin before activating it.
For a manual checkout instead, see Setup below.
Setup
- Copy this plugin to
~/.mindroom/plugins/restart-resume. - Add the plugin to
config.yaml:plugins: - path: plugins/restart-resume - Restart MindRoom.
No agent tools are required. This plugin is hooks-only.