infinitex233 (#4738, Discord): `magpie provider set codex
additional-tools=on` said "saved" and changed nothing. Save rebuilt a
signed-in account's entry from one field list and withPicks read it back
from another; AdditionalTools was on neither.
The two lists had drifted in both directions, so the same class hit
other settings on every subscription account (Codex, Copilot, ...):
- written, never read back: QuotaRest, QuotaResetAt, RestCap. The gateway
never saw them on an account, and the next Save of anything cleared
them, since Save starts from Find.
- read back, never written: ExtraBody and ReplyHeaders. A Codex
account's extraBody (magpie-releases#18), written by hand, was wiped
by the next editor Save.
- on neither: AdditionalTools, LimitRestOff, Patience.
Fix: accountSettings is the one list. withPicks is it, and Save's account
branch builds {ID, Key, Hidden, Quiet, Tucked} and runs it, so a field
added to one is in both.
Run:
- New TestAccountSettingsKept (codex and copilot accounts): sets
AdditionalTools, ExtraBody, ReplyHeaders, QuotaRest, RestCap,
LimitRestOff and Patience, Save, Find, then clears them. Red on the
old provider.go (every field lost on both accounts), green now.
TestAccountPriceRateKept still green.
- Real CLI path in a sandbox HOME on mote: `magpie provider set codex
additional-tools=on` wrote "additionalTools": true to providers.json
and the running gateway used it (see the next commit for the backend).
- Suite record for this and the next commit together is in the next
commit's body.