Repository navigation
fix(pool): report inert on the unified pool-settings read - #8825
Conversation
/api/pool/settings 응답과 ocx account pool 출력에 inert를 넣는다. 일반 OAuth 풀은 pool.kernel이 꺼져 있으면 strategy·stickyLimit·autoSwitchThreshold를 저장만 하고 적용하지 않는데, 공통 응답에는 이 표시가 빠져 있었다. 옛 /api/oauth/accounts/pool 응답과 CLI 스키마(account-policy-dto)는 이미 inert를 다룬다. Codex·Anthropic 선택기는 kernel과 무관하게 설정을 쓰므로 false로 답한다.
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. Automatic draft conversion failed. Please convert this pull request to a draft manually until every box above is ticked. Hygiene✅ Deterministic PR hygiene checks passed. |
Ingwannu
left a comment
There was a problem hiding this comment.
Initial source review at Draft head 30cc83d291075afa763cc9f0e275aa180d5eb9db: the full three-file diff reuses the legacy generic marker in the unified projection and leaves selection/persistence unchanged. The same-key contract, kernel unset/false/true, Codex/Anthropic false and the PUT reply are covered in the new API assertions; inert is correctly distinguished from enabled.
The author-reported focused results are not hosted CI evidence. The current hygiene gate still requires an explicit review decision for src/oauth/; I am not adding a label merely from the path or declaring full readiness from this initial pass. Keep the Draft while that boundary review and required current-head CI/readiness are completed. No live pool setting was changed.
|
Maintainer security review (lane L3, gpt-6.2-sol review at ed1856c): SECURITY APPROVE. I pushed 8dbc507 on top. It documents the same |
영어 management-api.md의 /api/pool/settings 행에 넣은 inert 설명을, 같은 행을 영어와 함께 고쳐 온 ko·ru 번역본에도 넣는다(105313877과 같은 범위). es는 8dbc507bb에서 반영됐다.
|
Thanks for the review and for On top of it, |
|
Thanks for the ko/ru mirror (2e00b66). It is docs only, and the reviewed |
|
Maintainer integration into
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Summary
GET/PUT /api/pool/settings(andocx account pool, which reads it) leave outinert. For a generic OAuth pool (google-antigravity,kiro,xai, ...) withpool.kerneloff,strategy,stickyLimitandautoSwitchThresholdare stored but the selector does not consume them. The unified read gives no sign of that, soocx account pool google-antigravity --strategy round-robinanswers "Pool policy saved." for a setting that changes nothing.The legacy per-pool read already reports it, and the CLI schema already accepts it:
genericPoolSettingsDto(behind/api/oauth/accounts/pool) setsinert: kernelEnabled !== true.src/cli/account-policy-dto.tsparsesinert: z.boolean().optional().pool-settings-capability.tssays "strategyandautoSwitchThresholdare consumed only whenpool.kernelis on — that is whatinertreports."Only
unifiedPoolSettingsDtodrops it. Observed on a 2.100.3 hub, same pool, two reads:/api/oauth/accounts/pool?provider=google-antigravity:"strategy":"round-robin", ... "inert":true/api/pool/settings?provider=google-antigravityandocx account pool google-antigravity --json: noinertkeyFix
unifiedPoolSettingsDtonow carriesinertfor every kind, keeping the "every kind answers with the same keys" contract:config.pool?.kernel !== true, the same computation as the legacy DTOfalse.pool.kernelgates only the generic selector (generic-account-failover.ts,generic-session-affinity.ts,request-transport.ts); the Codex and Anthropic selectors are not gated by it.The field is typed as
GenericPoolSettingsDto["inert"]and documented with the same scope as the existing marker: it never describesenabled.Verification
Branch head
2e00b6678on devc36793a93(0 behind). On top of the reviewedsrc/(30cc83d29) are the maintainer'sdevmergeed1856c29, the maintainer's docs commit8dbc507bb, and2e00b6678.2e00b6678adds the sameinertnote to the Korean and Russian/api/pool/settingsrows, which have been kept in step with the English row since 1053138.src/is unchanged since the security review.2e00b6678:OCX_TEST_MAIN_TIMEOUT_MS=3600000 bun run teston a fresh clone (Linux x64, 4 vCPU, non-root user, Bun 1.4.4). 69823 pass, 138 fail.devc36793a93on the same machine with the same command: 69473 pass, 139 fail. Both runs fail the same 137 test names. The compiled ocx-child e2e file reports one unnamed failure in one run and two named failures in the other. These failures are environmental and do not reach the pool-settings path:/data/tmpfails the private-directory ownership and mode checks (unsafe cache directory,Private Codex home must be owned by the current user…,installation_prefix_unsupported).ed1856c29, caught one real failure.docs-spanish-localization("keeps executable examples and frontmatter…") reportedinert,pool.kernel,strategyandstickyLimitmissing from the Spanishmanagement-api.md.8dbc507bbfixes it, and the test passes in the run at2e00b6678.bun test tests/server/account-pool-management-api.test.ts: 48 pass, 0 fail.inert follows pool.kernel for a generic pool and stays false for Codex and Anthropicand the updated key-set test fail ondevwithout the source change (0 pass / 2 fail) and pass with it. The new test also checks three things: the unified and legacy generic reads agree with the kernel unset and on; an explicitkernel: falsereads the same as unset; aPUTanswers with the same marker.bun run typecheck: no type errors.bun run privacy:scan,bun scripts/file-size-ratchet.tsandbun run structure:checkpassed.Checklist
/api/pool/settingsrow in English, Spanish, Korean and Russianreference/management-api.md, andstructure/gui-and-management-api.md.)Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Required local validation passed; commands, results, and any full-suite exception are documented.
I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit
inertindicator. It is true for generic pools when the kernel is off and saved pool settings are not applied; it is always false for Codex and Anthropic pools. The indicator does not represent whether a pool is enabled.Readiness boxes ticked by maintainer @lidge-jun at integration (2026-11-18) after the exact-head review and CI described in the PR comments.