medium severityCursor AI Chat/Agent/Composer

"Context Window Exceeded" error message appears, preventing AI responses. Context usage indicator nears 100%; AI may produce incoherent outputs or fail on short prompts due to corruption.[FlowQL Guide](https://www.flowql.com/en/blog/guides/cursor-context-window-exceeded-fix)[Cursor Forum](https://forum.cursor.com/t/message-too-long-error-on-extremely-short-prompts-e-g-1-1-severe-context-corruption/144286)

Root cause

Total tokens from chat history, open files, @ references (esp. @Codebase), and codebase symbols exceed the model's hard context window limit (~200k tokens default in Cursor, e.g., for Claude 3.5 Sonnet), preventing the LLM from processing further input.[Cursor Docs](https://docs.cursor.com/en/models)[FlowQL Guide](https://www.flowql.com/en/blog/guides/cursor-context-window-exceeded-fix)

Cursor AIcontext windowtoken limitClaude Sonnet@Codebasechat history

Citations