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 — fix: repair oversized Responses call IDs on replay by alexanderxcmo · Pull Request #360 · lidge-jun/opencodex

Conversation

@alexanderxcmo

@alexanderxcmo alexanderxcmo commented Jul 23, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Summary

  • repair replayed Responses call_id values that exceed the upstream 64-character limit
  • preserve call/output pairing with deterministic request-local aliases
  • keep raw API-key continuations unchanged while repairing explicit proxy-expanded replays
  • document the compatibility behavior and add focused regression coverage

Root cause

A Codex sidechat/fork can replay tool history produced by a routed provider into a native OpenAI model. Namespacing during that replay can produce call_id values longer than 64 characters, causing the ChatGPT Responses backend to reject the request, for example:

Invalid 'input[32].call_id': string too long. Expected a string with maximum length 64, but got a string with length 85 instead.

Forward mode already removes previous_response_id and sends explicit replay input, so every occurrence of an oversized ID can safely be remapped together. Raw API-key continuations retain their original IDs because they may reference upstream-stored state; API-key requests are repaired only after the proxy has expanded the replay locally.

Validation

  • bun test --isolate ./tests/openai-responses-passthrough.test.ts ./tests/responses-state.test.ts — 53 passed
  • bun run typecheck
  • bun run privacy:scan
  • manual end-to-end verification on OpenCodex 2.7.35: the previously failing routed-task → native-GPT sidechat now succeeds

The complete local suite was not used as a gate because this macOS environment lacks the Bun.Image runtime used by unrelated image-normalization tests and showed unrelated integration-test timeouts; focused tests and CI cover this change.

Summary by CodeRabbit

  • Bug Fixes

    • Fixed OpenAI Responses passthrough requests that contained oversized replayed call IDs.
    • Repaired affected call and tool-result pairs with deterministic, bounded-length aliases while preserving their relationships.
    • Added safeguards to keep distinct tool call types from receiving conflicting aliases.
  • Documentation

    • Documented call ID compatibility behavior across forwarded and proxy-expanded replays.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@coderabbitai

coderabbitai Bot commented Jul 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 16747083-ee68-4cd1-9d0f-20e1560c8ecf

📥 Commits

Reviewing files that changed from the base of the PR and between c63589c and e65819b.

📒 Files selected for processing (3)
  • src/adapters/openai-responses.ts
  • structure/04_transports-and-sidecars.md
  • tests/openai-responses-passthrough.test.ts

📝 Walkthrough

Walkthrough

The OpenAI Responses passthrough adapter now deterministically aliases oversized replay call_id values during forward and proxy-expanded API-key requests. Tests cover pairing, stability, collision-safe bounded aliases, raw continuation preservation, and expanded replay repair.

Changes

Responses call_id compatibility

Layer / File(s) Summary
Deterministic call_id alias generation
src/adapters/openai-responses.ts
Adds SHA-256-based, request-local aliases for string call_id values longer than 64 characters, while preserving paired references and avoiding occupied-ID collisions.
Request flow integration
src/adapters/openai-responses.ts, structure/04-transports-and-sidecars.md
Applies repair in forward mode and proxy-expanded replay, while raw API-key continuations retain their original IDs; documentation records these rules.
Authentication-mode behavior validation
tests/openai-responses-passthrough.test.ts
Tests function, custom-tool, and tool-search pairing, deterministic aliases, non-mutation, raw continuation preservation, and expanded replay repair.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

  • lidge-jun/opencodex#293: Modifies the same buildRequest forward/auth-mode request-shaping path.

Suggested reviewers: ingwannu, lidge-jun

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the bug Something isn't working label Jul 23, 2026
@alexanderxcmo
fix oversized Responses call IDs on replay
e65819b
@alexanderxcmo
alexanderxcmo force-pushed the agent/repair-oversized-call-id-replay branch from 070be5a to e65819b Compare July 23, 2026 21:07
@lidge-jun
lidge-jun marked this pull request as ready for review July 24, 2026 01:16
@lidge-jun
lidge-jun requested review from Ingwannu and lidge-jun as code owners July 24, 2026 01:16
@lidge-jun
lidge-jun merged commit b77cdcb into lidge-jun:dev Jul 24, 2026
9 checks passed

Uh oh!

There was an error while loading. Please reload this page.

lidge-jun added a commit that referenced this pull request Jul 24, 2026
@lidge-jun
docs(devlog): triage decisions #360 MERGED, #356 DEFER with review co…
76e3cfb
…mment
@lidge-jun lidge-jun mentioned this pull request Jul 24, 2026
fix(cursor): stable conversation continuity for store:false turns #366
Merged
6 tasks done
This was referenced Jul 26, 2026
fix(responses): strip max_output_tokens and metadata in forward mode #489
Merged
[WRONG BRANCH] fix: stabilize cache inputs #625
Closed
[WRONG BRANCH] fix: stabilize cache inputs #626
Closed
fix(providers): route GitHub Copilot Responses-only models off chat completions #746
Closed
This was referenced Aug 2, 2026
fix(deepseek): preserve Responses reasoning replay on continuations (#875) #906
Closed
fix(openai-responses): mirror web_search_call query into queries #934
Closed
fix DeepSeek Responses UUID item ids for Codex #940
Closed
fix(deepseek): normalize tool result adjacency #1334
Closed
This was referenced Aug 11, 2026
fix(responses): refuse oversized input and stop compounding replayed history #1412
Closed
[Provider compatibility] Anthropic adapter forwards tool_use ids unsanitized, breaking cross-provider history replay (fix already exists in google.ts) #1767
Closed
fix(anthropic): normalize tool call ids so cross-provider history replays #1780
Merged
fix(responses): synthesize placeholder results for orphaned stateless tool calls #1912
Merged
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
Merge pull request lidge-jun#360 from alexanderxcmo/agent/repair-over…
5204d6b
…sized-call-id-replay

fix: repair oversized Responses call IDs on replay
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
docs(devlog): triage decisions lidge-jun#360 MERGED, lidge-jun#356 DE…
1e02bcd
…FER with review comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lidge-jun lidge-jun Awaiting requested review from lidge-jun lidge-jun is a code owner
@Ingwannu Ingwannu Awaiting requested review from Ingwannu Ingwannu is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bug Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@alexanderxcmo @lidge-jun
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — 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.