Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: keep maintenance handler selection and consent clear

[._.]/ Adam Eivy1e0c4aa36b3b
diff --git a/client/src/components/cos/tabs/schedule/MaintenanceRunForm.jsx b/client/src/components/cos/tabs/schedule/MaintenanceRunForm.jsx
index 256e26fad4..67fb2f17f7 100644
--- a/client/src/components/cos/tabs/schedule/MaintenanceRunForm.jsx
+++ b/client/src/components/cos/tabs/schedule/MaintenanceRunForm.jsx
@@ -175,10 +175,10 @@ export default function MaintenanceRunForm({ schedule, apps = [], providers = []
selectedProviderId={providerId}
selectedModel={model}
availableModels={provider ? effortAwareModelOptions(provider, model) : []}
- onProviderChange={next => { setProviderId(next); setModel(''); setEffort(''); }}
- onModelChange={setModel}
+ onProviderChange={next => { setProviderId(next); setModel(''); setEffort(''); setConsent(false); }}
+ onModelChange={next => { setModel(next); setConsent(false); }}
effort={effort}
- onEffortChange={setEffort}
+ onEffortChange={next => { setEffort(next); setConsent(false); }}
emptyProviderOption="Select a subscription provider"
emptyModelOption="Select a model"
alwaysShowModel
@@ -199,6 +199,7 @@ export default function MaintenanceRunForm({ schedule, apps = [], providers = []
onEffortChange={next => { setClaimHandler(current => ({ ...current, effort: next })); setConsent(false); }}
emptyProviderOption="Same as audit handler"
emptyModelOption="Select a model"
+ alwaysShowModel={Boolean(claimHandler.providerId)}
loading={!providersLoaded}
disabled={busy}
/>
diff --git a/server/services/maintenanceRun.test.js b/server/services/maintenanceRun.test.js
index 240102d509..6c5dde8e1d 100644
--- a/server/services/maintenanceRun.test.js
+++ b/server/services/maintenanceRun.test.js
@@ -201,7 +201,7 @@ it('runs fixes consecutively and drains remaining issues only after documentatio
});
it('files findings consecutively and finishes without claiming when claims are disabled', async () => {
- const { run } = await startMaintenanceRun({ appId: 'app-1', providerId: 'codex', model: 'gpt-5', mode: 'file-issues', claimBetweenAudits: false });
+ const { run } = await startMaintenanceRun({ appId: 'app-1', providerId: 'codex', model: 'gpt-5', mode: 'file-issues', claimBetweenAudits: false, claimHandler: { providerId: 'unavailable', model: 'example' } });
expect(run.steps.map(step => step.taskRef.taskType)).toEqual(MAINTENANCE_TASK_ORDER);
for (let index = 0; index < run.steps.length; index++) {
expect(state.invoked.at(-1).step.overrides.params.fileIssues).toBe(index < run.steps.length - 1);