Skip to content

using-git-worktrees: worktree-dev.sh passes --mode to qa:local, which rejects unknown options #182

Description

@JorgeMenaDev

Seen 2026-08-10 on andy-partner (repo with the local-runtime contract).

worktree-dev.sh up mobile-ux-cesar --surface app --mode human forwards --mode human to bun run qa:local, but andy-partner's scripts/qa-local.ts accepts only repeated --surface <s> and throws Invalid QA launcher option: --mode, so the detached server dies right after setup (SERVER_DIED).

Either strip --mode before invoking qa:local, or only forward it to runtimes that accept it. Workaround used: rerun bun run qa:local -- --surface app manually inside the worktree.

Also hit the same session: the first up failed because the repo's root .env.local was absent in the main checkout (dangling apps/web/.env.local symlink), and copy-env-local.sh copied only spikes envs — a clearer error naming the missing root env would have saved a diagnosis loop.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions