Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(v2): resume limited threads when usage resets #12686

Mergedjuliusmarmingemerged 10 commits intoport-provider-limits-to-v2 fromrefs/pull/12686/headmerged by juliusmarminge View on GitHub

Showing 19 changed files with 97 additions and 1 deletion (loading 16).

x
0 of 19 viewed, 19 left
14 additions and 1 deletionapps/mobile/src/features/settings/SettingsThreadsRouteScreen.tsxModified
View file
@@ -86,7 +86,9 @@
return null;
​
- const writeToAll = (patch: Partial<AutoSettleSettings>) => {
+ const writeToAll = (
+ patch: Partial<AutoSettleSettings> & { autoResumeLimitedThreads?: boolean },
+ ) => {
if (writeInFlight.current) return;
const writes = planMobileScopedSettingsPatch(syncTargets, projectSelected, patch);
if (writes.length === 0) return;
@@ -164,6 +166,17 @@
onClear={clearProjectOverrides}
) : null}
+ {!projectSelected ? (
+ <SettingsSection title="Usage limits">
+ <SettingsSwitchRow
+ icon="clock"
+ label="Auto-resume limited threads"
+ value={referenceSettings.autoResumeLimitedThreads}
+ disabled={disabled}
+ onValueChange={(value) => writeToAll({ autoResumeLimitedThreads: value })}
+ />
+ </SettingsSection>
+ ) : null}
<SettingsSection title="Auto-settle">
<SettingsSwitchRow
icon="arrow.triangle.branch"