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 <test@example.com>
This commit is contained in:
Anandan
2026-04-04 23:50:15 +05:30
committed by GitHub
parent 8fc40ee8c4
commit 0d27ca596a
15 changed files with 22 additions and 22 deletions

View File

@@ -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',

View File

@@ -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',
})
}

View File

@@ -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 [

View File

@@ -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)

View File

@@ -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)',
})
}