Opencode reading file again and again and fill context.

Reddit r/LocalLLaMA / 5/3/2026

💬 OpinionDeveloper Stack & InfrastructureTools & Practical Usage

Key Points

  • The user reports that with a 3.6 35B A3B model, OpenCode appears to reread the same files repeatedly after the first ~64k tokens, causing the context window to fill and be cleared in a loop.
  • This behavior prevents them from using the setup reliably for “production” work, suggesting a practical issue with how context is managed across long sessions.
  • They ask for solutions to stop the repeated file reloading and context thrashing, or whether they must start a new session each time.
  • They also want guidance on how to preserve project context across sessions if restarting is required.

So I am using 3.6 35B A3B, pretty good for my work, but the first 64k tokens feels bigger like not a problem, but second time onwards it starts to read every file again and fills up context then context is emptied then it tries to read files again and so on, so no production after that, so what is solution of this, or do I have to start new session every time if so then how it gonna know about project and it will still feel the context so pls mention possible solutions.

submitted by /u/Fine_Nectarine9328
[link] [comments]