mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-18 16:41:45 -06:00
7f0a87de1d
* feat(agents): default to eager delegation in the main session The delegation prompt section now defaults to "prefer" in each agent's canonical main session and "suggest" elsewhere; explicit config wins in both directions. The section is rewritten to be token-leaner and now covers the hidden-vs-visible spawn distinction (hidden subagents are invisible and auto-archived; deliverable-bearing work spawns visible=true and replies with the link) plus the run-end notification contract. The Messaging spawn-mechanics line is suppressed when the Delegation section renders, and the stable Tooling visible:true hint is aligned with the new guidance. * perf(sessions): coalesce session-state wake bursts Watched-session change notices woke the watcher's main session with the generic 250ms heartbeat coalesce, so a burst of changes across several watched sessions produced one wake per change. Wakes now coalesce for 20s; notices are already queued and deduped, so none are lost. * test(agents): regenerate prompt snapshots after rebase * test(sessions,agents): update sibling assertions for coalesced wakes and visible guidance session-state-events tests advance timers past the new 20s wake coalesce window; the sessions_spawn schema test tracks the updated visible description.