+
Sandbox Agent
+
+ {status === "idle" && (
+
+
+
+
+ )}
+
+ {status === "connecting" &&
Connecting to sandbox...
}
+
+ {error &&
{error}
}
+
+ {(status === "ready" || status === "thinking") && (
+ <>
+
{output}
+
+ setPrompt(e.target.value)}
+ onKeyDown={(e) => e.key === "Enter" && send()}
+ placeholder="Enter prompt..."
+ disabled={status === "thinking"}
+ />
+
+
+ >
+ )}
+
+ );
+}
+
+const styles: Record