feat(coding-agent): add warnings.anthropicExtraUsage opt-out

closes #3808
This commit is contained in:
Mario Zechner
2026-04-27 20:35:48 +02:00
parent e4f847ff68
commit aefb0fedfe
5 changed files with 133 additions and 0 deletions

View File

@@ -52,6 +52,10 @@ export interface MarkdownSettings {
codeBlockIndent?: string; // default: " "
}
export interface WarningSettings {
anthropicExtraUsage?: boolean; // default: true
}
export type TransportSetting = Transport;
/**
@@ -104,6 +108,7 @@ export interface Settings {
autocompleteMaxVisible?: number; // Max visible items in autocomplete dropdown (default: 5)
showHardwareCursor?: boolean; // Show terminal cursor while still positioning it for IME
markdown?: MarkdownSettings;
warnings?: WarningSettings;
sessionDir?: string; // Custom session storage directory (same format as --session-dir CLI flag)
}
@@ -1049,4 +1054,14 @@ export class SettingsManager {
getCodeBlockIndent(): string {
return this.settings.markdown?.codeBlockIndent ?? " ";
}
getWarnings(): WarningSettings {
return { ...(this.settings.warnings ?? {}) };
}
setWarnings(warnings: WarningSettings): void {
this.globalSettings.warnings = { ...warnings };
this.markModified("warnings");
this.save();
}
}