fix(coding-agent/launch): surfaced pre-ready exits in TUI

The model-facing start content reported when a process exited before readiness,
but launchRenderResult rebuilt the interactive result solely from structured
details and dropped that explanation. Mirror the terminal-without-readyAt
condition in the TUI start renderer and add a renderer contract test.

Fixes #6303
This commit is contained in:
roboomp
2026-07-22 16:43:35 +00:00
parent 4a000330c6
commit 3c1fbdd3f3
2 changed files with 30 additions and 0 deletions
@@ -442,6 +442,8 @@ export function launchRenderResult(
: "Readiness timed out; the process is still running.",
),
);
} else if (params.ready && daemon && daemon.readyAt === undefined && TERMINAL_STATES[daemon.state]) {
body.push(theme.fg("warning", "Process exited before readiness was observed."));
}
break;
}