From e943e6317486649852eefd8f5624a747a49f8bfc Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 14 Jan 2026 19:57:42 +0000 Subject: [PATCH] chore(auth): rename Claude CLI to Claude Code CLI (#915) Thanks @SeanZoR. Co-authored-by: Sean Katz --- CHANGELOG.md | 1 + src/commands/auth-choice-options.ts | 6 +++--- src/discord/monitor/message-handler.process.ts | 3 +-- src/telegram/send.caption-split.test.ts | 8 ++------ 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7786bbb8d..d9cc0119c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Changes - Usage: add MiniMax coding plan usage tracking. +- Auth: rename “Claude CLI” to “Claude Code CLI” in auth options. (#915) — thanks @SeanZoR. ### Fixes - Gateway/Dev: ensure `pnpm gateway:dev` always uses the dev profile config + state (`~/.clawdbot-dev`). diff --git a/src/commands/auth-choice-options.ts b/src/commands/auth-choice-options.ts index 5911942c2..80e585f84 100644 --- a/src/commands/auth-choice-options.ts +++ b/src/commands/auth-choice-options.ts @@ -42,7 +42,7 @@ const AUTH_CHOICE_GROUP_DEFS: { { value: "anthropic", label: "Anthropic", - hint: "Claude CLI + API key", + hint: "Claude Code CLI + API key", choices: ["claude-cli", "setup-token", "token", "apiKey"], }, { @@ -138,13 +138,13 @@ export function buildAuthChoiceOptions(params: { if (claudeCli?.type === "oauth" || claudeCli?.type === "token") { options.push({ value: "claude-cli", - label: "Anthropic token (Claude CLI)", + label: "Anthropic token (Claude Code CLI)", hint: formatOAuthHint(claudeCli.expires), }); } else if (params.includeClaudeCliIfMissing && platform === "darwin") { options.push({ value: "claude-cli", - label: "Anthropic token (Claude CLI)", + label: "Anthropic token (Claude Code CLI)", hint: "requires Keychain access", }); } diff --git a/src/discord/monitor/message-handler.process.ts b/src/discord/monitor/message-handler.process.ts index 379014bb5..3317753ca 100644 --- a/src/discord/monitor/message-handler.process.ts +++ b/src/discord/monitor/message-handler.process.ts @@ -133,8 +133,7 @@ export async function processDiscordMessage(ctx: DiscordMessagePreflightContext) }); let shouldClearHistory = false; const shouldIncludeChannelHistory = - !isDirectMessage && - !(isGuildMessage && channelConfig?.autoThread && !threadChannel); + !isDirectMessage && !(isGuildMessage && channelConfig?.autoThread && !threadChannel); if (shouldIncludeChannelHistory) { combinedBody = buildHistoryContextFromMap({ historyMap: guildHistories, diff --git a/src/telegram/send.caption-split.test.ts b/src/telegram/send.caption-split.test.ts index 64a144c76..d625c9da3 100644 --- a/src/telegram/send.caption-split.test.ts +++ b/src/telegram/send.caption-split.test.ts @@ -269,9 +269,7 @@ describe("sendMessageTelegram caption splitting", () => { message_id: 80, chat: { id: chatId }, }); - const sendMessage = vi - .fn() - .mockRejectedValue(new Error("400: Bad Request: chat not found")); + const sendMessage = vi.fn().mockRejectedValue(new Error("400: Bad Request: chat not found")); const api = { sendPhoto, sendMessage } as unknown as { sendPhoto: typeof sendPhoto; sendMessage: typeof sendMessage; @@ -289,9 +287,7 @@ describe("sendMessageTelegram caption splitting", () => { api, mediaUrl: "https://example.com/photo.jpg", }), - ).rejects.toThrow( - /Telegram send failed: chat not found \(chat_id=123\)\./, - ); + ).rejects.toThrow(/Telegram send failed: chat not found \(chat_id=123\)\./); }); it("does not send follow-up text when caption is empty", async () => {