@@ -13,6 +13,7 @@ export interface PluginConfig {
1313 protectedTools : string [ ]
1414 model ?: string
1515 showModelErrorToasts ?: boolean
16+ showUpdateToasts ?: boolean
1617 strictModelSelection ?: boolean
1718 pruning_summary : "off" | "minimal" | "detailed"
1819 nudge_freq : number
@@ -32,6 +33,7 @@ const defaultConfig: PluginConfig = {
3233 debug : false ,
3334 protectedTools : [ 'task' , 'todowrite' , 'todoread' , 'prune' , 'batch' ] ,
3435 showModelErrorToasts : true ,
36+ showUpdateToasts : true ,
3537 strictModelSelection : false ,
3638 pruning_summary : 'detailed' ,
3739 nudge_freq : 10 ,
@@ -47,6 +49,7 @@ const VALID_CONFIG_KEYS = new Set([
4749 'protectedTools' ,
4850 'model' ,
4951 'showModelErrorToasts' ,
52+ 'showUpdateToasts' ,
5053 'strictModelSelection' ,
5154 'pruning_summary' ,
5255 'nudge_freq' ,
@@ -110,6 +113,8 @@ function createDefaultConfig(): void {
110113 // "model": "anthropic/claude-haiku-4-5",
111114 // Show toast notifications when model selection fails
112115 "showModelErrorToasts": true,
116+ // Show toast notifications when a new version is available
117+ "showUpdateToasts": true,
113118 // Only run AI analysis with session model or configured model (disables fallback models)
114119 "strictModelSelection": false,
115120 // AI analysis strategies (deduplication runs automatically on every request)
@@ -199,6 +204,7 @@ export function getConfig(ctx?: PluginInput): ConfigResult {
199204 protectedTools : [ ...new Set ( [ ...config . protectedTools , ...( globalConfig . protectedTools ?? [ ] ) ] ) ] ,
200205 model : globalConfig . model ?? config . model ,
201206 showModelErrorToasts : globalConfig . showModelErrorToasts ?? config . showModelErrorToasts ,
207+ showUpdateToasts : globalConfig . showUpdateToasts ?? config . showUpdateToasts ,
202208 strictModelSelection : globalConfig . strictModelSelection ?? config . strictModelSelection ,
203209 strategies : mergeStrategies ( config . strategies , globalConfig . strategies as any ) ,
204210 pruning_summary : globalConfig . pruning_summary ?? config . pruning_summary ,
@@ -230,6 +236,7 @@ export function getConfig(ctx?: PluginInput): ConfigResult {
230236 protectedTools : [ ...new Set ( [ ...config . protectedTools , ...( projectConfig . protectedTools ?? [ ] ) ] ) ] ,
231237 model : projectConfig . model ?? config . model ,
232238 showModelErrorToasts : projectConfig . showModelErrorToasts ?? config . showModelErrorToasts ,
239+ showUpdateToasts : projectConfig . showUpdateToasts ?? config . showUpdateToasts ,
233240 strictModelSelection : projectConfig . strictModelSelection ?? config . strictModelSelection ,
234241 strategies : mergeStrategies ( config . strategies , projectConfig . strategies as any ) ,
235242 pruning_summary : projectConfig . pruning_summary ?? config . pruning_summary ,
0 commit comments