@@ -650,6 +650,9 @@ export function useSettingsRestore(onRestored?: () => void) {
650650 ...( settings . switchAccountAtUsageLimit !== DEFAULT_UNIFIED_SETTINGS . switchAccountAtUsageLimit
651651 ? [ "Switch account at usage limit" ]
652652 : [ ] ) ,
653+ ...( settings . threadQueuesPaused !== DEFAULT_UNIFIED_SETTINGS . threadQueuesPaused
654+ ? [ "Pause all queues" ]
655+ : [ ] ) ,
653656 ...( settings . continueThreadsAfterServerUpdate !==
654657 DEFAULT_UNIFIED_SETTINGS . continueThreadsAfterServerUpdate
655658 ? [ "Continue threads after restarts" ]
@@ -727,6 +730,7 @@ export function useSettingsRestore(onRestored?: () => void) {
727730 settings . persistComposerContextStrip ,
728731 settings . enableProviderUpdateChecks ,
729732 settings . switchAccountAtUsageLimit ,
733+ settings . threadQueuesPaused ,
730734 settings . continueThreadsAfterServerUpdate ,
731735 settings . sidebarAutoSettleAfterDays ,
732736 settings . sidebarAutoSettleOnMerge ,
@@ -848,6 +852,7 @@ export function useSettingsRestore(onRestored?: () => void) {
848852 responseStreamingMode : DEFAULT_UNIFIED_SETTINGS . responseStreamingMode ,
849853 enableProviderUpdateChecks : DEFAULT_UNIFIED_SETTINGS . enableProviderUpdateChecks ,
850854 switchAccountAtUsageLimit : DEFAULT_UNIFIED_SETTINGS . switchAccountAtUsageLimit ,
855+ threadQueuesPaused : DEFAULT_UNIFIED_SETTINGS . threadQueuesPaused ,
851856 continueThreadsAfterServerUpdate : DEFAULT_UNIFIED_SETTINGS . continueThreadsAfterServerUpdate ,
852857 backgroundActivity : DEFAULT_UNIFIED_SETTINGS . backgroundActivity ,
853858 backgroundActivityProfile : DEFAULT_UNIFIED_SETTINGS . backgroundActivityProfile ,
@@ -3060,6 +3065,35 @@ export function GeneralSettingsPanel() {
30603065 }
30613066 />
30623067
3068+ < SettingsRow
3069+ serverScoped
3070+ settingKeys = { [ "threadQueuesPaused" ] }
3071+ { ...searchableSetting ( "pause-all-queues" ) }
3072+ description = "Hold every thread's queue. Runs under way finish; queued messages wait until you turn this off."
3073+ resetAction = {
3074+ settings . threadQueuesPaused !== DEFAULT_UNIFIED_SETTINGS . threadQueuesPaused ? (
3075+ < SettingResetButton
3076+ label = "pause all queues"
3077+ onClick = { ( ) =>
3078+ updateSettings ( {
3079+ threadQueuesPaused : DEFAULT_UNIFIED_SETTINGS . threadQueuesPaused ,
3080+ } )
3081+ }
3082+ />
3083+ ) : null
3084+ }
3085+ control = {
3086+ < ScopedSwitch
3087+ settingKeys = { [ "threadQueuesPaused" ] }
3088+ checked = { settings . threadQueuesPaused }
3089+ onCheckedChange = { ( checked ) =>
3090+ updateSettings ( { threadQueuesPaused : Boolean ( checked ) } )
3091+ }
3092+ aria-label = "Pause all queues"
3093+ />
3094+ }
3095+ />
3096+
30633097 < SettingsRow
30643098 { ...searchableSetting ( "continue-threads-after-server-update" ) }
30653099 serverScoped
0 commit comments