9router/open-sse
warelik 86162eeb8f fix(combo/fusion): flatten Anthropic-style tool messages in panel calls
flattenToolHistory only recognized OpenAI-style tool calls. Anthropic-compatible clients (Claude Code, /v1/messages) send tool invocations and results as tool_use/tool_result blocks inside the message content array. Since panel calls strip the tools definitions (#1859), the panel expert models received structured tool history without schemas, causing them to fail or misbehave (leading to empty responses and 503 errors).

Extend flattenToolHistory to recognize and flatten tool_use and tool_result blocks in the content array into prose text, keeping panel expert execution robust and independent of the client API format.

PR decolua/9router#1910

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-20 15:19:31 +07:00
..
config fix(kiro): honor thinking effort budgets 2026-06-18 15:14:42 +07:00
executors feat(opencode-go): align Go models with official endpoints 2026-06-20 15:09:11 +07:00
handlers feat(headroom): add proxy lifecycle management + dashboard UI 2026-06-20 10:09:50 +07:00
providers feat(opencode-go): align Go models with official endpoints 2026-06-20 15:09:11 +07:00
rtk feat(headroom): add proxy lifecycle management + dashboard UI 2026-06-20 10:09:50 +07:00
services fix(combo/fusion): flatten Anthropic-style tool messages in panel calls 2026-06-20 15:19:31 +07:00
shared refactor(open-sse): registry consolidation + DRY media/oauth/adhoc cleanup 2026-06-14 13:15:48 +07:00
transformer fix(codex): harden streaming timeouts + Responses terminal events 2026-06-06 16:07:43 +07:00
translator feat(ponytail): introduce "Ponytail" feature for minimalistic code generation 2026-06-20 15:08:11 +07:00
utils feat(ponytail): introduce "Ponytail" feature for minimalistic code generation 2026-06-20 15:08:11 +07:00
.npmignore Update jsconfig.json and package.json to correct open-sse path references from relative to local directory. 2026-01-05 10:37:09 +07:00
AGENTS.md feat(headroom): add proxy lifecycle management + dashboard UI 2026-06-20 10:09:50 +07:00
index.js refactor(open-sse): translator DRY + schema enums, bug fixes, dead code cleanup 2026-06-14 18:49:38 +07:00