mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Snapshot resolved settings for each model step (#40651)
## Why Thread settings can change while a turn is running, and delegated review or compaction steps can select a different model. Each request needs a consistent set of settings resolved against the model that will execute it. ## What changed - Capture immutable resolved settings for each model step, including model metadata, reasoning options, service tier, approvals, and personality. - Keep in-flight steps on their captured settings while applying thread updates to subsequent work. - Resolve inherited reasoning summaries and filter service tiers against the selected model and feature configuration for review and compaction steps. ## Testing Added coverage for settings updates during paused turns, model changes, previous-model compaction, review-model defaults, and service-tier filtering. GitOrigin-RevId: fca4b3b305379f1bf26a5cac75ee0dd1747ac1f6
This commit is contained in:
1 parent
ba6cf9c692
commit
68301fa45f
68 files changed
+1393
-516
No files matched your search
@@ -132,7 +132,7 @@ async fn emit_exec_command_begin(ctx: ToolEventCtx<'_>, exec_input: &ExecCommand
|
||||
.analytics_events_client
|
||||
.track_artifact_operation(
|
||||
build_track_events_context(
|
||||
ctx.turn.model_info.slug.clone(),
|
||||
ctx.turn.model_info().slug.clone(),
|
||||
ctx.session.thread_id.to_string(),
|
||||
ctx.turn.sub_id.clone(),
|
||||
ctx.turn.originator.clone(),
|
||||
@@ -373,7 +373,7 @@ impl ToolEmitter {
|
||||
output: &ExecToolCallOutput,
|
||||
ctx: ToolEventCtx<'_>,
|
||||
) -> String {
|
||||
super::format_exec_output_for_model(output, ctx.turn.model_info.truncation_policy.into())
|
||||
super::format_exec_output_for_model(output, ctx.turn.model_info().truncation_policy.into())
|
||||
}
|
||||
|
||||
pub async fn finish(
|
||||
@@ -521,7 +521,7 @@ async fn emit_exec_stage(
|
||||
duration: output.duration,
|
||||
formatted_output: format_exec_output_str(
|
||||
&output,
|
||||
ctx.turn.model_info.truncation_policy.into(),
|
||||
ctx.turn.model_info().truncation_policy.into(),
|
||||
),
|
||||
status: if output.exit_code == 0 {
|
||||
ExecCommandStatus::Completed
|
||||
|
||||
Reference in new issue
Block a user