You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address second review pass on freebuff model selector
- Drop dead x-freebuff-model header on GET — the server only reads it on
POST, and tick() always POSTs first so GET-before-POST never happens.
- Derive FREEBUFF_MODEL_OVERRIDABLE_AGENT_IDS from the server's
FREE_MODE_AGENT_MODELS (agents whose allowlist includes every freebuff
model) so adding a new model doesn't require updating two lists.
- Extract shouldReleaseSlot() — DELETE-eligibility predicate was inlined
in two places.
- Probe Fireworks once per admission tick instead of N times (N = number
of models). Adds a TODO for when we add a non-Fireworks model.
- Tighten model-selector key handler to /^[1-9]$/ so "1abc" isn't
treated as 1.
- Make FREEBUFF_MODELS a literal tuple so isFreebuffModelId narrows to
the actual id union instead of plain string.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments