Keep max-depth collab tool schemas stable

This commit is contained in:
Friel
2026-04-04 01:12:31 +00:00
parent 9d48bd4dc3
commit 679de088a3
4 changed files with 12 additions and 21 deletions

View File

@@ -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 {