Skip to content

fix(channels): show field passthrough controls for Codex - #5902

Merged
seefs001 merged 1 commit into
QuantumNous:mainfrom
seefs001:fix/codex-channel-field-filter
Jul 4, 2026
Merged

seefs001 merged 1 commit into
QuantumNous:mainfrom
seefs001:fix/codex-channel-field-filter

Conversation

@seefs001

@seefs001 seefs001 commented Jul 4, 2026 •

Copy link
Copy Markdown
Collaborator

⚠️ 提交说明 / PR Notice

Important

  • 请提供人工撰写的简洁摘要,避免直接粘贴未经整理的 AI 输出。

📝 变更描述 / Description

(简述:做了什么?为什么这样改能生效?请基于你对代码逻辑的理解来写,避免粘贴未经整理的内容)

🚀 变更类型 / Type of change

  • 🐛 Bug 修复 (Bug fix) - 请关联对应 Issue,避免将设计取舍、理解偏差或预期不一致直接归类为 bug
  • ✨ 新功能 (New feature) - 重大特性建议先通过 Issue 沟通
  • ⚡ 性能优化 / 重构 (Refactor)
  • 📝 文档更新 (Documentation)

🔗 关联任务 / Related Issue

  • Closes # (如有)

✅ 提交前检查项 / Checklist

  • 人工确认: 我已亲自整理并撰写此描述,没有直接粘贴未经处理的 AI 输出。
  • 非重复提交: 我已搜索现有的 Issues 与 PRs,确认不是重复提交。
  • Bug fix 说明: 若此 PR 标记为 Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。
  • 变更理解: 我已理解这些更改的工作原理及可能影响。
  • 范围聚焦: 本 PR 未包含任何与当前任务无关的代码改动。
  • 本地验证: 已在本地运行并通过测试或手动验证,维护者可以据此复核结果。
  • 安全合规: 代码中无敏感凭据,且符合项目代码规范。

📸 运行证明 / Proof of Work

(请在此粘贴截图、关键日志或测试报告,以证明变更生效)

Summary by CodeRabbit

  • Bug Fixes
    • Expanded advanced channel settings support for channel type 57, including field passthrough controls and related toggle options.
    • Preserved the service tier setting for channel type 57 when saving channel configuration.
    • Improved the edit channel experience so the same control options now appear consistently for supported channel types.

@coderabbitai

coderabbitai Bot commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4bcda886-81c8-4130-a4d2-6202f339d2d2

📥 Commits

Reviewing files that changed from the base of the PR and between bed4a3f and 54a5a6e.

📒 Files selected for processing (3)
  • web/classic/src/components/table/channels/modals/EditChannelModal.jsx
  • web/default/src/features/channels/components/drawers/channel-mutate-drawer.tsx
  • web/default/src/features/channels/lib/channel-form.ts

Walkthrough

Channel type 57 is added to the set of channel types (1, 14) that support field passthrough controls, including allow_service_tier, disable_store, allow_safety_identifier, and allow_include_obfuscation, across classic EditChannelModal, default channel-mutate-drawer, and channel-form settings builder.

Changes

Channel type 57 field passthrough support

Layer / File(s) Summary
Classic modal submit logic and UI condition
web/classic/src/components/table/channels/modals/EditChannelModal.jsx
Submit logic now sets allow_service_tier for types 1, 14, and 57, and applies disable_store/allow_safety_identifier/allow_include_obfuscation for type 1 or 57; the passthrough UI section now also renders for type 57.
Default drawer config, navigation, and rendering
web/default/src/features/channels/components/drawers/channel-mutate-drawer.tsx
fieldPassthroughConfigured, Advanced Settings navigation, and the Field passthrough section/switches now account for currentType === 57.
Settings builder persistence
web/default/src/features/channels/lib/channel-form.ts
buildSettingsJSON persists allow_service_tier for channel types 1, 14, and 57.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • QuantumNous/new-api#1950: Adds backend support for allow_service_tier, disable_store, and allow_safety_identifier fields consumed by these same UI toggles.
  • QuantumNous/new-api#2971: Wires up allow_include_obfuscation/allow_inference_geo backend/request field support that aligns with these UI passthrough toggles.

Poem

A rabbit hops through channel fifty-seven,
Toggling switches, code made even.
One, fourteen, now fifty-seven too,
Field passthrough opens a wider view.
Thump thump — ship it, tests pass through! 🐇✨

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

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@seefs001
seefs001 merged commit 4ae3417 into QuantumNous:main Jul 4, 2026
1 check passed
52assert added a commit to 52assert/new-api that referenced this pull request Jul 7, 2026
…codes

* origin/main: (180 commits)
  fix(billing): extend quantity validation and saturating conversions to remaining paths
  fix(billing): validate quantity parameters and harden quota calculations
  Fix/build date dns error (QuantumNous#5945)
  fix: avoid stale stream writes after client disconnect (QuantumNous#5710)
  feat(group): enhance group ratio editor with improved visibility rules and JSON parsing
  feat: optimize legacy top-up warning banner copy (QuantumNous#5851) (QuantumNous#5855)
  fix(web): redirect authenticated users away from sign-up page (QuantumNous#5910)
  feat(ssrf): implement SSRF protection in HTTP clients and validation functions
  feat(user): better messages for redeem failures
  fix(html): 修复 Shadow DOM 隔离渲染下深浅色模式无法自动切换的问题 (QuantumNous#5890)
  fix(web): sync home iframe theme and language (QuantumNous#5917)
  fix: 任务差额结算后 quota 和阿里视频时长优化 (QuantumNous#5923)
  fix(web): refine mobile user cards
  test(user): cover self-service password update guard
  feat(session): support opt-in Secure session cookies
  fix(auth): allow read-only access for non-disabled tokens
  fix(user): harden account email and password handling
  fix: align dynamic pricing style with log details dialog sections
  fix(channels): show field passthrough controls for Codex (QuantumNous#5902)
  fix(user): trim whitespace from username and validate input
  ...

# Conflicts:
#	controller/redemption.go
#	controller/user.go
#	model/option.go
#	model/redemption.go
#	model/user.go
#	web/default/src/features/auth/api.ts
#	web/default/src/features/redemption-codes/api.ts
#	web/default/src/features/redemption-codes/components/redemptions-provider.tsx
#	web/default/src/features/redemption-codes/components/redemptions-table.tsx
#	web/default/src/features/redemption-codes/constants.ts
#	web/default/src/hooks/use-sidebar-data.ts
#	web/default/src/i18n/static-keys.ts
#	web/default/src/routes/__root.tsx
@coderabbitai coderabbitai Bot mentioned this pull request Jul 9, 2026
7 of 11 tasks
xiaomingchen pushed a commit to xiaomingchen/new-api that referenced this pull request Jul 10, 2026
Jacobinwwey pushed a commit to Jacobinwwey/new-api that referenced this pull request Jul 11, 2026
ruanhangjian pushed a commit to ruanhangjian/new-api that referenced this pull request Jul 11, 2026
lizhongyi1209 pushed a commit to lizhongyi1209/new-api that referenced this pull request Jul 13, 2026
zhaodechao2008 pushed a commit to zhaodechao2008/new-api that referenced this pull request Jul 27, 2026
330079598 pushed a commit to 330079598/new-api that referenced this pull request Aug 19, 2026
salem-2007 added a commit to salem-2007/new-api that referenced this pull request Sep 10, 2026
junjundesk pushed a commit to junjundesk/new-api that referenced this pull request Oct 3, 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