Skip to content

Request size exceeds model context window #10220

@ugurcancaykara

Description

@ugurcancaykara

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingzenRelates to Zen

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions