Skip to content

bug(cli): --override-all asks consent after the rollout; Docker gate ignores global --yes #5175

Closed

Description

@tale-code-bot

Part of #4839 (split from it in task TALE-176).

Problem

#4839 addendum 1, defect 4, and addendum 5, defect 14. Paths are under tools/cli/src/.

# Defect Code What the operator sees
4 tale deploy --override-all asks for consent only after the deploy, including the restarts it forces --override-all implies --stop (lib/actions/run-deploy.ts:140) and force-recreation (:87-90). So the stop-gated db, object-store and proxy (lib/compose/types.ts:152) are recreated (lib/actions/deploy.ts:575-584). It also forces the snapshot (deploy.ts:506-509, :520). Then come the new colour (:847-856), the traffic switch (:869), the old colour's retirement (:876) and the file sync (:900). Only then does reseedAllOrgsFromBuiltin (:912-917) check consent (lib/actions/reseed-all-orgs.ts:113-125). The try has no catch (deploy.ts:923 } finally {), so nothing is undone In CI without --yes: "--override-all requires --yes (-y) when stdin is not a TTY (e.g. CI)." It is a plain Error (reseed-all-orgs.ts:116), so exit code 1. The new version and the restarts are already live. Declining interactively: "Aborted by user." (:123), then "Deployment complete! Version … is now live" (deploy.ts:920), after downtime that only the reseed needed
14 The global --yes doesn't reach the Docker install gate The root option is index.ts:48 .option('-y, --yes', 'assume "yes" for all prompts (non-interactive)'), and resolveConsent honours it (utils/output-mode.ts:97-99). But run-deploy.ts:68 const docker = await ensureDocker({ assumeYes: options.yes }); passes only deploy's own --yes (default false, commands/deploy/index.ts:57-61). lib/docker/ensure-docker.ts:595 if (!interactive && !opts.assumeYes) { then refuses On a fresh host, tale --yes deploy in CI stops with "Docker is not installed and this is a non-interactive shell. Re-run with --yes to allow the CLI to install Docker, or install it from …" (ensure-docker.ts:599), exit code 3 (run-deploy.ts:70). The operator already passed --yes

Notes, all at 29e9445:

  • optimize rag action #4, a third variant: the reseed gate checks only stdin (reseed-all-orgs.ts:113), but confirm needs stdin and stdout to be terminals (utils/prompt.ts:62). With stdout piped, the run prints only "Aborted." and exits 4 (utils/run-command.ts:32-33), after the deploy is live.
  • optimize rag action #4: nothing before deploy() asks for --override-all consent. run-deploy.ts:54-62 only refuses combining it with --override.
  • feat(crawler): reorganize the code and improve URL capture reliability and quality #14, tale deploy --yes is refused the same way (static reading, not run). Commander 14.0.3 (tools/cli/package.json:31) resolves root options anywhere on the command line. The repo says so at utils/update-version-flag.ts:2 and tests it at utils/update-version-flag.test.ts:35. Nothing under tools/cli calls enablePositionalOptions or passThroughOptions, and index.ts:160 reroutes only update --version. So the root option also claims tale deploy --yes, deploy's options.yes stays false, and "Re-run with --yes" can't help either placement.
  • feat(crawler): reorganize the code and improve URL capture reliability and quality #14: interactive runs are unaffected, because confirm honours the global flag (utils/prompt.ts:49). lib/actions/dev.ts:251 and lib/actions/sandbox-device.ts:79 pass the global flag to ensureDocker. The ?? used in dev.ts would not work for deploy, whose local --yes defaults to false.

Expected

  • optimize rag action #4: resolve the --override-all consent before anything changes, next to the usage check (run-deploy.ts:54-62) and before ensureDocker (:68). Declining, or a missing --yes without a terminal, must leave the running deployment untouched. --dry-run keeps its current early return (reseed-all-orgs.ts:104-110).
  • feat(crawler): reorganize the code and improve URL capture reliability and quality #14: have ensureDocker use resolveConsent(opts.assumeYes), like the reseed prompt does (reseed-all-orgs.ts:114). Then tale --yes deploy and tale deploy --yes both pass the gate.

Regression:

Severity and owner

Activity

  1. added
    bug
    agent-ready
    on Oct 30, 2026
  2. added 2 commits that reference this issue on Oct 31, 2026
    c4c2c82
    6b275cf
  3. added a commit that references this issue on Oct 31, 2026
    4737040
  4. added a commit that references this issue on Oct 31, 2026
    98483c7
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

    agent-readybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions