Disabled actors come back: enabled=false is lost after a daemon restart, and @all deliveries are accepted for disabled actors
Summary
An actor disabled with cccc actor update <id> --enabled false does not stay disabled:
- After a daemon restart, disabled actors were started again about two minutes later and
group.yamlwas rewritten withenabled: true, although noactor.updateenabling them exists in the ledger. - On 2026-09-04 the same flag flipped back twice after unrelated actor operations (
cccc actor addof another actor,cccc actor update --envof another actor), minutes after the disable had been acknowledged bycccc actor list. @alldeliveries are claimed and accepted for actors that are disabled and have no process.
Build: 0.4.37 from 388f29d with local patches (Claude startup-dialog handling, Kimi submit sequence, a DeepSeek model override in setup); none of them touch group persistence or delivery. WSL2 Ubuntu 24.04. Group with five actors: claude-1 (claude, pty), codex-1 (codex), kimi-1 (kimi, pty), deepseek-1 and deepseek-2 (deepseek, headless).
Timeline (UTC, from ledger.jsonl, process start times and file mtimes)
Disables, all acknowledged by cccc actor list afterwards:
2026-09-04T07:58:43 actor.update kimi-1 {"enabled": false}
2026-09-04T08:05:47 actor.update deepseek-2 {"enabled": false}
No actor.update with enabled: true for either actor exists between those lines and the next morning (the ledger has only actor.update for other actors, actor.add, context.sync and three actor.restart events of deepseek-1 in that window).
2026-09-05:
07:13:38 daemon restarted (ccccd.pid rewritten; the binary had just been replaced and `cccc web` restarted)
07:13:28-32 claude-1, codex-1, deepseek-1 processes start (they were running before the restart)
07:15:2x `cccc actor list` still reports kimi-1 and deepseek-2 enabled=false, running=false
07:15:33 kimi-code process (kimi-1) and a second dsh-acp-demo process (deepseek-2) start
07:15:40 first `cccc send --to @all` after the restart is written to the ledger; runtime.delivery events
for kimi-1 and deepseek-2 follow; group.yaml mtime 07:15:40 now has enabled: true for both
07:20 `cccc actor list`: all five enabled=true running=true
07:24:19 actor.update kimi-1 / deepseek-2 {"enabled": false} by hand; processes gone, file shows false
Deliveries to disabled actors
With both actors disabled and no process (13:26 UTC, daemon not restarted since 07:13), one cccc send --group <g> --to @all --mode send "..." produced:
13:26:44 claude-1 claimed 13:26:46 claude-1 accepted
13:26:44 codex-1 claimed 13:26:44 codex-1 accepted
13:26:44 kimi-1 claimed 13:26:50 kimi-1 accepted <- disabled, no process
13:26:44 deepseek-1 claimed 13:26:50 deepseek-1 accepted
13:26:44 deepseek-2 claimed 13:26:50 deepseek-2 accepted <- disabled, no process
This time the flags stayed false and nothing was started, so a plain @all alone does not flip them; the restart on 07:13 was part of the morning case. group.yaml is rewritten on every such send (mtime changes), which is presumably where a stale in-memory copy of the group document overwrote the disable on 09-04.
Expected
enabled: falseset through the CLI survives daemon restarts and is not affected by other actors' add/update or by deliveries.@alldoes not resolve to disabled actors, or deliveries to them stay pending rather than being reported as accepted.
Workaround in use
Disable again after any daemon restart; an external watcher now re-disables actors whose flag flips back.
Thanks a lot for your support!