GeezerVison is showing github.com — fix(server): a Codex effort pick made during a running turn reaches Codex by AlhasanIQ · Pull Request #44561 · pingdotgg/t3code
Conversation
AlhasanIQ
commented
Nov 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
An effort picked in the composer while a Codex turn runs never reaches Codex. The web client saves the pick on the thread at once (thread.model-selection.set) and the server asks the adapter to apply it to the running process, but the Codex adapter's applyModelSelection only forwards the service tier. turn/steer carries no settings either, so a steer with a new effort has the same gap.
The turns Codex starts on its own reuse the thread's settings, so a /goal run keeps the old effort on every later goal turn, and a capacity retry restarts with the old effort, while the picker and the thread show the new one. The change only lands on the next T3 run, which a goal can postpone for hours.
Reproduce: start a Codex thread on reasoningEffort=low with a multi-turn /goal, pick High during turn 1, send nothing. Expected: the goal turns after the pick run on High. Actual: all of them run on Low.
Change
The helper that #38130 and #38169 added for the service tier now also sends the effort, in the same thread/settings/update request, and is renamed applyThreadSettings. It serves both paths that already call it: a pick with no message, and a steer.
- Effort is sent only when it differs from what the running turn started with (or from the last effort Codex accepted on it), so an unchanged pick sends nothing new.
- An effort picked together with another model is not sent: the running turn's model may not offer it. That pick still waits for the turn that starts the model, as before.
- A capacity retry restarts from the turn's original input, so it now keeps an effort Codex accepted during the failed attempt, the same way it keeps a changed speed.
- A goal's next turn is registered from the run's first input, so the turns of a goal now share one record of the effort and speed Codex accepted. Sharing, not copying, also covers a turn Codex starts before it answers the update (1002e34). Without that, changing back (low, then high, then low) compared the last pick with the first input and sent nothing. (Review finding, fixed in bb09090.)
- Between two goal turns no turn is active. The turn the goal holds now stands in, so a pick in that gap is sent instead of dropped. (Review finding, same commit.)
- A capacity retry copies its turn's settings before its next turn registers. A pick made in between found no turn, sent nothing, and the retry started on the old effort. The pick now waits for the retry's turn, the way a steer already does. (Review finding, fixed in ab5842f.)
- A Codex that rejects the request still only logs a warning.
thread/settings/update is hand-written in the protocol generator because Codex leaves experimental requests out of its published schema. I added effort there and made the same two-line edit in schema.gen.ts; a full regeneration pulls a newer upstream ref and rewrites the file. Codex has accepted effort on this request since at least 0.140 (checked the struct at rust-v0.140.0, 0.150.0, 0.160.0, 0.166.0, 0.169.0).
Not in this change:
- The
runtime_info note T3 sends with turn/start names the effort. Codex keeps the old note until the next T3 run.
This also does not change the effort of the steps left in the running turn. Codex documents thread/settings/update as "for subsequent turns", and its per-turn request (turn/settings/update) is rejected unless the under-development step_model_switching feature is on, so I left that out.
Scope
Bug fix, no issue: it is the same gap as #35601 (fixed by #38130 and #38169) for the other option in the same picker, and the fix extends the helper those PRs added. #34563 fixed the same behavior for Claude.
Verification
Linux, Codex CLI 0.169.0, ChatGPT login, gpt-5.6-sol, vp run dev:server with an isolated --home-dir. Both runs use the same /goal (4 steps, one sleep 20 per turn), started with reasoningEffort=low. About 5 seconds into turn 1 the thread's effort is set to high through t3_thread_configure (called from a throwaway CLI command that is not part of this PR), which dispatches the same thread.model-selection.set the composer picker sends. No message is sent. Lines are from the Codex rollout file; times are UTC.
Before (this branch with CodexAdapterV2.ts restored from main):
00:17:51.927 turn_context effort=low (turn 1)
(00:17:57: T3 accepts the pick; no thread_settings_applied follows)
00:18:18.453 turn_context effort=low (goal turn 2)
00:18:44.231 turn_context effort=low (goal turn 3)
00:19:10.718 turn_context effort=low (goal turn 4)
Reading the thread back afterwards returned reasoningEffort: high, so T3 and Codex disagreed for the whole run.
After (this branch):
00:15:34.998 turn_context effort=low (turn 1)
00:15:38.518 thread_settings_applied effort=high (the pick, during turn 1)
00:16:02.382 turn_context effort=high (goal turn 2)
00:16:28.957 turn_context effort=high (goal turn 3)
00:16:56.238 turn_context effort=high (goal turn 4)
Changing back, on bb09090 (same setup, 5 steps): pick high during turn 1, pick low again during turn 3.
00:44:15.522 turn_context effort=low (turn 1)
00:44:17.989 thread_settings_applied effort=high (first pick)
00:44:43.646 turn_context effort=high (goal turn 2)
00:45:11.744 turn_context effort=high (goal turn 3)
00:45:18.073 thread_settings_applied effort=low (second pick, during turn 3)
00:45:41.053 turn_context effort=low (goal turn 4)
00:46:07.451 turn_context effort=low (goal turn 5)
I also checked the Codex side directly with a small JSON-RPC driver against codex app-server, sending turn/start with T3's shape (effort plus collaborationMode.settings.reasoning_effort): thread/settings/update { effort: "high" } during turn 1 left turn 1 on low, updated the collaboration mode's reasoning_effort too, and the next turn started on high. turn/settings/update returned -32600 turn settings updates require the step_model_switching feature.
Tests, in apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts:
- New rows: a steer that changes the effort, an effort pick with no message, an effort picked with another model (expects no settings request), and a capacity retry that keeps the changed effort.
- New goal tests: an effort picked during a goal turn, one picked between goal turns, and one that Codex answers after it starts the next goal turn, each followed by a change back on that next turn.
- New capacity-retry row
pick-starting: an effort picked after the retry's turn/start is built and before its turn registers. It times out without the wait.
- With
CodexAdapterV2.ts restored from main, the steer, pick and retry rows fail. With only the model check removed, the other-model row fails. With only the carry to the next goal turn removed, the first two goal tests fail. With only the held turn left out, the between-turns test fails. With the record copied instead of shared, the third fails.
vp test run src/orchestration-v2/Adapters/CodexAdapterV2.test.ts: 247 passed on 1002e34. vp run check:changed: all pass.
Not checked:
- The first two live runs used the first commit before its rebase onto 2042b29. The change-back run used the second commit before it was moved onto the merge of main (d75f71e). After each move I re-ran the test file only.
- I did not click the picker in a browser, and did not run the steer path, a capacity retry (a real
serverOverloaded cannot be forced), a pick while a retry starts, or a pick in the gap between goal turns live. Those are covered by the replay tests only.
- Desktop and mobile clients.
Written by Claude Fable 5.2 in Claude Code (T3 Code), on behalf of Alhasan.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…odex
The composer saves an effort picked during a running Codex turn on the
thread at once, and the server asks the adapter to apply it, but the Codex
adapter only forwarded the service tier. The turns Codex starts on its own
(native goal turns, capacity retries) kept the old effort until the next
T3 run, while the picker showed the new one.
The adapter now sends the changed effort in the same
`thread/settings/update` request that carries the service tier, for a pick
with no message and for a steer. An effort picked together with another
model still waits for the turn that starts that model. A capacity retry
keeps the changed effort, as it keeps the changed speed.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
coderabbitai
Bot
commented
Nov 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Note
Reviews paused
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
Use the following commands to manage reviews:
@coderabbitai resume to resume automatic reviews.
@coderabbitai review to trigger a single review.
Use the checkboxes below for quick actions:
- Resume reviews
- Trigger review
No actionable comments were generated in the recent review.
Walkthrough
-
The Codex adapter now resolves and applies reasoning-effort settings to eligible turns. It carries accepted effort and service tier into goal continuations and capacity retries. The thread-settings schema accepts an optional nullable effort value.
Changes: Codex reasoning effort updates
| Layer / File(s) |
Summary |
Select and apply thread settings packages/effect-codex-app-server/scripts/generate.ts, apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts, apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts |
The thread-settings schema accepts optional nullable effort. The adapter resolves selected effort and applies eligible updates from steering and model-selection paths. Tests cover effort and service-tier updates, including selections for another model. |
Carry effort into goal continuations apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts, apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts |
Goal continuation turns share accepted settings with the prior goal turn. Tests cover effort selection during a turn, between turns, and as the next turn starts. |
Preserve effort across capacity retries apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts, apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts |
Capacity retries carry accepted effort and service tier into retry settings. Tests cover retry parameters and effort selections made before or during retry startup. |
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix
Sequence Diagram(s)
sequenceDiagram
participant SteeringOrModelSelection
participant CodexAdapterV2
participant CodexAppServer
participant ActiveCodexTurnContext
SteeringOrModelSelection->>CodexAdapterV2: Request thread settings update
CodexAdapterV2->>CodexAppServer: Send thread settings update
CodexAppServer-->>CodexAdapterV2: Return update result
CodexAdapterV2->>ActiveCodexTurnContext: Record successful settings
Loading
Suggested reviewers: juliusmarminge, yash-singh1
Merge Risk: Minimal · up to 1002e · assessed changes only
-
Path filters excluded changed files. This rating applies only to the assessed changes.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the core fix: an effort selection made during a running Codex turn now reaches Codex. It matches the changeset, which extends the thread settings update path to send reasoning effort. … |
| Description check |
 |
The description follows the template. It has Problem, Change, Scope, and Verification sections, with a clear reproduction, a fix explanation, a justification for no issue, and detailed verification in… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title names the core fix: an effort selection made during a running Codex turn now reaches Codex. It matches the changeset, which extends the thread settings update path to send reasoning effort. It follows the conventional commit form and is concise.
Full details: Description check
-
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification sections, with a clear reproduction, a fix explanation, a justification for no issue, and detailed verification including live rollout logs, test counts, and a list of unchecked items. It also names the model and harness, as the template asks. The description does not include the template's before/after screenshots, but the change is backend-only, so that requirement does not apply.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between ab5842f and 1002e34.
Files selected for processing: 2
-
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…turns
A pick made between two goal turns found no active turn and was dropped,
and the next goal turn compared later picks with the run's first
selection instead of the effort Codex had accepted, so changing back was
dropped too. The held goal turn now stands in while no turn is active, and
a goal's next turn carries the speed and effort Codex accepted.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
… its turn
The retry copies its turn's settings before its next turn registers. A
pick made in between found no turn and was dropped, and the retry started
on the old effort. The pick now waits for the retry's turn.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
A goal turn that Codex started before it answered a settings update copied
the accepted effort too early and missed it, so a later change back was
dropped. The turns of a goal now share one record instead of copying it.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Evidence
Select GPT-6-Astra / Low, start a four-turn native goal running sleep 25 once per turn, then pick High during turn 1 without sending a message. Allow the goal to finish. Both sides use fresh isolated state, real Codex CLI 0.172.0, Chromium at 1280×800 CSS pixels, and light theme.
The screenshots show completion and the persisted High selection; the recordings establish the interaction, and the native rollout events establish the actual effort used. The base recording masks only the environment label.
Reproduction and seed commands · Rollout extraction script.
Not shown:
- Capacity retries: no real serverOverloaded response was forced.
- Steering during a running turn was not exercised.
- Effort selected together with a different model was not exercised.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
The automated pipeline stopped on this pull request and will not merge it:
someone else pushed to fix/codex-live-effort (head is now 1002e34); the pipeline does not build on commits it did not review
It stays open for a person to finish or close.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This branch has not been deployed
No deployments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|