The metrics tiles now prefer the daemon's own sample (`resources.system`, then `info.cpu/mem/disk`) over the old RSS-over-physical-memory guess, and each tile gained the detail that makes the number actionable: cores and 1-minute load, used/total bytes, the filesystem the disk figure describes. The models card stops asking for a workspace it does not have. It calls the bare endpoint (no spawn), polls every 1.5 s while the plugin's cache is still filling (bounded to 12 rounds), and tells the three empty states apart instead of showing one generic "no models": still fetching, no live instance, no live session. With no workspace to key on, `fetchModels` also tolerates a legacy daemon that requires the parameter, retrying with the first visible workspace. Smaller fixes that fell out of the same read: `formatBytes` printed "4.00 GiB" for a whole number of GiB, and the workspaces query now polls every 5 s only while the socket is down, so a dropped connection still refreshes the page.
pi2-web
React port of the pi2 web UI prototype, built into web/dist and served statically by pi2 daemon.
Development
# Start dev server with proxy to daemon (:7676)
pnpm --dir web dev
# Typecheck
pnpm --dir web typecheck
# Run test suite
pnpm --dir web exec vitest run
# Run only changed tests or specific file
pnpm --dir web exec vitest run --changed
pnpm --dir web exec vitest run tests/chat.composer.test.tsx
# Watch mode
pnpm --dir web test
For performance tuning, concurrency settings, and DOM environment details, see docs/testing.md.