mirror of
https://github.com/openai/codex.git
synced 2026-04-30 17:36:40 +00:00
Keep max-depth collab tool schemas stable
This commit is contained in:
@@ -419,16 +419,10 @@ impl AgentControl {
|
||||
|
||||
async fn resume_single_agent_from_rollout(
|
||||
&self,
|
||||
mut config: crate::config::Config,
|
||||
config: crate::config::Config,
|
||||
thread_id: ThreadId,
|
||||
session_source: SessionSource,
|
||||
) -> CodexResult<ThreadId> {
|
||||
if let SessionSource::SubAgent(SubAgentSource::ThreadSpawn { depth, .. }) = &session_source
|
||||
&& *depth >= config.agent_max_depth
|
||||
{
|
||||
let _ = config.features.disable(Feature::SpawnCsv);
|
||||
let _ = config.features.disable(Feature::Collab);
|
||||
}
|
||||
let state = self.upgrade()?;
|
||||
let mut reservation = self.state.reserve_spawn_slot(config.agent_max_threads)?;
|
||||
let (session_source, agent_metadata) = match session_source {
|
||||
|
||||
Reference in New Issue
Block a user