9router/open-sse
Simon Shi 8ad95542da fix(kiro): handle 400 on tool-bearing history without client tools
Kiro requires a non-empty currentMessage tools array whenever history
references any tool use, else returns "Improperly formed request" (400).
Clients trip this by omitting tools on follow-ups after client-side
compaction.

- flattenToolInteractions(): no client tools -> collapse tool_use/result
  to text so the "tools required" rule never fires
- reconcileOrphanedToolResults(): client tools -> salvage orphaned
  results as text, keep matched ones, guard co-located tools array
- safeJSONParse(): guard tool-call argument parsing against bad JSON
- merge consecutive user userInputMessageContext; null-guard
  currentMessage for assistant-only input

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 12:23:47 +07:00
..
config fix(mitm): Kiro binary EventStream crash + add models & TTS tool filtering 2026-06-06 11:31:52 +07:00
executors fix(codex): durable OAuth refresh lifecycle 2026-06-06 11:04:36 +07:00
handlers fix(mitm): Kiro binary EventStream crash + add models & TTS tool filtering 2026-06-06 11:31:52 +07:00
rtk feat(rtk): add Kiro format support for tool result compression (#1194) 2026-05-17 15:13:37 +07:00
services fix(codex): durable OAuth refresh lifecycle 2026-06-06 11:04:36 +07:00
transformer feat: enhance request handling and error management in chatCore and streamToJsonConverter 2026-02-15 12:02:53 +07:00
translator fix(kiro): handle 400 on tool-bearing history without client tools 2026-06-06 12:23:47 +07:00
utils # v0.4.66 (2026-05-29) 2026-05-29 17:48:01 +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
index.js fix(codex): durable OAuth refresh lifecycle 2026-06-06 11:04:36 +07:00