$ the-wire · showcase
Crabbox collapses 2,771 lines of provider forwarding, Gateway task cleanup fixed
By RepoJournal · Filed · About OpenClaw · Composed from the cited sources · methodology
Crabbox finished a five-commit refactor that deletes 2,771 net production lines of duplicated provider adapters, while openclaw fixed a Gateway bug where stale task notifications could close a replacement task's terminal.
The crabbox provider refactor landed across five commits [1][2][3][4][5], removing exact forwarding functions and identity aliases from roughly forty provider and runtime adapters: Cloud Run Sandbox, Azure Dynamic Sessions, Crownest, SmolVM, Orgo, OpenComputer, Daytona, Agent Sandbox, Coder, NVIDIA Brev, Hostinger, Lume, Morph, exe.dev, Sprites, Namespace Devbox, GitHub Codespaces, Runpod, Apple Container, Apple Machine, Multipass, Tart, Hyper-V, Windows Sandbox, Docker Sandbox, Anthropic Sandbox Runtime, AsciiBox, CUA, CubeSandbox, Islo, Tenki, W&B, and Superserve. The individual commit messages report deletions of 513, 618, 623, 500, and 517 net production lines respectively, with Go type identity and resolved references checked before each replacement; provider-specific scope binding, credential admission, recovery commands, cleanup, and mutable injection hooks keep their existing implementations. This is a breaking change for anyone depending on provider-package forwarding symbols or type aliases rather than calling core directly, though the commit messages state public behavior is preserved.
On the Gateway, task cleanup now rechecks task, execution, and observer ownership around synchronous publication [6]. Stale task notifications used to be able to close a replacement task's terminal, and a failed broadcast could suppress later task updates. Task updates now reach the current requester, and terminal cleanup applies only while the task and its execution still own that cleanup.
Artifact updates on managed gateways no longer fail schema preflight on repeat [7]: a local tarball or URL stays the selected target through the managed handoff, including already-current repeats, and target checks use the selected artifact's requirements. Separately, three performance changes cut repeated work: plugin message and cursor hashing are no longer recomputed across Matrix store scans, Feishu batches, and Beam reads [8]; managed worktree restore no longer rebuilds the full source template [9]; and the eleven isolated real-Gateway fixtures now admit to the existing two-worker pool [10].
Tachikoma's cleanups are mostly internal. The MCP wire envelopes for SSE and stdio now share one internal file while preserving HTTP's integer-ID response contract, with public APIs and wire formats unchanged [11]. Model.swift split from 2,165 lines into four catalog files plus ModelParsing.swift, leaving the central file at 528 lines [12], and Anthropic and Ollama implementations moved out of a shared 1,962-line BaseProviders.swift into their own directories [13]. The docs pass replaced stale architecture and local-provider guides that described nonexistent types and APIs [14], and two stop-condition tests stopped assuming the scheduler finishes within 0.5 seconds [15].
Action items
- → Audit any code importing crabbox provider-package forwarding symbols or type aliases before upgrading openclaw/crabbox [plan]
- → Pull the Gateway task cleanup fix if you rely on task terminal behavior openclaw/openclaw [plan]
- → Re-run artifact updates on managed gateways now that repeat installs pass schema preflight openclaw/openclaw [monitor]
References
- [1] refactor(providers): use core directly in delegated adapters ↗ openclaw/crabbox
- [2] refactor(providers): share core contracts in workspace adapters ↗ openclaw/crabbox
- [3] refactor(providers): remove SSH adapter core forwarding layers ↗ openclaw/crabbox
- [4] refactor(providers): use core contracts in local runtimes ↗ openclaw/crabbox
- [5] refactor(providers): call core directly in sandbox clients ↗ openclaw/crabbox
- [6] fix(gateway): keep task cleanup with its current owner ↗ openclaw/openclaw
- [7] fix: repeated artifact updates fail schema checks on managed gateways ↗ openclaw/openclaw
- [8] perf: avoid repeated plugin message and cursor hashing ↗ openclaw/openclaw
- [9] perf(worktrees): speed up snapshot restore and repeated creation ↗ openclaw/openclaw
- [10] perf(test): admit isolated Gateway readers to the existing worker pool ↗ openclaw/openclaw
- [11] refactor(mcp): share wire envelopes and remove unused client ↗ openclaw/Tachikoma
- [12] refactor(models): separate provider catalogs and parsing ↗ openclaw/Tachikoma
- [13] refactor(providers): separate Anthropic and Ollama implementations ↗ openclaw/Tachikoma
- [14] docs: replace stale guides and unbuilt demo scaffolding ↗ openclaw/Tachikoma
- [15] test: remove scheduler and pipe-capacity assumptions ↗ openclaw/Tachikoma