> 🤖 This PR was modified by Coder Agents on behalf of Jake Howell.
In template settings → Schedule, setting Default autostop or Activity
bump to `0` appeared to save successfully, but omitted the field from
the PATCH request. The API preserves omitted values, leaving the
previous duration configured despite the UI saying zero disables it.
Send explicit zeros, including clearing a stale activity bump when
neither default nor user-customizable autostop is enabled. Preserve
nonzero conversions. Replace the affected story submission assertion
with real-form Vitest coverage while retaining its visual state.
<details>
<summary>Regression evidence and validation</summary>
- Four zero-value cases failed before the fix with `undefined` instead
of zero; the nonzero control passed. All five pass after the fix.
- Covers disabling either setting, disabling both, clearing a disabled
stale bump, and nonzero conversion.
- Extended the existing Playwright E2E test to save 48h autostop and 2h
activity bump, reload, disable both, and fetch the template from the
real API. With the old serialization, it fails because persisted values
remain 172800000ms and 7200000ms rather than zero. With the fix, the
test and both setup dependencies pass against a fresh local server.
Unrelated template settings are also checked for preservation.
- All nine schedule stories pass; browser verification confirms both
explicit zeros in serialized requests.
- `pnpm check`, `pnpm lint`, and `pnpm format` pass.
- Full unit file: 22 pass; three existing page-integration tests fail
locally as the page returns to a loading state during interaction. The
original API submission test also fails in isolation before the
production fix. New regressions render the real form without the
unrelated page-loading harness.
- Local stress fixtures and screenshots are excluded.
</details>