$ the-wire · showcase
Doctor and tool matchers get faster
By RepoJournal · Filed · About OpenClaw
Large history upgrades and Doctor checks speed up, while permission matching is prepared once per filtering operation.
History upgrades from stable to main will spend less time importing transcript events and checking already healthy histories because Doctor now owns one read-only SQLite connection per agent store and pass, rather than opening the database twice per session across its header and label passes. The importer also skips repeating session setup for every event within a synchronous batch [1].
Tool permission filtering gets the same treatment: matchers are prepared once per synchronous filtering operation, instead of repeatedly expanding and compiling the same permission patterns for every tool. This reduces local work in layered policies and large tool catalogs, including audit reporting [2].
Cron delivery mirrors retain best-effort context after a Gateway restart removes the live chat window. The bounded fallback context activates only when no live window survives, and transcript filtering and strict delivery awareness stay separate [3].
Also in crabbox, checkpoint expiry is now coordinator-managed with admission limits and atomically released terminal claims [4], secret SSH usernames stay out of VNC and pond tunnel subprocess arguments by reusing the private SSH session owner [5], and failed-run output tails print once instead of appearing up to three times [6].
Action items
- → Review the Doctor connection and importer changes for large history upgrades openclaw/openclaw [monitor]
- → Check cron delivery fallback behavior after Gateway restarts openclaw/openclaw [monitor]
- → Test tool policy filtering with large catalogs openclaw/openclaw [monitor]
References
- [1] improve: speed up large history upgrades and Doctor checks ↗ openclaw/openclaw
- [2] perf(agents): prepare tool policy matchers per filtering operation ↗ openclaw/openclaw
- [3] fix(cron): retain best-effort context after restart (#130551) ↗ openclaw/openclaw
- [4] feat: add coordinator-managed checkpoint expiry (#1478) ↗ openclaw/crabbox
- [5] fix: keep secret usernames out of VNC and pond tunnel argv ↗ openclaw/crabbox
- [6] fix(run): print failed-run output tails once ↗ openclaw/crabbox