With Free in use, Settings refuses every save #312

Closed
opened 2026-10-29 16:38:50 -04:00 by cmoriarty · 1 comment
Owner

What happens
While the Free profile is in use, POST /api/settings refuses any save that keeps it in use: "cannot delete free: runs use it; choose another first". The check that the profile in use is not being deleted looks for it among the saved profiles, and Free is listed, never saved, so it always looks deleted. Seen 2026-10-29 raising the run limit with Free in use; only switching to another profile saves.

Fix
Count Free as present in the in-use checks (runs, planning, Repair) when its router is configured. Decide where Free's run settings live (run limit, context per agent, subagents): today they are the flat copy, which no page edits once profiles exist.

Done when
With Free in use, a run setting saves from the Settings page, and a test covers it.

**What happens** While the Free profile is in use, `POST /api/settings` refuses any save that keeps it in use: "cannot delete free: runs use it; choose another first". The check that the profile in use is not being deleted looks for it among the saved profiles, and Free is listed, never saved, so it always looks deleted. Seen 2026-10-29 raising the run limit with Free in use; only switching to another profile saves. **Fix** Count Free as present in the in-use checks (runs, planning, Repair) when its router is configured. Decide where Free's run settings live (run limit, context per agent, subagents): today they are the flat copy, which no page edits once profiles exist. **Done when** With Free in use, a run setting saves from the Settings page, and a test covers it.
Author
Owner

Confirmed on production (1fc0f22, PR #319); closing. With Free in use, POST /api/settings {run_cap: 2} saved, and the settings read back in use free, run_cap 2. Before, every such save was refused: "cannot delete free: runs use it". main was put back in use afterwards, with its own run limit of 3 untouched.

**Confirmed on production (1fc0f22, PR #319); closing.** With Free in use, `POST /api/settings {run_cap: 2}` saved, and the settings read back `in use free, run_cap 2`. Before, every such save was refused: "cannot delete free: runs use it". `main` was put back in use afterwards, with its own run limit of 3 untouched.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/braid#312
No description provided.