Read an unknown plan as beta
SI
8d ago+109+109+012345678901234567890123456789-8-8-0123456789
What
CliPlan accepts coding_plan. Any other unknown plan parses as beta, so login, identity, and poll still succeed. A coding-plan account whose model list has one id uses that id as the harness default.
Why
A released CLI that rejects unknown plans fails the moment the api sends a coding-plan value. This build has to ship before that change.
Test
Contract sync test for the CliPlan fallback. cargo test request_and_response_round_trip and credential_roundtrip_and_permissions.
Made with Cursor
Summary by cubic
Reads an unknown account plan as beta so login, identity, and poll keep working when the API sends a coding_plan value this build wasn't built against.
- Adds
coding_planas a known plan and stores the current plan in saved credentials. - Uses the single model from a coding-plan account as the harness default when the model list has exactly one entry.
- The contract generator now renders
CliPlanas tolerant of unknown values, so a future plan name won't break the parse.
Summary by CodeRabbit
- New Features
- Coding-plan account information is now saved and refreshed with account credentials.
- When no model is specified, coding-plan accounts can use the sole model available to them.
- Bug Fixes
- Unrecognized plan values now default to the standard plan instead of causing a parsing error.