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}`); }