Skip to content

fix(triage): give deepseek-v4.1-flash:cloud its 1M context window - #6215

Merged
springfall2008 merged 1 commit into
mainfrom
fix/triage-deepseek-context-window
Nov 15, 2026
Merged

springfall2008 merged 1 commit into
mainfrom
fix/triage-deepseek-context-window

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

The triage daemon is running with --ollama_review deepseek-v4.1-flash:cloud, and every bot session logged:

Claude Code doesn't recognize the model "deepseek-v4.1-flash:cloud", so it assumes a context window of 200k tokens.

claude_env() already sets CLAUDE_CODE_MAX_CONTEXT_TOKENS for any model listed in OLLAMA_CONTEXT_TOKENS, but only glm-5.3-flash:cloud was listed there. Sessions on the DeepSeek model therefore auto-compacted at 200k. Each compaction costs turns, the same route to "Reached max turns" that prompted the map in the first place.

Change

  • Add deepseek-v4.1-flash:cloud: 1000000 to OLLAMA_CONTEXT_TOKENS in tools/triage_daemon.py.
  • Add a test that checks the window is set on the --ollama_review route.
  • Add deepseek to the cspell dictionary.

Testing

  • python3 -m unittest test_triage_daemon: 360 tests OK.
  • pre-commit passes on the changed files.

The daemon loads its settings once at startup, so it needs a restart after this merges.

🤖 Generated with Claude Code

The bot runs with --ollama_review deepseek-v4.1-flash:cloud, but only
glm-5.3-flash:cloud was in OLLAMA_CONTEXT_TOKENS. Claude Code warned it
did not recognise the model and assumed 200k, compacting early.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the BOT_REVIEW Trigger an autotriage label Nov 15, 2026
@springfall2008 springfall2008 removed the BOT_REVIEW Trigger an autotriage label Nov 15, 2026
@springfall2008
springfall2008 merged commit 0eb4a4e into main Nov 15, 2026
5 of 6 checks passed
@springfall2008
springfall2008 deleted the fix/triage-deepseek-context-window branch November 15, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant