Repository navigation
Conversation
Align Codex and Claude slot kernel configs with REQ-0436: max_request_bytes defaults and supervisor-written values go from 32 MiB to 64 MiB. Go worker config fallback matches. Tests and CHANGELOG Unreleased entry included. Co-authored-by: ted <kuhlmangarry24@gmail.com>
Owner
Author
Owner
Author
|
已由 #448 / v1.3.171 取代,本 PR 不再合并。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
Fixes #436 / REQ-0436。用户入站请求体约 40MB 时在 Codex kernel(Axum)层收到 413:
Failed to buffer the request body: length limit exceeded。此前 #169 已将预编译 kernel 默认与max_request_bytes从 2 MiB 提到 32 MiB;本次在同样旋钮上继续提到 64 MiB。Node 控制面
KIN_MAX_BODY默认 128MB 不变;本次只调整槽位 / Codex kernel 写入配置的max_request_bytes及相关 Go worker 缺省值。变更
writeCodexKernelConfig:max_request_bytes64 MiBwriteKernelConfig(Claude rust kernel):64 MiBvm-runtimeworker 配置:64 MiBworker/internal/config:未配置时的MaxRequestBytes缺省 64 << 20codex-kernel-client、kernel-router、config_testCHANGELOG.md→ Unreleased(未改VERSION)未改动
鉴权、计费、并发、公开 API 形状;无数据库迁移。
部署说明
升级 Node 控制面并重启后,新写入的
codex-kernel.json/kernel.json会带 64 MiB 上限;已在跑的kin-codex-kernel子进程需重启(重启 Node 或逐槽重启 kernel)才会读到新配置。预编译kin-codex-kernelpayload 若仍带 32 MiB 编译默认值,只要配置里显式写了max_request_bytes(控制面一直会写)即生效;与 #169 策略一致。测试
biome format --write(已跑)node --test test/unit/codex-kernel-client.test.mjsnode --test test/unit/kernel-router.test.mjsnpm run test:go