From 0d27ca596aa202f0ad162a447300387eb85c5a53 Mon Sep 17 00:00:00 2001 From: Anandan Date: Sat, 4 Apr 2026 23:50:15 +0530 Subject: [PATCH] Neutralize remaining internal-only diagnostic labels (#359) This pass rewrites a small set of ant-only diagnostic and UI labels to neutral internal wording while leaving command definitions, flags, and runtime logic untouched. It focuses on internal debug output, dead UI branches, and noninteractive headings rather than broader product text. Constraint: Label cleanup only; do not change command semantics or ant-only logic gates Rejected: Renaming ant-only command descriptions in main.tsx | broader UX surface better handled in a separate reviewed pass Confidence: high Scope-risk: narrow Reversibility: clean Directive: Remaining ANT-ONLY hits are mostly command descriptions and intentionally deferred user-facing strings Tested: bun run build Tested: bun run smoke Tested: bun run verify:privacy Tested: bun run test:provider Tested: bun run test:provider-recommendation Not-tested: Full repo typecheck (upstream baseline remains noisy) Co-authored-by: anandh8x --- src/bridge/bridgeUI.ts | 2 +- src/commands/context/context-noninteractive.ts | 6 +++--- src/components/ContextVisualization.tsx | 6 +++--- src/components/DevBar.tsx | 2 +- src/components/HelpV2/HelpV2.tsx | 2 +- src/components/InterruptedByUser.tsx | 2 +- src/components/LogoV2/LogoV2.tsx | 4 ++-- src/services/api/errors.ts | 2 +- src/services/tips/tipRegistry.ts | 4 ++-- src/tools/AgentTool/UI.tsx | 4 ++-- src/utils/analyzeContext.ts | 2 +- src/utils/debug.ts | 2 +- src/utils/model/modelOptions.ts | 2 +- src/utils/processUserInput/processSlashCommand.tsx | 2 +- src/utils/settings/mdm/constants.ts | 2 +- 15 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/bridge/bridgeUI.ts b/src/bridge/bridgeUI.ts index 5149839e..fdb1c095 100644 --- a/src/bridge/bridgeUI.ts +++ b/src/bridge/bridgeUI.ts @@ -223,7 +223,7 @@ export function createBridgeLogger(options: { if (process.env.USER_TYPE === 'ant' && debugLogPath) { writeStatus( - `${chalk.yellow('[ANT-ONLY] Logs:')} ${chalk.dim(debugLogPath)}\n`, + `${chalk.yellow('[internal] Logs:')} ${chalk.dim(debugLogPath)}\n`, ) } writeStatus(`${indicatorColor(indicator)} ${stateText}${suffix}\n`) diff --git a/src/commands/context/context-noninteractive.ts b/src/commands/context/context-noninteractive.ts index 60dee7b2..ed35df75 100644 --- a/src/commands/context/context-noninteractive.ts +++ b/src/commands/context/context-noninteractive.ts @@ -205,7 +205,7 @@ function formatContextAsMarkdownTable(data: ContextData): string { systemTools.length > 0 && process.env.USER_TYPE === 'ant' ) { - output += `### [ANT-ONLY] System Tools\n\n` + output += `### [internal] System Tools\n\n` output += `| Tool | Tokens |\n` output += `|------|--------|\n` for (const tool of systemTools) { @@ -220,7 +220,7 @@ function formatContextAsMarkdownTable(data: ContextData): string { systemPromptSections.length > 0 && process.env.USER_TYPE === 'ant' ) { - output += `### [ANT-ONLY] System Prompt Sections\n\n` + output += `### [internal] System Prompt Sections\n\n` output += `| Section | Tokens |\n` output += `|---------|--------|\n` for (const section of systemPromptSections) { @@ -290,7 +290,7 @@ function formatContextAsMarkdownTable(data: ContextData): string { // Message breakdown (internal-only) if (messageBreakdown && process.env.USER_TYPE === 'ant') { - output += `### [ANT-ONLY] Message Breakdown\n\n` + output += `### [internal] Message Breakdown\n\n` output += `| Category | Tokens |\n` output += `|----------|--------|\n` output += `| Tool calls | ${formatTokens(messageBreakdown.toolCallTokens)} |\n` diff --git a/src/components/ContextVisualization.tsx b/src/components/ContextVisualization.tsx index 17dedde6..8987f514 100644 --- a/src/components/ContextVisualization.tsx +++ b/src/components/ContextVisualization.tsx @@ -270,7 +270,7 @@ export function ContextVisualization(t0) { } else { t4 = $[53]; } - t5 = (systemTools && systemTools.length > 0 || hasDeferredBuiltinTools) && false && [ANT-ONLY] System tools{hasDeferredBuiltinTools && (some loaded on-demand)}Loaded{systemTools?.map(_temp14)}{deferredBuiltinTools.filter(_temp15).map(_temp16)}{hasDeferredBuiltinTools && deferredBuiltinTools.some(_temp17) && Available{deferredBuiltinTools.filter(_temp18).map(_temp19)}}; + t5 = (systemTools && systemTools.length > 0 || hasDeferredBuiltinTools) && false && [internal] System tools{hasDeferredBuiltinTools && (some loaded on-demand)}Loaded{systemTools?.map(_temp14)}{deferredBuiltinTools.filter(_temp15).map(_temp16)}{hasDeferredBuiltinTools && deferredBuiltinTools.some(_temp17) && Available{deferredBuiltinTools.filter(_temp18).map(_temp19)}}; $[0] = categories; $[1] = gridRows; $[2] = mcpTools; @@ -304,7 +304,7 @@ export function ContextVisualization(t0) { } let t10; if ($[54] !== systemPromptSections) { - t10 = systemPromptSections && systemPromptSections.length > 0 && false && [ANT-ONLY] System prompt sections{systemPromptSections.map(_temp20)}; + t10 = systemPromptSections && systemPromptSections.length > 0 && false && [internal] System prompt sections{systemPromptSections.map(_temp20)}; $[54] = systemPromptSections; $[55] = t10; } else { @@ -336,7 +336,7 @@ export function ContextVisualization(t0) { } let t14; if ($[62] !== messageBreakdown) { - t14 = messageBreakdown && false && [ANT-ONLY] Message breakdownTool calls: {formatTokens(messageBreakdown.toolCallTokens)} tokensTool results: {formatTokens(messageBreakdown.toolResultTokens)} tokensAttachments: {formatTokens(messageBreakdown.attachmentTokens)} tokensAssistant messages (non-tool): {formatTokens(messageBreakdown.assistantMessageTokens)} tokensUser messages (non-tool-result): {formatTokens(messageBreakdown.userMessageTokens)} tokens{messageBreakdown.toolCallsByType.length > 0 && [ANT-ONLY] Top tools{messageBreakdown.toolCallsByType.slice(0, 5).map(_temp26)}}{messageBreakdown.attachmentsByType.length > 0 && [ANT-ONLY] Top attachments{messageBreakdown.attachmentsByType.slice(0, 5).map(_temp27)}}; + t14 = messageBreakdown && false && [internal] Message breakdownTool calls: {formatTokens(messageBreakdown.toolCallTokens)} tokensTool results: {formatTokens(messageBreakdown.toolResultTokens)} tokensAttachments: {formatTokens(messageBreakdown.attachmentTokens)} tokensAssistant messages (non-tool): {formatTokens(messageBreakdown.assistantMessageTokens)} tokensUser messages (non-tool-result): {formatTokens(messageBreakdown.userMessageTokens)} tokens{messageBreakdown.toolCallsByType.length > 0 && [internal] Top tools{messageBreakdown.toolCallsByType.slice(0, 5).map(_temp26)}}{messageBreakdown.attachmentsByType.length > 0 && [internal] Top attachments{messageBreakdown.attachmentsByType.slice(0, 5).map(_temp27)}}; $[62] = messageBreakdown; $[63] = t14; } else { diff --git a/src/components/DevBar.tsx b/src/components/DevBar.tsx index 81127b04..4e5cc244 100644 --- a/src/components/DevBar.tsx +++ b/src/components/DevBar.tsx @@ -35,7 +35,7 @@ export function DevBar() { const recentOps = t1; let t2; if ($[3] !== recentOps) { - t2 = [ANT-ONLY] slow sync: {recentOps}; + t2 = [internal] slow sync: {recentOps}; $[3] = recentOps; $[4] = t2; } else { diff --git a/src/components/HelpV2/HelpV2.tsx b/src/components/HelpV2/HelpV2.tsx index e4ff24b9..7d74ee00 100644 --- a/src/components/HelpV2/HelpV2.tsx +++ b/src/components/HelpV2/HelpV2.tsx @@ -114,7 +114,7 @@ export function HelpV2(t0) { if (false && antOnlyCommands.length > 0) { let t7; if ($[26] !== antOnlyCommands || $[27] !== close || $[28] !== columns || $[29] !== maxHeight) { - t7 = ; + t7 = ; $[26] = antOnlyCommands; $[27] = close; $[28] = columns; diff --git a/src/components/InterruptedByUser.tsx b/src/components/InterruptedByUser.tsx index 72408d7a..32e3cc5f 100644 --- a/src/components/InterruptedByUser.tsx +++ b/src/components/InterruptedByUser.tsx @@ -4,7 +4,7 @@ export function InterruptedByUser() { const $ = _c(1); let t0; if ($[0] === Symbol.for("react.memo_cache_sentinel")) { - t0 = <>Interrupted {false ? · [ANT-ONLY] /issue to report a model issue : · What should Claude do instead?}; + t0 = <>Interrupted {false ? · [internal] /issue to report a model issue : · What should Claude do instead?}; $[0] = t0; } else { t0 = $[0]; diff --git a/src/components/LogoV2/LogoV2.tsx b/src/components/LogoV2/LogoV2.tsx index 7a472a0a..883cb9f8 100644 --- a/src/components/LogoV2/LogoV2.tsx +++ b/src/components/LogoV2/LogoV2.tsx @@ -225,7 +225,7 @@ export function LogoV2() { let t22; if ($[25] === Symbol.for("react.memo_cache_sentinel")) { t19 = false && !process.env.DEMO_VERSION && Use /issue to report model behavior issues; - t20 = false && !process.env.DEMO_VERSION && [ANT-ONLY] Logs:API calls: {getDisplayPath(getDumpPromptsPath())}Debug logs: {getDisplayPath(getDebugLogPath())}{isDetailedProfilingEnabled() && Startup Perf: {getDisplayPath(getStartupPerfLogPath())}}; + t20 = false && !process.env.DEMO_VERSION && [internal] Logs:API calls: {getDisplayPath(getDumpPromptsPath())}Debug logs: {getDisplayPath(getDebugLogPath())}{isDetailedProfilingEnabled() && Startup Perf: {getDisplayPath(getStartupPerfLogPath())}}; t21 = false && ; t22 = false && ; $[25] = t19; @@ -502,7 +502,7 @@ export function LogoV2() { let t40; if ($[86] === Symbol.for("react.memo_cache_sentinel")) { t37 = false && !process.env.DEMO_VERSION && Use /issue to report model behavior issues; - t38 = false && !process.env.DEMO_VERSION && [ANT-ONLY] Logs:API calls: {getDisplayPath(getDumpPromptsPath())}Debug logs: {getDisplayPath(getDebugLogPath())}{isDetailedProfilingEnabled() && Startup Perf: {getDisplayPath(getStartupPerfLogPath())}}; + t38 = false && !process.env.DEMO_VERSION && [internal] Logs:API calls: {getDisplayPath(getDumpPromptsPath())}Debug logs: {getDisplayPath(getDebugLogPath())}{isDetailedProfilingEnabled() && Startup Perf: {getDisplayPath(getStartupPerfLogPath())}}; t39 = false && ; t40 = false && ; $[86] = t37; diff --git a/src/services/api/errors.ts b/src/services/api/errors.ts index 64e5ba1c..c2a3512d 100644 --- a/src/services/api/errors.ts +++ b/src/services/api/errors.ts @@ -764,7 +764,7 @@ export function getAssistantMessageFromError( ) { // Get organization ID from config - only use OAuth account data when actively using OAuth const orgId = getOauthAccountInfo()?.organizationUuid - const baseMsg = `[ANT-ONLY] Your org isn't gated into the \`${model}\` model. Either run \`claude\` with \`ANTHROPIC_MODEL=${getDefaultMainLoopModelSetting()}\`` + const baseMsg = `[internal] Your org isn't gated into the \`${model}\` model. Either run \`claude\` with \`ANTHROPIC_MODEL=${getDefaultMainLoopModelSetting()}\`` const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${MACRO.FEEDBACK_CHANNEL} for help getting access.` : `${baseMsg} or reach out in ${MACRO.FEEDBACK_CHANNEL} for help getting access.` diff --git a/src/services/tips/tipRegistry.ts b/src/services/tips/tipRegistry.ts index c99edfdc..d1377b2d 100644 --- a/src/services/tips/tipRegistry.ts +++ b/src/services/tips/tipRegistry.ts @@ -638,14 +638,14 @@ const internalOnlyTips: Tip[] = { id: 'important-claudemd', content: async () => - '[ANT-ONLY] Use "IMPORTANT:" prefix for must-follow CLAUDE.md rules', + '[internal] Use "IMPORTANT:" prefix for must-follow CLAUDE.md rules', cooldownSessions: 30, isRelevant: async () => true, }, { id: 'skillify', content: async () => - '[ANT-ONLY] Use /skillify at the end of a workflow to turn it into a reusable skill', + '[internal] Use /skillify at the end of a workflow to turn it into a reusable skill', cooldownSessions: 15, isRelevant: async () => true, }, diff --git a/src/tools/AgentTool/UI.tsx b/src/tools/AgentTool/UI.tsx index e218af51..f7d0167d 100644 --- a/src/tools/AgentTool/UI.tsx +++ b/src/tools/AgentTool/UI.tsx @@ -387,7 +387,7 @@ export function renderToolResultMessage(data: Output, progressMessagesForMessage return {"external" === 'ant' && - [ANT-ONLY] API calls: {getDisplayPath(getDumpPromptsPath(agentId))} + [internal] API calls: {getDisplayPath(getDumpPromptsPath(agentId))} } {isTranscriptMode && prompt && @@ -593,7 +593,7 @@ export function renderToolUseRejectedMessage(_input: { return <> {"external" === 'ant' && agentId && - [ANT-ONLY] API calls: {getDisplayPath(getDumpPromptsPath(agentId))} + [internal] API calls: {getDisplayPath(getDumpPromptsPath(agentId))} } {renderToolUseProgressMessage(progressMessagesForMessage, { diff --git a/src/utils/analyzeContext.ts b/src/utils/analyzeContext.ts index 694d8b68..27d40dae 100644 --- a/src/utils/analyzeContext.ts +++ b/src/utils/analyzeContext.ts @@ -1023,7 +1023,7 @@ export async function analyzeContextUsage( cats.push({ name: process.env.USER_TYPE === 'ant' - ? '[ANT-ONLY] System tools' + ? '[internal] System tools' : 'System tools', tokens: systemToolsTokens, color: 'inactive', diff --git a/src/utils/debug.ts b/src/utils/debug.ts index 220da2bf..ea7258bd 100644 --- a/src/utils/debug.ts +++ b/src/utils/debug.ts @@ -261,7 +261,7 @@ export function logAntError(context: string, error: unknown): void { } if (error instanceof Error && error.stack) { - logForDebugging(`[ANT-ONLY] ${context} stack trace:\n${error.stack}`, { + logForDebugging(`[internal] ${context} stack trace:\n${error.stack}`, { level: 'error', }) } diff --git a/src/utils/model/modelOptions.ts b/src/utils/model/modelOptions.ts index e441aad0..776d5ec3 100644 --- a/src/utils/model/modelOptions.ts +++ b/src/utils/model/modelOptions.ts @@ -359,7 +359,7 @@ function getModelOptionsBase(fastMode = false): ModelOption[] { const antModelOptions: ModelOption[] = getAntModels().map(m => ({ value: m.alias, label: m.label, - description: m.description ?? `[ANT-ONLY] ${m.label} (${m.model})`, + description: m.description ?? `[internal] ${m.label} (${m.model})`, })) return [ diff --git a/src/utils/processUserInput/processSlashCommand.tsx b/src/utils/processUserInput/processSlashCommand.tsx index 9be9df09..ba631e2e 100644 --- a/src/utils/processUserInput/processSlashCommand.tsx +++ b/src/utils/processUserInput/processSlashCommand.tsx @@ -274,7 +274,7 @@ async function executeForkedSlashCommand(command: CommandBase & PromptCommand, a // Prepend debug log for ant users so it appears inside the command output if ("external" === 'ant') { - resultText = `[ANT-ONLY] API calls: ${getDisplayPath(getDumpPromptsPath(agentId))}\n${resultText}`; + resultText = `[internal] API calls: ${getDisplayPath(getDumpPromptsPath(agentId))}\n${resultText}`; } // Return the result as a user message (simulates the agent's output) diff --git a/src/utils/settings/mdm/constants.ts b/src/utils/settings/mdm/constants.ts index 87a1db00..c9bba13d 100644 --- a/src/utils/settings/mdm/constants.ts +++ b/src/utils/settings/mdm/constants.ts @@ -73,7 +73,7 @@ export function getMacOSPlistPaths(): Array<{ path: string; label: string }> { 'Preferences', `${MACOS_PREFERENCE_DOMAIN}.plist`, ), - label: 'user preferences (ant-only)', + label: 'user preferences (internal-only)', }) }