Golden V4 — Inference Fix
Root Cause
OpenClaw fires a bootstrap prompt during container warm-up, before any user claims the buffer container. The mint-cig-token function only queries the deployments table — no deployment record exists for unclaimed buffer containers — returns deployment_not_found → 502 inference_proxy_error → "assistant turn failed" replaces the onboarding UI.
Fixes
- mint-cig-token buffer_containers fallback — When deployment lookup fails, check
buffer_containerstable. Mints a token withsub="buffer-unassigned"so the bootstrap prompt succeeds. Once the container is claimed, subsequent mints use the real user identity. - Dashboard session reset — 20s after gateway health, reset all
agent:main:dashboard:*sessions to clear any residual "assistant turn failed" error from the UI. User content (main session) is preserved. - CIG inference V4 fix (already deployed) — Strip
reasoning_contentfrom DeepSeek responses and suppress empty chunks.
Backlog
- Manifest data recovery mechanism (https://github.com/manifest-network/fred) — needed before touching old containers