# fix\(web\): enabling a retention rule waits for a committed age · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/0513cc3b35b70a36cd99792d4eec65bf8936117f)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 0513cc3b35b70a36cd99792d4eec65bf8936117f

Requested commit: 0513cc3b35b70a36cd99792d4eec65bf8936117f

Commit: 0513cc3b35b70a36cd99792d4eec65bf8936117f

Tree: 4c86542cb1707f1556d6df879d4c60af3b824937

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(web): enabling a retention rule waits for a committed age

Turning on a storage retention rule saved 8 days immediately, which could
start a cleanup sweep before the user picked an age. The switch now opens a
local age draft. Only a committed age (blur, Enter, or a step) is saved, and a
failed save returns the rule to off. Leaving, Escape, or switching the draft
off saves nothing, and turning a saved rule off still saves at once.

Fixes #14743

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [6bc7ed59428d8420db6e10d6a7b5ec963d718fba](https://git.cafe/pingdotgg/t3code/commit/6bc7ed59428d8420db6e10d6a7b5ec963d718fba?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/0513cc3b35b70a36cd99792d4eec65bf8936117f?format=markdown)
