Skip to content

fix: support Codex hosted tool routes#73

Merged
jacobcxdev merged 1 commit into
mainfrom
jacobcxdev/fix-codex-hosted-tools
Jul 11, 2026
Merged

fix: support Codex hosted tool routes#73
jacobcxdev merged 1 commit into
mainfrom
jacobcxdev/fix-codex-hosted-tools

Conversation

@jacobcxdev

Copy link
Copy Markdown
Owner

Summary

  • allow local OpenAI clients to probe /v1/models without CQ proxy credentials
  • route Codex hosted web search at /alpha/search through Codex OAuth
  • return explicit unsupported errors for unhandled OpenAI-compatible routes
  • log authentication failures with method and path

Root cause

Codex Desktop hosted tools honour openai_base_url but do not know CQ's local proxy token. Requests outside existing native Codex handlers fell through to generic Claude proxy authentication and returned 403 invalid proxy token.

Impact

Web search and model discovery now use local Codex-compatible routing. Unsupported OpenAI endpoints return a clear 501 instead of a misleading authentication failure.

Verification

  • go build ./...
  • go vet ./...
  • go test -race -count=1 ./...

- allowed tokenless local model discovery
- routed hosted web search through Codex OAuth
- classified unsupported OpenAI-compatible endpoints clearly
- added regression coverage for proxy authentication boundaries
@jacobcxdev
jacobcxdev merged commit 0e9dc40 into main Jul 11, 2026
1 of 2 checks passed
@jacobcxdev
jacobcxdev deleted the jacobcxdev/fix-codex-hosted-tools branch July 11, 2026 12:44
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