openclaw/apps/macos/Sources
valtterimelkko 05900e72b6 Fix: Defer gateway restarts during active agent runs and prevent macOS app config writes in remote mode
- Add active agent run tracking functions (getActiveAgentRunCount, getActiveAgentRunIds)
- Add onAgentRunComplete callback to notify when runs complete
- Modify config-reload to defer restarts when active runs exist
- Queue restart and apply when all runs complete
- Add guard in AppState.swift to prevent config writes in remote mode
- Set gateway.reload.mode to "off" as immediate fix

This prevents the bot from interrupting in-flight messages during
config changes, fixing the "bot typing but never responds" issue.

Root cause: macOS app was writing to gateway config even in remote mode,
triggering file watcher → reload handler → SIGUSR1 → shutdown during messages.
2026-01-30 11:00:16 +00:00
..
Moltbot Fix: Defer gateway restarts during active agent runs and prevent macOS app config writes in remote mode 2026-01-30 11:00:16 +00:00
MoltbotDiscovery Mac: finish Moltbot rename (paths) 2026-01-27 14:12:47 -06:00
MoltbotIPC Mac: finish Moltbot rename (paths) 2026-01-27 14:12:47 -06:00
MoltbotMacCLI Mac: finish Moltbot rename (paths) 2026-01-27 14:12:47 -06:00
MoltbotProtocol Mac: finish Moltbot rename (paths) 2026-01-27 14:12:47 -06:00