From 3a7aa6195ce5bf2715068ff2760f523b328117ed Mon Sep 17 00:00:00 2001 From: Tom Riglar Date: Tue, 23 Jun 2026 10:28:37 +0100 Subject: [PATCH 1/2] fix: use British spelling for clack cancellation message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @clack/prompts ships the US spelling ("Canceled") for its built-in spinner/prompt SIGINT cancellation message, which leaked into CLI output (e.g. "◇ Canceled" when cancelling a cloud submit). Override it once at startup via updateSettings so it reads "Cancelled", matching the British spelling used everywhere else in the CLI. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.ts b/src/index.ts index b1a6df6..b6178f5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,5 @@ #!/usr/bin/env node +import { updateSettings } from '@clack/prompts'; import type { CommandDef, SubCommandsDef } from 'citty'; import { defineCommand, runCommand, showUsage } from 'citty'; @@ -16,6 +17,11 @@ import { whoamiCommand } from './commands/whoami.js'; import { telemetry } from './services/telemetry.service.js'; import { CliError, getCliVersion, logger } from './utils/cli.js'; +// @clack/prompts ships the US spelling ("Canceled") for its built-in +// spinner/prompt cancellation message; align it with the British spelling +// ("Cancelled") used everywhere else in the CLI. Runs once before any prompt. +updateSettings({ messages: { cancel: 'Cancelled' } }); + const main = defineCommand({ meta: { name: 'dcd', From 5e4d362e6d18e05bb3e05098d65cacc605588fcb Mon Sep 17 00:00:00 2001 From: Tom Riglar Date: Tue, 23 Jun 2026 10:50:37 +0100 Subject: [PATCH 2/2] docs: drop redundant comment line per PR review Address claude-review on PR #31: "Runs once before any prompt." explains when the code runs (derivable from placement), which CLAUDE.md discourages. Keep the non-obvious @clack US-spelling constraint. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b6178f5..c734a1a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -19,7 +19,7 @@ import { CliError, getCliVersion, logger } from './utils/cli.js'; // @clack/prompts ships the US spelling ("Canceled") for its built-in // spinner/prompt cancellation message; align it with the British spelling -// ("Cancelled") used everywhere else in the CLI. Runs once before any prompt. +// ("Cancelled") used everywhere else in the CLI. updateSettings({ messages: { cancel: 'Cancelled' } }); const main = defineCommand({