GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — fix(deepseek): canonical item-id repair for UUID message/reasoning ids (#938) by lidge-jun · Pull Request #1027 · lidge-jun/opencodex Conversation
Owner
SummaryStack 05 of the bug-stack campaign ( DeepSeek's Responses route emits bare UUID item ids, which leave Codex clients stuck on Thinking — the lifecycle never correlates into a committed turn.
Tests
Provider docsFive locale files document
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 8403fe695e
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| // #938: WS turns reframe this JSON into events in the bridge — normalize | ||
| // ids here so both bounded-JSON paths agree (raw record already happened). | ||
| const outboundJson = options.inboundTransport === "websocket" | ||
| && providerModelResponsesUpstreamStreaming(route.providerName, route.provider, route.modelId) === false |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Reuse the saved streaming hint for JSON id repair
In DeepSeek’s bounded-JSON path, route.provider has already been mutated by resolveWireProtocolOverride to openai-responses, while providerModelResponsesUpstreamStreaming() only returns DeepSeek’s false hint when providerMatchesRegistryTransport() still sees the registry adapter (openai-chat). This new WS normalization therefore skips the built-in DeepSeek case, so the bridge reframes raw JSON with UUID item ids and Codex can still remain stuck on the uncommitted turn; keep the pre-override streaming hint from request normalization or make this lookup tolerate the wire override.
AGENTS.md reference: src/AGENTS.md:L19-L19
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| // Registry-only repair policy (#938): fill only when the runtime provider has | ||
| // no explicit policy, and deep-clone so saved/user values never alias the | ||
| // registry constant. | ||
| if (prov.responsesItemIdRepair === undefined && entry.responsesItemIdRepair) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Keep repair defaults out of save-time enrichment
This backfill also runs through enrichProviderFromCatalog() before save in src/cli/init.ts:153 and src/server/management/provider-routes.ts:131, so adding DeepSeek through those workflows persists the current registry-only responsesItemIdRepair into config.json. From then on routedProviderConfig() treats it as an explicit user policy and will not inherit future registry fixes/default changes, contrary to the intended route-time fill behavior; keep this repair policy out of the save-time enrichment path or strip it before saving.
AGENTS.md reference: src/AGENTS.md:L18-L18
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
a3dd247 to
ec5e666
Compare
8403fe6 to
68c165e
Compare
#938) DeepSeek's Responses route emits bare UUID item ids that leave Codex stuck on an uncommitted turn. - ResponsesItemIdRepairConfig.repairInvalidIds: existing message/ reasoning ids without the canonical msg_/rs_ prefix mint stable type-scoped canonical ids (function_call ids and call_id untouched) - built-in DeepSeek gets the registry-only policy { repairInvalidIds, repairMissingTerminalIds } filled by derive (explicit config wins) - the bounded-JSON paths (#875) apply the same client normalization on both HTTP SSE synthesis and WS reframes; raw continuation snapshots keep upstream ids Supersedes PR #940 with a narrow reimplementation (its id-prefix idea; its response-id aliasing, envelope synthesis, and relay surgery are deliberately excluded, recorded in the 060 doc).
…e route path (#938) routedProviderConfig never enriched providers, so saved configs and fresh provider adds never received the registry repair policy — the e2e test masked this by enriching manually. Fill-only-when-absent with cloned arrays, matching the file's established backfill pattern; activation test now uses the ordinary un-enriched seed.
68c165e to
a26d6a7
Compare
ec5e666 to
710492c
Compare
There was an error while loading. Please reload this page.
…item-ids fix(deepseek): canonical item-id repair for UUID message/reasoning ids (lidge-jun#938)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.