[Bug] Environment variable model persistence causes API key errors with Sonnet 1m

Resolved 💬 3 comments Opened Mar 23, 2026 by kyleboddy Closed Mar 27, 2026

Bug Description
Setting my model to sonnet[1m] via .env var persists and throws nonstop api key errors. How can I resolve this? I can't even switch back to normal sonnet.

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.1.81
  • Feedback ID: 6b9b3b01-fa41-4ba4-a810-9b70d6d927aa

Errors

[{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011CZLZ9vwX8NqcFKMUJhEKJ\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:226:286312)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:265:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-23T19:21:36.760Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗