feat(frontend): build chronological activity timeline

This commit is contained in:
User
2026-07-14 22:56:41 +02:00
parent e0a97a01f3
commit f0f6c3c223
6 changed files with 272 additions and 26 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ export function formatModelActivity(text: string): string {
* (refreshing as the stream grows); the expand toggle reveals the full stream. Opened
* on demand from the rotating activity icon. */
export function ModelActivityPanel({ onClose }: { onClose: () => void }) {
const activity = useSessionStore((s) => s.activity);
const activityLog = useSessionStore((s) => s.activityLog);
const activity = activityLog.filter((entry) => entry.kind === "thinking");
const [expanded, setExpanded] = useState(false);
// Blank lines are markdown's paragraph separator — split on them (not on every "\n",