$ the-wire · showcase
Awaiting agent_end hooks, preserving sessions after compaction failures
By RepoJournal · Filed · About OpenClaw
OpenClaw now awaits agent_end hooks in local CLI and Codex terminal paths, and auto-reply sessions survive compaction failures.
OpenClaw's local CLI and Codex app-server terminal paths called `runAgentHarnessAgentEndHook` without awaiting, so agent-end cleanup could race or be dropped. The fix adds an awaited `agent_end` helper for these no-channel paths and preserves fire-and-forget behavior for channel-backed paths, with docs, changelog, and regression tests updated [1]. This is a correctness fix: hooks now run to completion before the agent process reports done.
Auto-reply no longer resets sessions when overflow or compaction fails. Previously, both embedded overflow payloads and compaction failures routed through `resetSessionAfterCompactionFailure`, destroying user context on error. The reset hook is removed; preserved-session recovery guidance is added for overflow and compaction-failure paths, backed by before/after terminal proof [2]. Sessions now survive these failures instead of being wiped.
Crabbox gains two new providers from steipete. `provider: local-container` supports Docker-compatible Linux SSH leases with `docker`, `container`, and `local-docker` aliases, enabling local desktop/browser/VNC/WebVNC smoke boxes without bind-mounting the repo or Docker socket [3]. `provider: parallels` targets local and remote Mac Parallels Desktop fleets across Linux, macOS, and Windows guests, exposing snapshots through the existing `checkpoint list/fork/restore/delete` flows and forwarding SSH, screenshots, desktop clicks, and VNC [4]. Both providers are verified with `go test ./...`.
Crabbox's AWS image tooling now handles Fast Snapshot Restore (FSR) end to end. `crabbox image promote` supports `--fast-snapshot-restore --fsr-az <az>` for hot developer-image AMIs [5], and a new `crabbox image fsr-status` route reports live FSR status for AMIs and snapshots, with optional AZ filtering [6]. The CLI also now accepts FSR status flags after the image id, so `crabbox image fsr-status ami-... --region ... --fsr-az ...` works [7].
Action items
- → Review agent_end hook ordering in local CLI and Codex terminal paths after upgrading openclaw/openclaw [plan]
- → Verify auto-reply session preservation after upgrading to the fix openclaw/openclaw [plan]
- → Evaluate local-container and Parallels providers for local smoke testing needs openclaw/crabbox [plan]
References
- [1] fix(agent): await local agent_end hooks (#85007) ↗ openclaw/openclaw
- [2] fix(auto-reply): preserve sessions after compaction failures (#70479) ↗ openclaw/openclaw
- [3] feat: add local container provider ↗ openclaw/crabbox
- [4] feat: add Parallels provider ↗ openclaw/crabbox
- [5] feat(images): support fast snapshot restore promotion ↗ openclaw/crabbox
- [6] feat: add AWS FSR status route ↗ openclaw/crabbox
- [7] fix: accept FSR status flags after image id ↗ openclaw/crabbox