Skip to content

Commit 6b9d71d

Browse files
committed
fix(frontend): render stream id from API streamId field
The OpenClaw API returns streamId, but the widget read data.id, so stream results showed "Stream #undefined". Read streamId with an id fallback.
1 parent cc97230 commit 6b9d71d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/components/openclaw/assistant-widget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function StreamResult({ data }: { data: any }) {
2929
return (
3030
<div className="space-y-2 text-xs">
3131
<div className="flex items-center justify-between">
32-
<span className="font-medium text-zinc-200">Stream #{data.id}</span>
32+
<span className="font-medium text-zinc-200">Stream #{data.streamId ?? data.id}</span>
3333
<span className={cn("font-medium", getStreamStatusColor(data.status?.code ?? data.status))}>
3434
{data.status?.label ?? getStreamStatusLabel(data.status)}
3535
</span>

0 commit comments

Comments
 (0)