better command detection

This commit is contained in:
Connor Peet
2026-03-12 23:31:48 -07:00
parent 222bbd480e
commit 2da8aa0354
2 changed files with 3 additions and 1 deletions

View File

@@ -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;
}
}

View File

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