Repository navigation
Description
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
Hello,
I am using the docker install per the docs (with clawdock helpers). After upgrading the container (clawdock-upgrade) the agent does not respond to messages and the following error shows up in the container logs:
openclaw-gateway-1 | 2026-05-27T13:30:02.143+00:00 [diagnostic] message dispatch completed: channel=discord sessionId=unknown sessionKey=agent:main:main source=replyResolver outcome=error duration=4ms error="Error: Missing workspace template: HEARTBEAT.md (/app/src/agents/templates/HEARTBEAT.md). Ensure workspace templates are packaged."
openclaw-gateway-1 | 2026-05-27T13:30:02.144+00:00 [diagnostic] message processed: channel=discord chatId=slash:408672255804047380 messageId=1509186922432430291 sessionId=unknown sessionKey=agent:main:discord:slash:408672255804047380 outcome=error duration=27ms error="Error: Missing workspace template: HEARTBEAT.md (/app/src/agents/templates/HEARTBEAT.md). Ensure workspace templates are packaged."
openclaw-gateway-1 | 2026-05-27T13:30:02.145+00:00 [discord] interaction handler failed: Error: Missing workspace template: HEARTBEAT.md (/app/src/agents/templates/HEARTBEAT.md). Ensure workspace templates are packaged.
Steps to reproduce
- Update container to latest 2026.5.26 image.
- Restart container.
- Attempt to chat with agent, no response.
Expected behavior
- Agent should respond to messages.
Actual behavior
- Agent never response, error appears in logs.
OpenClaw version
2026.5.26
Operating system
macOS Tahoe
Install method
docker
Model
xai/grok-4.3
Provider / routing chain
openclaw -> xai API
Additional provider/model setup details
No response
Logs, screenshots, and evidence
openclaw-gateway-1 | 2026-05-27T13:30:02.143+00:00 [diagnostic] message dispatch completed: channel=discord sessionId=unknown sessionKey=agent:main:main source=replyResolver outcome=error duration=4ms error="Error: Missing workspace template: HEARTBEAT.md (/app/src/agents/templates/HEARTBEAT.md). Ensure workspace templates are packaged."
openclaw-gateway-1 | 2026-05-27T13:30:02.144+00:00 [diagnostic] message processed: channel=discord chatId=slash:408672255804047380 messageId=1509186922432430291 sessionId=unknown sessionKey=agent:main:discord:slash:408672255804047380 outcome=error duration=27ms error="Error: Missing workspace template: HEARTBEAT.md (/app/src/agents/templates/HEARTBEAT.md). Ensure workspace templates are packaged."
openclaw-gateway-1 | 2026-05-27T13:30:02.145+00:00 [discord] interaction handler failed: Error: Missing workspace template: HEARTBEAT.md (/app/src/agents/templates/HEARTBEAT.md). Ensure workspace templates are packaged.Impact and severity
Severity: High, container is completely non-functional
Additional information
No response
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
WarrenJones commentedon May 27, 2026
clawsweeper commentedon May 27, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed May 27, 2026, 10:08 AM ET / 14:08 UTC.
Summary
Codex review failed: timeout.
Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path.
Ways to help us reproduce this
Next step
Review did not complete, so no work-lane recommendation was made.
Review details
Best possible solution:
Retry the Codex review after fixing the execution failure.
Do we have a high-confidence way to reproduce the issue?
Unclear. The review failed before ClawSweeper could establish a reproduction path.
Is this the best way to solve the issue?
Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction.
AGENTS.md: unclear because the file could not be read completely.
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 4d099c354b69.
Label changes
Label changes:
issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.clawsweeper:needs-info: Current issue advisory state selects this label.Evidence reviewed
What I checked:
Likely related people:
How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.oOScuByOo commentedon May 27, 2026
Same there, gateway didn't start anymore too, stuck in a loop
steipete commentedon May 27, 2026
Fixed on
mainin 659b5dc.Behavior addressed: Docker runtime images now include
/app/src/agents/templates/HEARTBEAT.md, matching the packaged workspace-template resolver used after the heartbeat runtime-template split.Real environment tested: focused local Vitest plus Blacksmith Testbox changed gate. No fixed Docker image has been published yet.
Exact steps or command run after this patch:
pnpm test src/dockerfile.test.ts -- --reporter=verbose;git diff --check;actionlint .github/workflows/docker-release.yml;pnpm check:changedvia Blacksmith Testboxtbx_01ksn8yfedm3p1sfykf0tz11v0.Evidence after fix:
src/dockerfile.test.tsnow guards both the final Dockerfile copy and the Docker Release per-arch smoke. The Docker Release workflow now runs each pushed arch image and fails before manifest creation if/app/src/agents/templates/HEARTBEAT.mdis missing or the bootstrap path logsMissing workspace template:.Observed result after fix: focused Dockerfile tests passed, 21/21. Final
pnpm check:changedpassed on Testbox.What was not tested: a new GHCR Docker image has not been built or published from this commit yet, so the currently published
2026.5.26/latestimage may still show the original failure until the Docker release/backfill runs.steipete commentedon May 27, 2026
Fixed on current
mainby 659b5dc and backported torelease/2026.5.27as 7e3adcc2ebf7a7f2f30a7ab909a929f5f764d0d4.This was treated as a Docker release blocker/P1 because the 2026.5.26 image could fail every message dispatch with
Missing workspace template: HEARTBEAT.md.What changed:
Dockerfilenow copies/app/src/agents/templatesinto the runtime image, so/app/src/agents/templates/HEARTBEAT.mdis present.src/dockerfile.test.tsnow guards that runtime workspace templates stay in final images..github/workflows/docker-release.ymlnow smoke-tests both amd64 and arm64 runtime images before manifest publish: it checks/app/src/agents/templates/HEARTBEAT.md, runs workspace bootstrap, verifies the generated workspaceHEARTBEAT.md, and fails ifMissing workspace template:appears.Verification run on both
mainandrelease/2026.5.27:pnpm test src/dockerfile.test.ts -- --reporter=verboseResult: 21/21 Dockerfile tests passed on each branch.
steipete commentedon May 27, 2026
Follow-up landed on main: c0f16460d7
Full release validation now includes the Docker runtime template regression smoke in
docker_runtime_assets_preflight: it builds the final Docker runtime image, verifies/app/src/agents/templates/HEARTBEAT.mdexists, startsnode /app/openclaw.mjs agent ...in the container, fails onMissing workspace template:, and checks that the workspaceHEARTBEAT.mdwas bootstrapped.Proof:
git diff --checkactionlint .github/workflows/docker-release.yml .github/workflows/full-release-validation.ymlpnpm test src/dockerfile.test.ts -- --reporter=verbose(22 tests passed).agents/skills/autoreview/scripts/autoreview --mode local(clean)pnpm check:changedon Blacksmith Testboxtbx_01ksn9km4eaz4cywfd9ct9hmyj(passed)Leaving this issue open until the affected Docker image is rebuilt/backfilled or a new release image is verified.