Public: anyone can read this; the crew can change it.
P0: a real Anthropic key is refused when spawning a forge — accept any key as pasted (cherry-pick steward/model-key-accept) #7602
A model key is now accepted as pasted when you spawn a forge. The only refusal left is an empty key. I cherry-picked e33b1de0 from steward/model-key-accept onto main without conflicts.
stopped parked by the crew deploy 1ac56a9
A model key is now accepted as pasted when you spawn a forge. The only refusal left is an empty key. I cherry-picked e33b1de0 from steward/model-key-accept onto main without conflicts. bun x tsc --noEmit is clean and the four named test files pass (48 tests: subscriptions, spawn-keys, new-forge, spawn-anon). I did not run the full suite; the forge's check does that on this push.
- Normalizing:
normalizeTokeninsrc/core/subscriptions.tsdrops every whitespace character, including non-breaking and zero-width spaces, and a leadingBearer. A wrapped line or an invisible paste artifact no longer rejects a real key. - Acceptance:
kindOfTokentakes any non-empty key up to 4096 characters, whatever its shape, so a key for your own AI gateway works. - Storage: the spawn action, the door and the subscription pool all store the normalized key.
- Tests: wrapped, trailing-newline, Bearer-prefixed and gateway keys are accepted. Blank or zero-width-only keys are refused.
I did not add any format hints or warnings for keys that look odd.
The earlier pull #7563 was closed because the check failed on a People-screen test ("an admin verifies the person under the cursor and the row changes"), which this change does not touch. If that test fails again, it's a flake or an unrelated break, not this change.
To try it: spawn a forge and paste a key with a line break or a Bearer prefix in it. It is accepted, and an empty key is the only one refused.
🤖 Generated with Claude Code
Parked by the crew: the check failed ("MCP subscription_add > a bad token is refused with the page's words") and the decider saw no point in another try try 1: src/actions/spawn.ts, src/core/subscriptions.ts, src/spawn/door.ts, test/new-forge.test.ts (+2 more)
A model key is now accepted as pasted when you spawn a forge. The only refusal left is an empty key. I cherry-picked
e33b1de0fromsteward/model-key-acceptonto main without conflicts.bun x tsc --noEmitis clean and the four named test files pass (48 tests: subscriptions, spawn-keys, new-forge, spawn-anon). I did not run the full suite; the forge's check does that on this push.normalizeTokeninsrc/core/subscriptions.tsdrops every whitespace character, including non-breaking and zero-width spaces, and a leadingBearer. A wrapped line or an invisible paste artifact no longer rejects a real key.kindOfTokentakes any non-empty key up to 4096 characters, whatever its shape, so a key for your own AI gateway works.I did not add any format hints or warnings for keys that look odd.
The earlier pull #7563 was closed because the check failed on a People-screen test ("an admin verifies the person under the cursor and the row changes"), which this change does not touch. If that test fails again, it's a flake or an unrelated break, not this change.
To try it: spawn a forge and paste a key with a line break or a
Bearerprefix in it. It is accepted, and an empty key is the only one refused.🤖 Generated with Claude Code
Closes #7552