You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opencode pulls documentation from websites, the resulting response can sometimes exceed the context length of the current model in use (currently Claude sonnet 4 for me). It's impossible to continue this sessions in this case. Manually editing the sessions logs and removing the content makes it possible to resume the session.
Could we implement a token counter that considers how many tokens are left in a given session and truncates the fetched content to a size that still fits the context window (including a short hint for the model)?
Here is the error message for reference:
AI_APICallError: input length and max_tokens exceed context limit: 184714 + 32000 > 200000, decrease input length or max_tokens and try again
I see a similiar error message on retrieving from docs from web. AI_APICallError: input length and max_tokens exceed context limit: 190641 + 32000 > 200000, decrease input length or max_tokens and try again
Activity
isaacraja commentedon Jul 25, 2025
I see a similiar error message on retrieving from docs from web. AI_APICallError: input length and
max_tokensexceed context limit: 190641 + 32000 > 200000, decrease input length ormax_tokensand try againrekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
refactor(app-settings): isolate authorized folders panel (anomalyco#1212