feat(coding-agent): add warnings.anthropicExtraUsage opt-out
closes #3808
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user