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> |
||
|---|---|---|
| .. | ||
| tokenRefresh | ||
| usage | ||
| accountFallback.js | ||
| combo.js | ||
| compact.js | ||
| kiroModels.js | ||
| model.js | ||
| oauthCredentialManager.js | ||
| projectId.js | ||
| provider.js | ||
| qoderModels.js | ||
| tokenRefresh.js | ||
| usage.js | ||