GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug]: Responses passthrough UUID item IDs leave Codex turn stuck on Thinking · Issue #938 · lidge-jun/opencodex

[Bug]: Responses passthrough UUID item IDs leave Codex turn stuck on Thinking #938

New issue
Copy link
New issue
Copy link
Closed
Closed
[Bug]: Responses passthrough UUID item IDs leave Codex turn stuck on Thinking#938
Copy link
Labels
bugSomething isn't workingproviderProvider adapters, OpenAI-compat presets, upstream API quirksprovider-compatibilityProvider compatibility reportsstreamingSSE, WebSocket, terminal stream frames

Description

@L14nY1Wang
L14nY1Wang
opened on Aug 3, 2026
Issue body actions

Client or integration

Codex App

Area

Streaming

Summary

When an openai-responses passthrough provider emits UUID item IDs instead of canonical Responses prefixes, the upstream request completes and OpenCodex records HTTP 200 plus reported usage, but Codex App never produces an assistant item or completes the turn. The UI remains on Thinking until the user interrupts it.

This is distinct from #864. The stream contains a complete response.completed event, and switching macOS from the default relay path to streamMode: "eager-relay" does not change the result.

The incompatible IDs observed on the wire look like:

response.id  = b16df59f-bbc4-458f-80c6-eae4bac8dada
reasoning.id = 4ffa2f22-7283-43ae-ae18-7690736424c1
message.id   = 6d66799f-6b2b-4643-8d30-5176244a3a8b

Canonical OpenAI Responses item IDs use type prefixes such as resp_, rs_, and msg_. OpenCodex already has an opt-in responsesItemIdRepair, but it only repairs exact, preconfigured placeholder IDs or missing terminal IDs. It cannot repair randomly generated UUIDs that change on every request.

Reproduction

  1. Configure an API-key provider using adapter: "openai-responses" whose native Responses endpoint returns UUID IDs for response/message/reasoning objects.
  2. Set statelessResponses: true and route a model through it.
  3. Start a new Codex App turn with a minimal input such as Reply only OK.
  4. Observe that the provider returns the complete sequence:
response.created
response.output_item.added        # reasoning item with UUID id
response.reasoning_text.delta
response.output_item.done
response.output_item.added        # message item with UUID id
response.output_text.delta
response.output_text.done
response.output_item.done
response.completed                # status=completed, output and usage present
  1. OpenCodex logs the request as status: 200, usageStatus: "reported", and includes token usage from response.completed.
  2. Codex App remains on Thinking. Its rollout contains task_started and the user input, but no assistant response item and no successful turn completion. Interrupting the UI produces turn_aborted.

I also repeated the request after setting:

{"streamMode":"eager-relay"}

The Codex CLI JSON stream still emitted only thread.started and turn.started; it emitted neither an agent message nor turn.completed. This rules out the macOS tee() relay path as the cause.

Directly calling the same OpenCodex /v1/responses route with curl shows that the SSE stream and response.completed frame are complete; the differentiating protocol violation is the UUID item IDs.

Version

2.10.0

Operating system

macOS 26.5.2 (Darwin 25.5.0, Apple Silicon arm64)

Provider and model

OpenAI-compatible native Responses provider / deepseek-v4-flash and deepseek-v4-pro

Logs or error output

# OpenCodex persisted request summary
status=200
usageStatus=reported
inputTokens=14466
outputTokens=81
reasoningOutputTokens=49

# Codex rollout lifecycle
task_started
# no assistant response_item
# no turn_completed
turn_aborted reason=interrupted

Suggested fix

Extend ResponsesItemIdRepairConfig with a provider-local option such as:

{
  "responsesItemIdRepair": {
    "repairInvalidIds": true,
    "repairMissingTerminalIds": true
  }
}

In responses-item-id-repair.ts, when repairInvalidIds is enabled, rewrite any existing message or reasoning ID that does not start with its expected prefix:

const shouldRepair = state.placeholders[type].has(rawId)
  || (state.repairInvalidIds && !rawId.startsWith(REPAIRABLE_PREFIXES[type]));

const mapped = shouldRepair
  ? mintCanonicalId(type, state.scope, outputIndex)
  : state.repairMissingTerminalIds
    ? rawId
    : null;

The request-local mapping should be applied consistently to:

  • response.output_item.added.item.id
  • lifecycle event item_id fields
  • response.output_item.done.item.id
  • response.completed.response.output[].id

Function-call IDs and call_id should remain untouched. Because the rewrite is client-facing only, raw upstream snapshots can remain available for provider replay.

Redacted configuration

{
  "providers": {
    "provider": {
      "adapter": "openai-responses",
      "baseUrl": "https://redacted.example",
      "responsesPath": "/responses",
      "authMode": "key",
      "models": ["deepseek-v4-flash", "deepseek-v4-pro"],
      "statelessResponses": true
    }
  },
  "websockets": false
}

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

  1. github-actions commented on Aug 3, 2026

    @github-actions
    github-actionsBot
    on Aug 3, 2026 – with GitHub Actions
    Contributor
    More actions

    Automated translation bookkeeping — detected language: unknown.

  2. github-actions
    added
    bugSomething isn't working
    streamingSSE, WebSocket, terminal stream frames
    on Aug 3, 2026
  3. mouzhi
    added a commit that references this issue on Aug 3, 2026

    address review feedback for deepseek responses repair

    3c32ac8
  4. Ingwannu commented on Aug 3, 2026

    @Ingwannu
    Ingwannu
    on Aug 3, 2026
    Owner
    More actions

    Confirmed against current dev: this is a valid Responses compatibility defect and is distinct from #864. The upstream stream reaches response.completed, but non-canonical UUID response/message/reasoning IDs are left intact and Codex does not commit the lifecycle.

    PR #940 implements the relevant provider-local opt-in SSE normalization. I have reviewed it and requested corrections for a cross-type alias collision and an unbudgeted alias-map growth path; its current head is not merge-ready. Keeping this issue open until the corrected PR passes the full CI and the reporter confirms the repaired stream completes.

  5. mouzhi
    added 2 commits that reference this issue on Aug 3, 2026

    address review feedback for deepseek responses repair

    2739386

    fix type-scoped aliases and enable built-in deepseek repair

    9f25360
  6. lidge-jun
    added
    provider-compatibilityProvider compatibility reports
    providerProvider adapters, OpenAI-compat presets, upstream API quirks
    on Aug 3, 2026
  7. Wibias
    linked a pull request that will close this issuefix DeepSeek Responses UUID item ids for Codex #940on Aug 4, 2026
  8. lidge-jun
    added 5 commits that reference this issue on Aug 5, 2026

    fix(deepseek): canonical item-id repair for UUID message/reasoning ids (

    2efb074

    fix(deepseek): backfill the registry item-id repair policy on the liv…

    68c165e

    fix(deepseek): canonical item-id repair for UUID message/reasoning ids (

    5285074

    fix(deepseek): backfill the registry item-id repair policy on the liv…

    a26d6a7

    Merge pull request #1027 from lidge-jun/codex/stack-05-uuid-item-ids

    2d7aa90
  9. chrisae9
    added a commit that references this issue on Aug 5, 2026

    fix(deepseek): normalize item ids on both bounded-JSON paths

    710492c
  10. lidge-jun commented on Aug 5, 2026

    @lidge-jun
    lidge-jun
    on Aug 5, 2026
    Owner
    More actions

    Fixed on dev in #1027 (merged as 2d7aa907c).

    DeepSeek's Responses route emits bare UUID item IDs where Codex expects the canonical msg_ / rs_ prefixes, which is what left the client stuck on Thinking. Message and reasoning IDs are now normalized on the client-facing path; raw recorded snapshots are untouched, and function-call IDs are left exactly as they arrive.

    The bounded-JSON paths from #875 normalize identically, so the two fixes agree instead of one disabling the other.

    Thanks to @mouzhi (#940) — the ID-prefix diagnosis is that PR's. The rest of that branch (response-ID aliasing, reasoning-event conversion, envelope synthesis) was left out as outside this issue's boundary and is still on the table separately if the stall persists.

    Not in a release yet. This is on dev, and main is at v2.10.0. It ships in the next release.

  11. lidge-jun
    closed this as completedon Aug 5, 2026
  12. lidge-jun
    added 2 commits that reference this issue on Aug 7, 2026

    fix(deepseek): restore live upstream streaming on the Responses wire

    0b8e608

    fix(deepseek): repair content_part item_id on streamed reasoning items (

    2a9656d
  13. agentHits
    added 6 commits that reference this issue on Sep 17, 2026

    fix(deepseek): normalize item ids on both bounded-JSON paths

    06280de

    fix(deepseek): canonical item-id repair for UUID message/reasoning ids (

    d034bd0

    fix(deepseek): backfill the registry item-id repair policy on the liv…

    b2dfe61

    Merge pull request lidge-jun#1027 from lidge-jun/codex/stack-05-uuid-…

    d59ed09

    fix(deepseek): restore live upstream streaming on the Responses wire

    1d6de33

    fix(deepseek): repair content_part item_id on streamed reasoning items (

    124941d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingproviderProvider adapters, OpenAI-compat presets, upstream API quirksprovider-compatibilityProvider compatibility reportsstreamingSSE, WebSocket, terminal stream frames

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.