Skip to content

Commit 11d1fb0

Browse files
committed
refactor(ui): trim terminal-reason lookup to type-erased optional access
Recovers the last gzip byte of the Control UI startup budget (324609 B vs the 324608 B limit).
1 parent 32bf67c commit 11d1fb0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎ui/src/pages/chat/chat-pane-render.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ export class ChatPane extends ChatPaneBrowserAnnotationRender {
105105
});
106106
const workspaceConflict = workspaceResultConflictFromPlacement(selectedSession?.placement);
107107
const placement = selectedSession?.placement;
108-
const terminalReason =
109-
placement && "terminalReason" in placement ? placement.terminalReason : undefined;
108+
const terminalReason = (placement as { terminalReason?: string } | undefined)?.terminalReason;
110109
const placementRunError = terminalReason
111110
? { summary: t("chat.cloudWorkerFailed", { error: terminalReason }) }
112111
: null;

0 commit comments

Comments
 (0)