From 9b5702a81c0b1bdb6d3100ddc581bfc7f284df2b Mon Sep 17 00:00:00 2001 From: mawkone Date: Sat, 16 May 2026 13:16:17 -0700 Subject: [PATCH] fix(ai): actually throw probe error out of probeDevServerReadiness so AI captures the failure synchronously --- vibn-frontend/lib/dev-container.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vibn-frontend/lib/dev-container.ts b/vibn-frontend/lib/dev-container.ts index e689e7f..4175317 100644 --- a/vibn-frontend/lib/dev-container.ts +++ b/vibn-frontend/lib/dev-container.ts @@ -767,6 +767,7 @@ export async function probeDevServerReadiness( `UPDATE fs_dev_servers SET state = 'failed' WHERE id = $1 AND project_id = $2 AND state != 'stopped'`, [serverId, projectId], ); + throw new Error(`Probe failed with exit code ${r.exitCode}: ${r.stdout}`); } } catch (err) { console.error( @@ -782,6 +783,7 @@ export async function probeDevServerReadiness( `UPDATE fs_dev_servers SET state = 'failed' WHERE id = $1 AND project_id = $2 AND state != 'stopped'`, [serverId, projectId], ); + throw err; } }