The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(preview): add reasoning preview component
Steven Enamakel9797d646bf8d
diff --git a/app/src/__preview_reasoning.html b/app/src/__preview_reasoning.htmlnew file mode 100644index 0000000000..1ccbbde72f--- /dev/null+++ b/app/src/__preview_reasoning.html@@ -0,0 +1,6 @@+<!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.tsxnew file mode 100644index 0000000000..869182bd98--- /dev/null+++ b/app/src/__preview_reasoning.tsx@@ -0,0 +1,29 @@+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 />);