9router/open-sse/translator/response
GodrezJr2 96a9a2b36d
fix: sanitize Read tool args to prevent retry loops from non-Anthropic models (#1144)
* fix: sanitize Read tool args to prevent retry loops from non-Anthropic models

* fix: sanitize invalid Read pages from tool args

Non-Anthropic models sometimes emit optional Read args like pages: "" for
non-PDF files, which Claude Code rejects before the tool runs. Drop invalid
pages values, keep valid PDF page ranges, and coerce numeric string bounds
before clamping limit/offset.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26 11:33:38 +07:00
..
claude-to-openai.js fix(claude-to-openai): emit closing </think> tag instead of empty reasoning_content (#454) 2026-03-31 09:21:11 +07:00
commandcode-to-openai.js feat: enhance CommandCode integration with improved message handling 2026-05-07 23:02:07 +07:00
cursor-to-openai.js feat(cursor): Add cursor Provider 2026-02-05 11:06:20 +07:00
gemini-to-openai.js fix(translator): correct thought signatures for AG, Gemini CLI, Vertex; fix missing Vertex response translator 2026-04-05 00:38:36 +07:00
kiro-to-openai.js https://github.com/decolua/9router/pull/1167 2026-05-16 11:20:08 +07:00
ollama-to-openai.js feat(ollama): Enhance Ollama support by adding new models, updating API format handling, and integrating translation functionality. 2026-03-12 15:24:10 +07:00
openai-responses.js Fix bug 2026-04-11 11:36:33 +07:00
openai-to-antigravity.js Fix Bug 2026-03-30 12:21:24 +07:00
openai-to-claude.js fix: sanitize Read tool args to prevent retry loops from non-Anthropic models (#1144) 2026-05-26 11:33:38 +07:00