mirror of
https://github.com/openai/codex.git
synced 2026-11-08 20:40:33 +00:00
Suppress MCP startup in watchdog handle threads
This commit is contained in:
@@ -246,13 +246,18 @@ impl ToolOutput for SpawnAgentResult {
|
||||
|
||||
async fn spawn_watchdog(
|
||||
agent_control: &crate::agent::AgentControl,
|
||||
config: Config,
|
||||
mut config: Config,
|
||||
prompt: String,
|
||||
owner_thread_id: ThreadId,
|
||||
child_depth: i32,
|
||||
interval_s: i64,
|
||||
spawn_source: SessionSource,
|
||||
) -> crate::error::Result<ThreadId> {
|
||||
config.mcp_servers.set(HashMap::new()).map_err(|err| {
|
||||
crate::error::CodexErr::UnsupportedOperation(format!(
|
||||
"failed to clear watchdog MCP servers: {err}"
|
||||
))
|
||||
})?;
|
||||
let target_thread_id = agent_control
|
||||
.spawn_agent(config.clone(), Op::Interrupt, Some(spawn_source))
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user