Skip to content

Fix native Codex compact routing#61

Merged
jacobcxdev merged 1 commit into
mainfrom
fix/proxy-compaction-layer
Apr 27, 2026
Merged

Fix native Codex compact routing#61
jacobcxdev merged 1 commit into
mainfrom
fix/proxy-compaction-layer

Conversation

@jacobcxdev
Copy link
Copy Markdown
Owner

Summary

  • Route native Codex compact REST calls on /responses/compact and /v1/responses/compact through CodexTokenTransport.
  • Reject compact WebSocket upgrade attempts explicitly and keep Claude Code /v1/messages summarisation traffic on the translated /responses path.
  • Document missing CLI/config surface in the README.

Test plan

  • go test -race -count=1 ./internal/proxy -run 'TestServer_(NativeCodex|CodexCompact|Handler_CodexResponses|Handler_LegacyCodexResponses)'
  • go test -race -count=1 ./internal/proxy -run 'TestServer_.*Codex|TestTranslate|TestStreamTranslator'
  • go test -race -count=1 ./internal/proxy
  • go vet ./...
  • go build ./...
  • go test -race -count=1 ./...

@jacobcxdev jacobcxdev merged commit febab3d into main Apr 27, 2026
1 check passed
@jacobcxdev jacobcxdev deleted the fix/proxy-compaction-layer branch April 27, 2026 20:45
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