Remove ui/src/lib/message-renderer.ts, its test, and ui/vitest.config.ts
— not imported by any UI component. Defer to PR that wires into React.
Note on Zod schema: .default("medium").optional() ordering is kept
intentionally — swapping breaks TypeScript inference with .passthrough()
on BaseChannelSchema. Runtime behavior is correct either way (adapters
also have ?? "medium" fallback).
- Remove TODO comments from telegramRenderer/discordRenderer (not wiring — by design)
- Add renderForWeb() in ui/src/lib/message-renderer.ts: converts FormattedMessage
to typed React-friendly props (RenderedMessageProps discriminated union)
- Supports collapsible state for tool/thought/error, viewer links for tool cards
- Add vitest config for UI project + 13 unit tests for all message styles
Entire-Checkpoint: 851099cd6c25
Critical:
- Fix path traversal in StaticServer by appending path.sep to guard
- Add 1MB body size limit to readBody() in ApiServer
- Refactor useEventStream into EventStreamProvider context (singleton SSE)
- Add MAX_EVENTS (500) cap in SessionDetailPage
- Fix ConfigPage infinite loop by wrapping groups in useMemo
Important:
- Clean up SSE EventBus listeners on stop() using removeAllListeners
- Fix stop() Map iteration by spreading to array before iterating
- Add non-localhost without token security warning
- Add error handling to destructive actions in SessionDetailPage/TopicsPage
- Add error state and catch blocks in SessionsPage
- Replace module-level eventCounter with useRef
- Add role="dialog", aria-modal, and body scroll lock to Modal
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: f6c308eb2ec6
Add TopicsPage with list, delete (with force option for active sessions), and bulk cleanup for finished/error topics.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds DashboardPage with 4 stat cards (System, Sessions, Adapters, Tunnel),
live SSE health updates, and quick action buttons (View Sessions, Restart Server).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 7cb710c4745f