9router/open-sse
Qin Li 960f8a0379 fix(usage): dedupe streaming request-details log entries
handleStreamingResponse and buildOnStreamComplete each generated their
own streamDetailId for what should be one logical record — the
placeholder row (0 tokens) and the final row (real usage) never shared
an id, so the DB's ON CONFLICT(id) upsert never merged them, leaving a
permanent 0-token stub for every streaming request.

Share the id from buildOnStreamComplete with handleStreamingResponse
so both writes hit the same row.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-03 15:14:49 +07:00
..
config fix(gemini): support native TTS generateContent endpoint 2026-06-26 10:50:13 +07:00
executors fix(kiro): route IdC auth to regional CodeWhisperer surface (#2297) 2026-07-03 11:06:40 +07:00
handlers fix(usage): dedupe streaming request-details log entries 2026-07-03 15:14:49 +07:00
providers feat(codex): show reset credit expiry details (#2290) 2026-07-03 15:07:45 +07:00
rtk fix(headroom): skip unsafe responses tool history (#2132) 2026-06-29 15:59:21 +07:00
services feat(codex): show reset credit expiry details (#2290) 2026-07-03 15:07:45 +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 fix(claude): drop foreign thinking signatures in passthrough 2026-07-03 15:06:19 +07:00
utils fix(codebuddy-cn): strip empty tool_calls arrays to preserve reasoning 2026-07-01 09:39:31 +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