feat(coding-agent): add warnings.anthropicExtraUsage opt-out
closes #3808
This commit is contained in:
@@ -3788,6 +3788,7 @@ export class InteractiveMode {
|
||||
quietStartup: this.settingsManager.getQuietStartup(),
|
||||
clearOnShrink: this.settingsManager.getClearOnShrink(),
|
||||
showTerminalProgress: this.settingsManager.getShowTerminalProgress(),
|
||||
warnings: this.settingsManager.getWarnings(),
|
||||
},
|
||||
{
|
||||
onAutoCompactChange: (enabled) => {
|
||||
@@ -3901,6 +3902,9 @@ export class InteractiveMode {
|
||||
onShowTerminalProgressChange: (enabled) => {
|
||||
this.settingsManager.setShowTerminalProgress(enabled);
|
||||
},
|
||||
onWarningsChange: (warnings) => {
|
||||
this.settingsManager.setWarnings(warnings);
|
||||
},
|
||||
onCancel: () => {
|
||||
done();
|
||||
this.ui.requestRender();
|
||||
@@ -3963,6 +3967,9 @@ export class InteractiveMode {
|
||||
private async maybeWarnAboutAnthropicSubscriptionAuth(
|
||||
model: Model<any> | undefined = this.session.model,
|
||||
): Promise<void> {
|
||||
if (this.settingsManager.getWarnings().anthropicExtraUsage === false) {
|
||||
return;
|
||||
}
|
||||
if (this.anthropicSubscriptionWarningShown) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user