HERMES-GIELIE/static
Nathan Esquenazi c0769c50a2 perf: rAF-throttled token streaming for smoother rendering
Token events from SSE now buffer and render at most once per animation
frame via requestAnimationFrame, instead of calling renderMd() and
writing to the DOM on every single token event.

Before: ~100 tokens/sec = ~100 DOM writes/sec (causes jank on heavy output)
After:  ~100 tokens/sec batched to ~60 DOM writes/sec (one per frame)

The change is a small wrapper: _scheduleRender() gates rendering behind
a rAF flag so multiple tokens arriving between frames are batched into
a single renderMd() + scrollIfPinned() call.

Inspired by PR #75 (@MartinNielsenDev).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 14:05:51 -07:00
..
boot.js fix: three UI glitches -- image error, CLI badge overlap, dropdown z-index 2026-04-04 09:09:31 -07:00
commands.js feat: token usage toggle (setting + /usage command) + timestamp fixes 2026-04-03 19:11:36 -07:00
index.html docs: v0.31 release -- UI polish + deployment hardening (#74) 2026-04-04 11:30:51 -07:00
messages.js perf: rAF-throttled token streaming for smoother rendering 2026-04-04 14:05:51 -07:00
panels.js feat: 'Show CLI sessions' toggle in Settings (#61) 2026-04-03 21:06:23 -07:00
sessions.js fix: wire up CLI session display in sidebar (3 frontend gaps) (#58) 2026-04-03 20:55:29 -07:00
style.css fix: overlay z-index clipping, CLI badge hover, workspace dropdown spacing (#71) 2026-04-04 09:34:43 -07:00
ui.js feat: token usage toggle (setting + /usage command) + timestamp fixes 2026-04-03 19:11:36 -07:00
workspace.js feat: persist workspace tree expanded state across refreshes 2026-04-03 19:11:36 -07:00