codex: simplify multi-agent version lock

This commit is contained in:
Ahmed Ibrahim
2026-06-01 13:13:16 -07:00
parent 745307ad08
commit 514afd0441
32 changed files with 107 additions and 107 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ mod tests {
thread_source: None,
base_instructions: BaseInstructions::default(),
dynamic_tools: Vec::new(),
multi_agent_version: MultiAgentVersion::V2,
multi_agent_version: Some(MultiAgentVersion::V2),
metadata: ThreadPersistenceMetadata {
cwd: None,
model_provider: "test-provider".to_string(),
@@ -283,7 +283,7 @@ impl ThreadStore for InMemoryThreadStore {
dynamic_tools: (!params.dynamic_tools.is_empty()).then(|| params.dynamic_tools.clone()),
memory_mode: matches!(params.metadata.memory_mode, ThreadMemoryMode::Disabled)
.then_some("disabled".to_string()),
multi_agent_version: Some(params.multi_agent_version),
multi_agent_version: params.multi_agent_version,
..SessionMeta::default()
};
state
+1 -1
View File
@@ -1085,7 +1085,7 @@ mod tests {
thread_source: None,
base_instructions: BaseInstructions::default(),
dynamic_tools: Vec::new(),
multi_agent_version: codex_protocol::protocol::MultiAgentVersion::None,
multi_agent_version: None,
metadata: thread_metadata(),
event_persistence_mode: ThreadEventPersistenceMode::Limited,
}
+1 -1
View File
@@ -95,7 +95,7 @@ pub struct CreateThreadParams {
/// Dynamic tools available to the thread at startup.
pub dynamic_tools: Vec<DynamicToolSpec>,
/// Multi-agent runtime selected when the thread was created.
pub multi_agent_version: MultiAgentVersion,
pub multi_agent_version: Option<MultiAgentVersion>,
/// Metadata captured for the newly created thread.
pub metadata: ThreadPersistenceMetadata,
/// Whether persistence should include the extended event surface.