You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DeepSeek V4 Flash repeatedly returns "Sensitive words detected" as session context grows #48370
When using deepseek-v4-flash through the AgentRouter provider in OpenCode Desktop, the API repeatedly returns a Sensitive words detected error after the session/context becomes larger.
A fresh session works normally at first. However, after working for some time and accumulating more context, the error starts occurring repeatedly.
Creating a new session temporarily fixes the problem, but after the new session becomes larger, the same error happens again.
Steps to reproduce
Open OpenCode Desktop.
Start a new session.
Use deepseek-v4-flash through the AgentRouter provider.
Continue working on a project for some time, including tool calls and file operations.
As the session/context grows, the API eventually starts returning Sensitive words detected.
Starting a new session temporarily resolves the problem.
After the new session grows again, the problem returns.
Expected behavior
The session should continue working normally as the context grows and OpenCode performs context compaction/pruning.
If a context or provider limitation is reached, OpenCode should ideally provide a clear error indicating the actual cause rather than repeatedly returning Sensitive words detected.
Actual behavior
The same error repeatedly occurs:
Sensitive words detected (request id: 20260911014456241868416bvdpbw7yy5Kes)
The exact prompt or word causing the filter cannot be identified.
The most consistent pattern is:
New session → works normally → context grows → Sensitive words detected → new session fixes it temporarily → context grows again → error returns
Environment
OS: Windows 11
OpenCode Desktop: v1.18.30
Provider: AgentRouter
Model: deepseek-v4-flash
Additional information
This makes long-running sessions difficult to use because I have to repeatedly create new sessions to continue working.
I suspect this could be related to context compaction/pruning, accumulated multi-turn message history, tool-call history, or the way the accumulated context is sent through the AgentRouter provider to DeepSeek V4 Flash.
I have not been able to reproduce the issue with a specific sensitive word or prompt.
I can provide additional logs or diagnostic information if needed.
If your issue is distinct from the above (e.g. you are specifically hitting a content-filter response rather than a raw 400), please clarify and a maintainer will triage accordingly.
This comes from AgentRouter, not OpenCode. sensitive words detected is AgentRouter's server-side word filter. Their dashboard FAQ says: "Just start a new session to resolve it." A longer session sends more text with every request, so the filter trips more often. Report false positives to AgentRouter (Discord help forum) with the request ID from the error.
Activity
github-actions commentedon Sep 10, 2026
This issue might be a duplicate of or related to existing issues. Please check:
If your issue is distinct from the above (e.g. you are specifically hitting a content-filter response rather than a raw 400), please clarify and a maintainer will triage accordingly.
th3nolo commentedon Sep 24, 2026
This comes from AgentRouter, not OpenCode.
sensitive words detectedis AgentRouter's server-side word filter. Their dashboard FAQ says: "Just start a new session to resolve it." A longer session sends more text with every request, so the filter trips more often. Report false positives to AgentRouter (Discord help forum) with the request ID from the error.thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊