mirror of
https://github.com/openai/codex.git
synced 2026-11-20 22:40:37 +00:00
codex: simplify multi-agent version lock
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user