Skip to content

feat(openai): add group-level Codex client restriction#2883

Open
LichKing-2234 wants to merge 2 commits into
Wei-Shaw:mainfrom
LichKing-2234:feat/openai-codex-group-only
Open

feat(openai): add group-level Codex client restriction#2883
LichKing-2234 wants to merge 2 commits into
Wei-Shaw:mainfrom
LichKing-2234:feat/openai-codex-group-only

Conversation

@LichKing-2234
Copy link
Copy Markdown

@LichKing-2234 LichKing-2234 commented May 29, 2026

Summary

  • add OpenAI group field codex_official_only with migration, Ent schema, DTO/API cache/admin request support
  • align OpenAI Codex group restriction with Anthropic Claude Code: non-official clients can fall back to a configured OpenAI group, and invalid/cyclic restricted fallback targets are rejected
  • enforce the effective fallback group across OpenAI Responses, Chat Completions, Messages bridge, Embeddings, Images, and Responses WebSocket ingress
  • move the admin UI to an Anthropic-matching Codex restriction block with tooltip, status text, fallback selector, and i18n text

Tests

  • GOPROXY=https://goproxy.cn,direct go test ./...
  • GOPROXY=https://goproxy.cn,direct go test -tags=unit ./internal/server -run 'TestAPIContract'\n- pnpm --dir frontend build\n- git diff --check

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 29, 2026

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@LichKing-2234
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request May 29, 2026
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