Request size exceeds model context window #7330

Open
opened 2026-02-16 18:06:51 -05:00 by yindo · 2 comments
Owner

Originally created by @ugurcancaykara on GitHub (Jan 23, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

After approximately 5-10 conversational exchanges (sometimes as few as 2-3), OpenCode throws a "Request size exceeds model context window" error, forcing me to start a new session. I believe this started occurring in the last 1-2 days.

My typical workflow involves:

  • Having OpenCode investigate/read files in the codebase
  • Maintaining a markdown file with a structured plan and ordered TODO items
  • Iterating on tasks based on this plan

I'm not manually attaching large files to the conversation. The context seems to accumulate rapidly from file reads and research operations until it exceeds the limit unexpectedly.

Plugins

oh-my-opencode, opencode-anthropic-auth

OpenCode version

1.34 (also occurred on 1.32)

Steps to reproduce

Steps to reproduce:

  • Start a new session with Claude Code OAuth
  • Create or reference a markdown file with a structured task plan
  • Ask OpenCode to investigate files and make changes based on the plan
  • Continue iterating for 5-10 exchanges
  • Error appears, conversation cannot continue

Screenshot and/or share link

Image

Operating System

macOS 15.6.1 (24G90) Sequoia

Terminal

iTerm

Originally created by @ugurcancaykara on GitHub (Jan 23, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description After approximately 5-10 conversational exchanges (sometimes as few as 2-3), OpenCode throws a "Request size exceeds model context window" error, forcing me to start a new session. I believe this started occurring in the last 1-2 days. My typical workflow involves: - Having OpenCode investigate/read files in the codebase - Maintaining a markdown file with a structured plan and ordered TODO items - Iterating on tasks based on this plan I'm not manually attaching large files to the conversation. The context seems to accumulate rapidly from file reads and research operations until it exceeds the limit unexpectedly. ### Plugins oh-my-opencode, opencode-anthropic-auth ### OpenCode version 1.34 (also occurred on 1.32) ### Steps to reproduce Steps to reproduce: - Start a new session with Claude Code OAuth - Create or reference a markdown file with a structured task plan - Ask OpenCode to investigate files and make changes based on the plan - Continue iterating for 5-10 exchanges - Error appears, conversation cannot continue ### Screenshot and/or share link <img width="1868" height="518" alt="Image" src="https://github.com/user-attachments/assets/22580a47-8a76-4c39-8f7f-ded1b58e9e64" /> ### Operating System macOS 15.6.1 (24G90) Sequoia ### Terminal iTerm
yindo added the bugzen labels 2026-02-16 18:06:51 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 23, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #8089: Auto-compaction enabled by default, but context_length_exceeded errors still occur in agent workflows - Reports the same "context_length_exceeded" error even with auto-compaction enabled
  • #6068: Auto compaction not triggering reliably with Anthropic models - Describes auto-compaction failing to trigger before context limit is hit
  • #5970: Research subagent exceeded the context window and silently failed - Reports similar context window exceeded behavior in workflows

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 23, 2026): This issue might be a duplicate of existing issues. Please check: - #8089: Auto-compaction enabled by default, but context_length_exceeded errors still occur in agent workflows - Reports the same "context_length_exceeded" error even with auto-compaction enabled - #6068: Auto compaction not triggering reliably with Anthropic models - Describes auto-compaction failing to trigger before context limit is hit - #5970: Research subagent exceeded the context window and silently failed - Reports similar context window exceeded behavior in workflows Feel free to ignore if none of these address your specific case.
Author
Owner

@kyee-rs commented on GitHub (Jan 24, 2026):

+1

@kyee-rs commented on GitHub (Jan 24, 2026): +1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7330