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

Open
mjhukig wants to merge 6 commits from feature/web-katex-hot-reload into main
First-time 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.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/web-katex-hot-reload:feature/web-katex-hot-reload
git switch feature/web-katex-hot-reload

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff feature/web-katex-hot-reload
git switch feature/web-katex-hot-reload
git rebase main
git switch main
git merge --ff-only feature/web-katex-hot-reload
git switch feature/web-katex-hot-reload
git rebase main
git switch main
git merge --no-ff feature/web-katex-hot-reload
git switch main
git merge --squash feature/web-katex-hot-reload
git switch main
git merge --ff-only feature/web-katex-hot-reload
git switch main
git merge feature/web-katex-hot-reload
git push origin main
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.