feat(web): render KaTeX math with stable hot reload #1

Merged
pp merged 6 commits from feature/web-katex-hot-reload into main 2026-07-31 17:51:23 +00:00
Contributor

Summary

  • render inline and display TeX in web transcripts with KaTeX, including fractions, roots, integrals, matrices, and common delimiter forms
  • preserve literal code spans and avoid treating ordinary currency as math
  • add an isolated Vite hot frontend that can attach to an already-running daemon, preserving active sessions and chat history
  • add a direnv-backed, pinned Bun 1.3.14 development shell that preserves standalone bun build --compile output

Verification

  • bun test web/src/components/Markdown.test.tsx src/webui/server/hotFrontend.test.ts src/webui/server/index.test.ts src/webui/server/networkResilience.test.ts — 21 passed
  • bun test --cwd web — 194 passed
  • bun run build — passed; standalone binary starts and reports version 1.5.64
  • nix flake check --print-build-logs — passed
  • live hot-frontend restart replaced only the Vite process while leaving the daemon and active agents running

Existing suite failures

The full repository run completed with 1,299 passing and 3 unrelated failures in scripts/bench-turn-compaction-retention.test.ts and src/ink/memoryCaches.test.ts. None of those files are changed by this branch.

## Summary - render inline and display TeX in web transcripts with KaTeX, including fractions, roots, integrals, matrices, and common delimiter forms - preserve literal code spans and avoid treating ordinary currency as math - add an isolated Vite hot frontend that can attach to an already-running daemon, preserving active sessions and chat history - add a direnv-backed, pinned Bun 1.3.14 development shell that preserves standalone `bun build --compile` output ## Verification - `bun test web/src/components/Markdown.test.tsx src/webui/server/hotFrontend.test.ts src/webui/server/index.test.ts src/webui/server/networkResilience.test.ts` — 21 passed - `bun test --cwd web` — 194 passed - `bun run build` — passed; standalone binary starts and reports version 1.5.64 - `nix flake check --print-build-logs` — passed - live hot-frontend restart replaced only the Vite process while leaving the daemon and active agents running ## Existing suite failures The full repository run completed with 1,299 passing and 3 unrelated failures in `scripts/bench-turn-compaction-retention.test.ts` and `src/ink/memoryCaches.test.ts`. None of those files are changed by this branch.
pp merged commit 563989b0a1 into main 2026-07-31 17:51:23 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pp/cute-code!1
No description provided.