Skip to content

Clear context Opencode Desktop #11144

@VictorVargas

Description

@VictorVargas

Question

Hello, have a great day 😊

I have a problem with Opencode Desktop on Windows. I can’t find a way to clear the context in my project. I was testing different models and configurations, and in previous sessions, after lowering the context, it did adjust correctly. However, no matter how many times I start a new session, I can’t clear the context to use a model with a smaller context window, and it returns the following error:

"Cannot truncate prompt with n_keep (10881) >= n_ctx (8192)"

I am using the qwen3-coder-30b model with LM Studio, and I can’t continue because of that error. I run /compact, but it doesn’t work either—the issue persists.

Metadata

Metadata

Assignees

Labels

webRelates to opencode on web / desktopwindows

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