+ )}
+
+ {/* Completed state */}
+ {isCompletedStatus && !error && (
+
+ {/* Copying state */}
+ {status === "copying" && !isPendingAbort && (
+
+
+
+
+ {statusText ?? "Grabbing\u2026"}
+
+
+ {hasAgent && inputValue && (
+
+
+
+ )}
+
+ )}
+
+ {/* Pending abort */}
+ {status === "copying" && isPendingAbort &&
}
+
+ {/* Idle state (no prompt) */}
+ {canInteract && !isPromptMode && (
+
+ )}
+
+ {/* Prompt mode */}
+ {canInteract && isPromptMode && !isPendingDismiss && (
+
+
+
+
+
+ {replyToPrompt && (
+
+
+
+ {replyToPrompt}
+
+
+ )}
+
+
+ {inputValue || (
+ Add context
+ )}
+
+
+
+
+
+
+
+ )}
+
+ {/* Pending dismiss */}
+ {isPendingDismiss &&
}
+
+ {/* Error state */}
+ {error && (
+
+ )}
+