



















@@ -378,6 +378,30 @@ browser/app inside the visible session, bridges the lease into the authenticated
378378WebVNC portal, and opens the portal. Keep browsers windowed for human QA; use
379379`--fullscreen` only for capture/video workflows.
380380381+Human handoff preflight:
382+383+- Do not assume a visible desktop or launched browser means the repo CLI/app is
384+ installed, built, or on the interactive terminal's `PATH`.
385+- Before handing WebVNC to a human tester, prove the expected command from the
386+ same kept lease and from a neutral directory such as `~`.
387+- If the handoff needs repo-local code, sync/build/link it explicitly on that
388+ lease. Source-tree CLIs often need build output before a symlink works.
389+- Prefer a real `command -v <expected-command> && <expected-command> --version`
390+ check over a repo-root-only `pnpm ...` command.
391+392+Generic handoff repair pattern:
393+394+```sh
395+../crabbox/bin/crabbox run --id <cbx_id-or-slug> --full-resync --shell -- \
396+"set -euo pipefail
397+ pnpm install --frozen-lockfile
398+ pnpm build
399+ sudo ln -sf \"\$PWD/<cli-entry>\" /usr/local/bin/<expected-command>
400+ cd ~
401+ command -v <expected-command>
402+ <expected-command> --version"
403+```
404+381405## If Crabbox Fails
382406383407Keep the fallback narrow. First decide whether the failure is Crabbox itself,
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。