9router/open-sse/executors
Simon Shi 620b59ca0b fix(qoder): address review findings
Correctness:
- testUtils: drop checkExpiry so the userinfo URL probe actually runs (revoked
  tokens used to look "active" until local 30-day expiry passed)
- auth.parseExpiry: handle numeric expiresAt, swap parseInt before Date.parse
  so "2026" doesn't get interpreted as year-2026, treat expires_in:0 as
  already-expired instead of fabricating a 30-day default
- providers.mapTokens: synthesize email from userId when fetchUserInfo fails
  so OAuth dedup works (re-logins no longer accumulate "Account N" rows)

SSE wrapper:
- wrapQoderSSE: add !doneEmitted guard on success branch (chunks could leak
  past [DONE] when an error envelope shared a TCP packet with a valid one)
- flush(): finalize TextDecoder + drain trailing buffer so the chunk carrying
  finish_reason is delivered when upstream closes without a final \n
- sanitize literal \n inside inner OpenAI body so SSE framing stays intact

Robustness:
- executor: wrap buildCosyHeaders in try/catch so a missing accessToken
  returns 401 (re-auth) instead of bubbling as 500
- executor: short-circuit on missing accessToken before signing
- executor: plumb proxyOptions/signal through buildQoderRequestBody so
  proxy-only networks can fetch the model_config catalog
- qoderModels: dedupe concurrent first-time misses with an in-flight Promise
  map (parallel chat windows now do 1 upstream fetch instead of N)
- qoderModels: check signal.aborted before addEventListener so a pre-aborted
  parent signal cancels the inner fetch immediately
- auth: AbortController + 15s timeout on pollDeviceToken / fetchUserInfo to
  prevent hung sockets when openapi.qoder.sh stalls mid-response

UX:
- OAuthModal: derive polling deadline from device-code expires_in (qoder
  publishes 300s; the previous fixed 120s caused timeouts when users took
  more than 2 minutes on the consent page)

Cleanup:
- delete src/lib/oauth/services/qoder.js — referenced removed config fields
  (clientId/clientSecret/tokenUrl/authorizeUrl) and was re-exported from
  services/index.js, so any future caller would TypeError on first use
2026-05-29 17:36:27 +07:00
..
antigravity.js Enhance chat handling and introduce Caveman feature 2026-04-30 18:00:38 +07:00
azure.js feat: add Azure OpenAI provider support 2026-04-24 10:04:59 +07:00
base.js Fix codex 2026-05-26 11:35:39 +07:00
codex.js Fix codex 2026-05-26 11:35:39 +07:00
commandcode.js feat: add CommandCode provider support 2026-05-07 23:01:33 +07:00
cursor.js fix: decode Composer cursor thinking output (#1310) 2026-05-21 09:52:30 +07:00
default.js fix: implement json_schema fallback for OpenAI-compatible providers (#1343) 2026-05-26 11:35:39 +07:00
gemini-cli.js feat(gemini-cli): wrap CloudCode payload and surface 429 retryDelay 2026-05-18 15:23:38 +07:00
github.js fix: never route GitHub Copilot Gemini/Claude models to /responses (#1062) (#1536) 2026-05-29 15:40:42 +07:00
grok-web.js feat: add support for Grok Web and Perplexity Web providers 2026-04-22 11:58:53 +07:00
iflow.js fix(iflow): inject stream_options for usage data in streaming 2026-03-23 12:03:11 +07:00
index.js feat: add CommandCode provider support 2026-05-07 23:01:33 +07:00
kiro.js https://github.com/decolua/9router/pull/1167 2026-05-16 11:20:08 +07:00
ollama-local.js feat: add OllamaLocalExecutor and update provider handling 2026-05-07 16:42:36 +07:00
opencode-go.js Fix : Add reasoning_content placeholder for DeepSeek thinking models 2026-04-29 09:34:24 +07:00
opencode.js Refactor error handling to config-driven approach with centralized error rules 2026-04-15 11:46:47 +07:00
perplexity-web.js feat: add support for Grok Web and Perplexity Web providers 2026-04-22 11:58:53 +07:00
qoder.js fix(qoder): address review findings 2026-05-29 17:36:27 +07:00
qwen.js fix: strip stream_options for qwen non-streaming Claude Code requests (closes #557) (#663) 2026-05-03 15:21:43 +07:00
vertex.js fix: use project-scoped Vertex URL for SA JSON auth and add ?alt=sse for streaming (closes #388) 2026-03-27 11:03:49 +07:00