+ {frames.length} 帧
+ {frames.map((f, i) => {
+ // On a failed frame the action's `data` is replaced with an
+ // {type:'error'} marker and the reason moves to message/wording
+ // — render the whole frame so the reason stays visible.
+ const failed = f.status === 'failed' || (f.data as { type?: string } | undefined)?.type === 'error';
+ return (
+
+
+
+ );
+ })}
+
+ )}
+ {result && !('error' in result) && frames.length === 0 && (
+
+ )}
+ {result && 'error' in result && (
+