From 945343f710443f273fa6e6c6d9e01a5c5894201e Mon Sep 17 00:00:00 2001 From: Raiden Date: Sun, 12 Jul 2026 04:59:20 +0000 Subject: [PATCH 1/2] fix: include workspace CLI binaries in Docker image The Dockerfile copies src/workspaces/templates but not src/workspaces/cli/bin/. The launcher injects CLI skills (alice, alice-uta, alice-workspace, traderhub) into workspaces as the agent's ONLY path to OpenAlice's 72 tool-center tools. Without these binaries on PATH, spawned agent sessions (claude, codex) start successfully but cannot reach any market data, trading, analysis, or inbox tools - the agent runs but is effectively blind. Fix: COPY the bin directory and symlink the four CLIs to /usr/local/bin/. --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Dockerfile b/Dockerfile index 3e4fc90d8..2c707c955 100644 --- a/Dockerfile +++ b/Dockerfile @@ -88,6 +88,19 @@ COPY --from=build /src/services/uta/dist ./services/uta/dist COPY --from=build /src/ui/dist ./ui/dist COPY --from=build /src/default ./default COPY --from=build /src/src/workspaces/templates ./src/workspaces/templates +# Workspace CLIs (alice, alice-uta, alice-workspace, traderhub) — the launcher +# injects these as the agent's ONLY path to OpenAlice's tools (no MCP in +# workspaces). Without them on PATH, spawned agent sessions (claude, codex) +# start but cannot reach any of the 72 registered tool-center tools. +COPY --from=build /src/src/workspaces/cli/bin ./src/workspaces/cli/bin +RUN chmod +x /app/src/workspaces/cli/bin/alice \ + /app/src/workspaces/cli/bin/alice-uta \ + /app/src/workspaces/cli/bin/alice-workspace \ + /app/src/workspaces/cli/bin/traderhub \ + && ln -sf /app/src/workspaces/cli/bin/alice /usr/local/bin/alice \ + && ln -sf /app/src/workspaces/cli/bin/alice-uta /usr/local/bin/alice-uta \ + && ln -sf /app/src/workspaces/cli/bin/alice-workspace /usr/local/bin/alice-workspace \ + && ln -sf /app/src/workspaces/cli/bin/traderhub /usr/local/bin/traderhub # tsup bundles backend deps into the entry files where possible, but # native modules (node-pty, longbridge, etc.) stay as runtime requires. COPY --from=build /src/node_modules ./node_modules From 25a49136dc10ea980cefb02d753d9f9b5e8e4af6 Mon Sep 17 00:00:00 2001 From: Raiden Date: Mon, 13 Jul 2026 16:22:12 +0000 Subject: [PATCH 2/2] fix: also copy openalice-cli.cjs to /usr/local/bin The alice CLI shell scripts resolve their sibling openalice-cli.cjs payload relative to argv[0]. When symlinked to /usr/local/bin/alice, the resolution finds /usr/local/bin/openalice-cli.cjs which doesn't exist - the CLI aborts with 'Cannot find module'. Fix: also copy the .cjs payload alongside the symlinks. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2c707c955..66c9c509d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -100,7 +100,8 @@ RUN chmod +x /app/src/workspaces/cli/bin/alice \ && ln -sf /app/src/workspaces/cli/bin/alice /usr/local/bin/alice \ && ln -sf /app/src/workspaces/cli/bin/alice-uta /usr/local/bin/alice-uta \ && ln -sf /app/src/workspaces/cli/bin/alice-workspace /usr/local/bin/alice-workspace \ - && ln -sf /app/src/workspaces/cli/bin/traderhub /usr/local/bin/traderhub + && ln -sf /app/src/workspaces/cli/bin/traderhub /usr/local/bin/traderhub \ + && cp /app/src/workspaces/cli/bin/openalice-cli.cjs /usr/local/bin/openalice-cli.cjs # tsup bundles backend deps into the entry files where possible, but # native modules (node-pty, longbridge, etc.) stay as runtime requires. COPY --from=build /src/node_modules ./node_modules