Skip to content

prompt is too long unrecoverable #4845

@benceferdinandy-signifyd

Description

Description

Opencode with Opus 4.5 often gives me prompt is too long: 209549 tokens > 200000 maximum. This is completely unrecoverable, short of rolling back the session or forking and you then need to compact or something.

Note I'm only at: 121,480 61% ($5.62)

OpenCode version

1.0.119

Steps to reproduce

Use Antropic api key with Opus 4.5, trigger a huge search for example in the primary agent.

Screenshot and/or share link

No response

Operating System

macos

Terminal

ghostty

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions