A turn runs agy acp on the bridge's folder and the Google sign-in, but the
listing, refusal and sign-in probes ran a bare `agy models`, which reads
the user's own settings.json. With "modelProvider": "gemini" there (an AI
Studio key), the listing failed without GEMINI_API_KEY in magpie's
environment and the old catalog stayed, or listed API-key mode's models.
- agy 1.5.9's global --settings takes a session-only settings.json object.
The three `agy models` calls run as
`agy --settings '{"modelProvider":""}' models` when agy's --help lists
--settings (asked once per binary, cached by path, mtime and size like
acpHelp); an agy that doesn't list it gets the bare command, as before.
The reporter checked that this command goes back to the Google backend.
- testkit's fake answers `agy --help` and records each models spawn's
args; its models behaviour sees them.
Run (mote, HOME=$(mktemp -d)):
- node --test on every node test file in packages/agy-cli/test: all pass
(catalog 33, repeat-batch 54, usage 36, usage-settlement 40, ...).
- bun test packages/agy-cli: 37 pass, 0 fail (cp-hook and smoke are
bun-only).
- bun scripts/check.mjs agy-cli: ok.
Broken by hand: origin/main's index.mjs with the new tests: the --settings
test fails (32 pass, 1 fail).
Not tried: a real agy with a gemini settings.json (the local agy account
answers 403); the flag's effect is the reporter's run. Not changed: with a
file sign-in, acp itself still reads the user's settings.json (no
--gemini-dir there).