From 43f29ee90421e3642f2de304addb11483d44b7de Mon Sep 17 00:00:00 2001 From: nntrivi2001 Date: Thu, 13 Aug 2026 15:38:50 +0700 Subject: [PATCH] fix(ccam-open): always rebuild the dashboard bundle /ccam-open built only when client/dist was missing, so a stale bundle silently outlived code fixes (seen 2026-08-13: fix b0bfc66 wasn't served until a --force rebuild). Pass --force unconditionally. --- plugins/ccam/commands/ccam-open.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/plugins/ccam/commands/ccam-open.md b/plugins/ccam/commands/ccam-open.md index 53cb822..82f00ad 100644 --- a/plugins/ccam/commands/ccam-open.md +++ b/plugins/ccam/commands/ccam-open.md @@ -1,19 +1,19 @@ --- -description: Build the dashboard UI if needed and print its URL +description: Rebuild the dashboard UI and print its URL --- -Build the dashboard bundle if it is not there yet, then print the URL. The -bootstrap already builds it on session start, so this is usually a no-op — use -it to force a rebuild, or to finish the build if the bootstrap's own attempt -failed (check `~/.claude/agent-dashboard/runtime/client-build.log`). +Rebuild the dashboard bundle, then print the URL. Always forces a rebuild so a +stale bundle (e.g. after a fix commit landed but the bootstrap's build predates +it) never serves silently. Also finishes the build if the bootstrap's own +attempt failed (check `~/.claude/agent-dashboard/runtime/client-build.log`). ```bash -node "${CLAUDE_PLUGIN_ROOT}/scripts/plugin-open.js" +node "${CLAUDE_PLUGIN_ROOT}/scripts/plugin-open.js" --force ``` -The first run installs the client toolchain and takes a few minutes; later runs -print the URL immediately. No server restart is needed — the server already -serves from that directory. +Install + build takes a few minutes if the client toolchain isn't already +installed; otherwise the rebuild itself takes ~10-15s. No server restart is +needed — the server already serves from that directory. Then help the user open it: @@ -25,5 +25,4 @@ uname -s - `Linux` → `xdg-open ` - otherwise → tell them to open the URL in a browser. -Keep the output to a few lines. Pass `--force` to the script only if the user -asks for a rebuild. +Keep the output to a few lines.