Skip to content

Fix proxy replay across upstream accounts#34

Merged
Dikevin merged 3 commits into
masterfrom
fix/proxy-switch-no-wait
Apr 29, 2026
Merged

Fix proxy replay across upstream accounts#34
Dikevin merged 3 commits into
masterfrom
fix/proxy-switch-no-wait

Conversation

@Dikevin
Copy link
Copy Markdown
Collaborator

@Dikevin Dikevin commented Apr 27, 2026

Summary

  • rebuild ChatGPT websocket replay requests from proxy checkpoints instead of forwarding stale upstream previous_response_id values
  • keep transparent API-key /v1/responses requests pinned to upstream previous_response_id from replaying across API keys
  • recreate missing proxy upstream backup directories and document replay boundaries

Verification

  • pnpm exec rstest tests/proxy.test.ts --testNamePattern "API-key"
  • pnpm exec rstest tests/proxy.test.ts
  • pnpm typecheck && pnpm test && pnpm build
  • isolated live-run with built dist/cli.js proxy serve, temp HOME/CODEX_HOME, mock upstream: verified previous_response_id skip and normal API-key replay sk-one -> sk-two

@Dikevin Dikevin merged commit ee1d64b into master Apr 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant