-
-
Notifications
You must be signed in to change notification settings - Fork 295
fix: address bugbot review issues from codex service tier PR #871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -881,6 +881,9 @@ function applyPatchField<T>( | |
| case "codex_parallel_tool_calls_preference": | ||
| updates.codex_parallel_tool_calls_preference = "inherit"; | ||
| return { ok: true, data: undefined }; | ||
| case "codex_service_tier_preference": | ||
| updates.codex_service_tier_preference = "inherit"; | ||
| return { ok: true, data: undefined }; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [HIGH] [TEST-MISSING-CRITICAL] Missing regression test for clear-mode |
||
| case "anthropic_max_tokens_preference": | ||
| updates.anthropic_max_tokens_preference = "inherit"; | ||
| return { ok: true, data: undefined }; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[HIGH] [TEST-MISSING-CRITICAL] Missing unit test for new
codex_service_tier_preferencebatch mapping (src/actions/providers.ts:2224-2226)\n\nEvidence:\n- Added mapping:\nif (updates.codex_service_tier_preference !== undefined) {\n repositoryUpdates.codexServiceTierPreference = updates.codex_service_tier_preference;\n }\n- Project rule (CLAUDE.md):2. **Test Coverage** - All new features must have unit test coverage of at least 80%\n\nWhy this is a problem: This PR fixes a previously-dropped field; without a regression test, a future refactor can reintroduce the same silent drop and the batch edit UI will appear to succeed while not applying the service tier change.\n\nSuggested fix (add totests/unit/actions/providers-batch-field-mapping.test.ts):\n\nts\nit("should map codex_service_tier_preference correctly", async () => {\n const { batchUpdateProviders } = await import("@/actions/providers");\n const result = await batchUpdateProviders({\n providerIds: [1],\n updates: { codex_service_tier_preference: "priority" },\n });\n\n expect(result.ok).toBe(true);\n expect(updateProvidersBatchMock).toHaveBeenCalledWith([1], {\n codexServiceTierPreference: "priority",\n });\n});\n