Skip to content

Commit be90a1a

Browse files
author
Scion Agent (harness-build-blocker-fix)
committed
fix: correct runId JSON key mismatch in build polling
1 parent d8b7fc6 commit be90a1a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

web/src/components/pages/harness-config-detail.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ export class ScionPageHarnessConfigDetail extends LitElement {
519519
}
520520

521521
const result = await response.json();
522-
this.buildRunId = result.run_id ?? '';
522+
this.buildRunId = result.runId ?? '';
523523
this.startBuildPolling();
524524
} catch (err) {
525525
this.buildError = err instanceof Error ? err.message : 'Failed to start build';
@@ -542,7 +542,12 @@ export class ScionPageHarnessConfigDetail extends LitElement {
542542
}
543543

544544
private async pollBuildStatus(): Promise<void> {
545-
if (!this.buildRunId) return;
545+
if (!this.buildRunId) {
546+
this.buildRunning = false;
547+
this.buildStatus = 'failed';
548+
this.buildError = 'Build started but no run ID was returned';
549+
return;
550+
}
546551

547552
try {
548553
const resp = await apiFetch(

0 commit comments

Comments
 (0)