[Bug] /goal command fails with "Prompt is too long" error above 200k tokens when 1M context window disabled
Status Closed — not planned
Reported on v2.1.148
Maintainer reply None cached
Activity 2 comments · opened May 23, 2026 · closed Jun 23, 2026
Bug Description
"/goal" fails due to "Prompt is too long" in the Stop hook if you are above 200k tokens and you have the 1m context window disabled (but regular conversation still works just fine up until 1m)
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.1.148
- Feedback ID: 686dcb4e-a0d0-48f7-b36d-5f2917042a57
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 215197 tokens > 200000 maximum\"},\"request_id\":\"req_011CbHxwMB9xkZEY9dbYsau7\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:62782)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-22T17:00:38.622Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212206 tokens > 200000 maximum\"},\"request_id\":\"req_011CbJEYZnuLUZVdVpkQbfij\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:62782)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-22T20:25:19.682Z"},{"error":"ENOSPC: no space left on device, mkdir '/Users/tyler/.claude/.oauth_refresh.lock'","timestamp":"2026-05-22T21:27:42.742Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212421 tokens > 200000 maximum\"},\"request_id\":\"req_011CbJrHPAD1BnzmVuG3xA9B\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:62782)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-23T04:13:58.589Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗