Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(preview): add reasoning preview component

Steven Enamakelbed98c5e8829
diff --git a/app/src/__preview_reasoning.html b/app/src/__preview_reasoning.html
deleted file mode 100644
index 1ccbbde72f..0000000000
--- a/app/src/__preview_reasoning.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<!doctype html>
-<html lang="en">
- <head><meta charset="UTF-8" /><title>preview</title></head>
- <body class="bg-background text-foreground"><div id="root"></div>
- <script type="module" src="/__preview_reasoning.tsx"></script></body>
-</html>
diff --git a/app/src/__preview_reasoning.tsx b/app/src/__preview_reasoning.tsx
deleted file mode 100644
index 869182bd98..0000000000
--- a/app/src/__preview_reasoning.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import './index.css';
-import { createRoot } from 'react-dom/client';
-import { ReasoningTrace } from './components/assistant-ui/elements/reasoning-trace';
-
-const TEXT = `**Reading the request**
-The user wants the reasoning boxes to use assistant-ui's static element.
-
-**Planning the change**
-- vendor \`reasoning-panel\` from the registry
-- record per-block timing in the core
-
-**Checking the edge cases**
-Legacy rows have no timing, so they settle to a plain label.`;
-const now = Date.now();
-function App() {
- return (
- <div className="mx-auto flex max-w-xl flex-col gap-8 p-8 text-sm">
- <section><h3 className="mb-2 text-xs opacity-50">streaming (collapsible)</h3>
- <ReasoningTrace texts={[TEXT]} timings={[{ startedAt: now - 7000, endedAt: now }]} streaming /></section>
- <section><h3 className="mb-2 text-xs opacity-50">settled, collapsed</h3>
- <ReasoningTrace texts={[TEXT]} timings={[{ startedAt: now - 23000, endedAt: now - 11000 }]} streaming={false} /></section>
- <section><h3 className="mb-2 text-xs opacity-50">settled, opened</h3>
- <ReasoningTrace texts={[TEXT]} timings={[{ startedAt: now - 23000, endedAt: now - 11000 }]} streaming={false} defaultOpen /></section>
- <section><h3 className="mb-2 text-xs opacity-50">non-collapsible (rail)</h3>
- <ReasoningTrace texts={[TEXT]} timings={[{ startedAt: now - 75000, endedAt: now }]} streaming={false} collapsible={false} /></section>
- </div>
- );
-}
-createRoot(document.getElementById('root')!).render(<App />);