fix(terminal): refit after fonts load

This commit is contained in:
Gabriel Brown
2026-07-10 17:06:33 -04:00
parent 0b5a2c0411
commit 75d06394ce
4 changed files with 114 additions and 10 deletions
+24
View File
@@ -0,0 +1,24 @@
# Task 11 Report
## Status
Implemented terminal fit scheduling for the first animation frame, `document.fonts.ready`, and Nerd Font loading. Each successful, non-aborted fit also sends the current terminal dimensions to the worker. Nerd Font completion still refreshes the terminal glyph rows.
## TDD evidence
- RED: `cd apps/next && bun run test:unit -- terminal-fit` failed with `Cannot find package '@/components/agent-workspace/terminal-fit'` before the helper existed.
- GREEN: the same focused command passed 1 file and 2 tests after adding `scheduleTerminalFits`.
## Verification
- `cd apps/next && bun run test:unit -- terminal-fit`: PASS, 1 file / 2 tests.
- `cd apps/next && bun run test:unit`: PASS, 4 files / 10 tests.
- `cd apps/next && bun run typecheck`: PASS.
- `cd apps/next && bun run format`: PASS.
- `cd apps/next && bun run lint`: PASS, with the existing stale `baseline-browser-mapping` data warning.
- `cd apps/next && bun run test:component`: BLOCKED before test collection. This isolated worktree's root `node_modules` symlink resolves to `/home/gib/Documents/Code/Spoon/node_modules`, causing Vitest to look for `/home/gib/Documents/Code/Spoon/tools/vitest/setup-jsdom.ts` instead of the worktree setup file.
## Concerns
- No implementation concerns found.
- The component-suite worktree dependency-resolution issue remains external to this task.