[Bug] Anthropic API Error: Usage credits required for 1M context persists after login
Bug Description
Now verify lint passes:
Searched for 3 patterns, ran 7 shell commands
.pnpm-store is not excluded but it should be — those file-size warnings are coming from there. But the 4 actual errors must be from source files. Let me get the exact error lines:
Ran 1 shell command
API Error: Usage credits required for 1M context · run /usage-credits to turn them on, or /model to switch to standard context
✻ Cooked for 5m 0s
❯ resume
API Error: Usage credits required for 1M context · run /usage-credits to turn them on, or /model to switch to standard context
✻ Worked for 1s
❯ /login
⎿ Login successful
❯ resume
Ran 5 shell commands
i am getting thids api error all the time and all i need to do is login. but is happening all the time...
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 2.1.159
- Feedback ID: 89547560-ef45-4d4d-8737-246cafb9f32b
Errors
[{"error":"Error: Tool Grep not found\n at iOK (/$bunfs/root/src/entrypoints/cli.js:4044:14126)\n at NO (/$bunfs/root/src/entrypoints/cli.js:579:21155)\n at iA (/$bunfs/root/src/entrypoints/cli.js:579:39924)\n at Y$H (/$bunfs/root/src/entrypoints/cli.js:579:50736)\n at Vt (/$bunfs/root/src/entrypoints/cli.js:579:87756)\n at j$H (/$bunfs/root/src/entrypoints/cli.js:579:86719)\n at Fn (/$bunfs/root/src/entrypoints/cli.js:579:86539)\n at Bn (/$bunfs/root/src/entrypoints/cli.js:579:82878)\n at w_ (/$bunfs/root/src/entrypoints/cli.js:579:6436)\n at bM8 (/$bunfs/root/src/entrypoints/cli.js:572:5415)","timestamp":"2026-06-01T18:38:13.005Z"},{"error":"Error: Tool Grep not found\n at iOK (/$bunfs/root/src/entrypoints/cli.js:4044:14126)\n at NO (/$bunfs/root/src/entrypoints/cli.js:579:21155)\n at iA (/$bunfs/root/src/entrypoints/cli.js:579:39924)\n at Y$H (/$bunfs/root/src/entrypoints/cli.js:579:50736)\n at Vt (/$bunfs/root/src/entrypoints/cli.js:579:87756)\n at j$H (/$bunfs/root/src/entrypoints/cli.js:579:86719)\n at Fn (/$bunfs/root/src/entrypoints/cli.js:579:86539)\n at Bn (/$bunfs/root/src/entrypoints/cli.js:579:82878)\n at w_ (/$bunfs/root/src/entrypoints/cli.js:579:6436)\n at bM8 (/$bunfs/root/src/entrypoints/cli.js:572:5415)","timestamp":"2026-06-01T18:38:14.254Z"},{"error":"Error: Tool Grep not found\n at iOK (/$bunfs/root/src/entrypoints/cli.js:4044:14126)\n at NO (/$bunfs/root/src/entrypoints/cli.js:579:21155)\n at iA (/$bunfs/root/src/entrypoints/cli.js:579:39924)\n at Y$H (/$bunfs/root/src/entrypoints/cli.js:579:50736)\n at Vt (/$bunfs/root/src/entrypoints/cli.js:579:87756)\n at j$H (/$bunfs/root/src/entrypoints/cli.js:579:86719)\n at Fn (/$bunfs/root/src/entrypoints/cli.js:579:86539)\n at Bn (/$bunfs/root/src/entrypoints/cli.js:579:82878)\n at w_ (/$bunfs/root/src/entrypoints/cli.js:579:6436)\n at bM8 (/$bunfs/root/src/entrypoints/cli.js:572:5415)","timestamp":"2026-06-01T18:38:18.348Z"},{"error":"The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()","timestamp":"2026-06-01T20:48:54.252Z"},{"error":"The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()","timestamp":"2026-06-01T21:58:39.347Z"},{"error":"The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()","timestamp":"2026-06-01T22:28:18.283Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗