From 2da8aa0354bee723d180cbe2525e458374377a65 Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Thu, 12 Mar 2026 23:31:48 -0700 Subject: [PATCH] better command detection --- cli/src/commands/agent_host.rs | 2 +- src/vs/platform/agentHost/node/agentHostMain.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/src/commands/agent_host.rs b/cli/src/commands/agent_host.rs index 28400a64f80..132212408e0 100644 --- a/cli/src/commands/agent_host.rs +++ b/cli/src/commands/agent_host.rs @@ -156,7 +156,7 @@ pub async fn agent_host(ctx: CommandContext, mut args: AgentHostArgs) -> Result< tokio::select! { Ok(Some(l)) = stdout.next_line() => { debug!(ctx.log, "[server stdout]: {}", l); - if l.contains("Extension host agent listening on") { + if l.contains("Agent host server listening on") { return; } } diff --git a/src/vs/platform/agentHost/node/agentHostMain.ts b/src/vs/platform/agentHost/node/agentHostMain.ts index 6a302092c36..5e14e0e7e7e 100644 --- a/src/vs/platform/agentHost/node/agentHostMain.ts +++ b/src/vs/platform/agentHost/node/agentHostMain.ts @@ -146,4 +146,6 @@ async function startWebSocketServer(agentService: AgentService, logService: ILog const listenTarget = socketPath ?? `${host}:${port}`; logService.info(`[AgentHost] WebSocket server listening on ${listenTarget}`); + // Do not change this line. The CLI looks for this in the output. + console.log(`Agent host server listening on ${listenTarget}`); }