What happened
Building the agent base image from a clean checkout (node scripts/build-agent-image.mjs --no-cache) fails at the DeepSeek Harness step:
#12 0.505 dsh: initialized profile dsh-tui at /home/agent/.dsh/profiles/dsh-tui
#12 0.508 dsh: pnpm not found on PATH — install pnpm to manage profile plugins
ERROR: process "... dsh plugin --profile dsh-tui add @deepseek-harness-tui/dsh-tui ..." did not complete successfully: exit code: 127
Where
docker/agent.Dockerfile, the RUN ... dsh plugin --profile dsh-tui add @deepseek-harness-tui/dsh-tui ... step in the agent user-setup layer.
Repro
node scripts/build-agent-image.mjs --no-cache
on a fresh checkout of master (no local branch changes).
Cause (best guess, not confirmed)
dsh's plugin installer appears to now require pnpm on PATH to manage profile plugins, and the base node:22-bookworm-slim image doesn't have it installed. This is presumably a behavior change in a recent @deepseek-ai/dsh release, since the Dockerfile step itself is unchanged.
Impact
Docker cases (the whole agent base image) can't currently be built from scratch on a fresh checkout, blocking Docker-mode session support entirely until fixed.
Suggested fix
Add pnpm to the base image (either via corepack enable — already bundled with Node 22 — or npm install -g pnpm) before the dsh plugin install step.
Found incidentally while verifying Docker support for the OMP integration PR.
What happened
Building the agent base image from a clean checkout (
node scripts/build-agent-image.mjs --no-cache) fails at the DeepSeek Harness step:Where
docker/agent.Dockerfile, theRUN ... dsh plugin --profile dsh-tui add @deepseek-harness-tui/dsh-tui ...step in theagentuser-setup layer.Repro
on a fresh checkout of
master(no local branch changes).Cause (best guess, not confirmed)
dsh's plugin installer appears to now requirepnpmon PATH to manage profile plugins, and the basenode:22-bookworm-slimimage doesn't have it installed. This is presumably a behavior change in a recent@deepseek-ai/dshrelease, since the Dockerfile step itself is unchanged.Impact
Docker cases (the whole agent base image) can't currently be built from scratch on a fresh checkout, blocking Docker-mode session support entirely until fixed.
Suggested fix
Add
pnpmto the base image (either viacorepack enable— already bundled with Node 22 — ornpm install -g pnpm) before thedsh plugininstall step.Found incidentally while verifying Docker support for the OMP integration PR.