Done: the file view reads only the tail by byte range, never the whole file; says 'showing the last 1,000 of about N lines'; the link is an anchor, not script; a test with a 6 MB fixture checks memory-light reading and the sentence. Suggested: torque.
Risks: Splitting a multi-byte character at the cut: drop the partial first line.
Read AGENTS.md and docs/PRINCIPLES.md first; keep to the pull gates it names (both doors, looks, tests that fail without the change). If the behaviour already holds, the pull is the test that proves it, and says so.
Done: the file view reads only the tail by byte range, never the whole file; says 'showing the last 1,000 of about N lines'; the link is an anchor, not script; a test with a 6 MB fixture checks memory-light reading and the sentence. Suggested: torque.
Risks: Splitting a multi-byte character at the cut: drop the partial first line.
Read AGENTS.md and docs/PRINCIPLES.md first; keep to the pull gates it names (both doors, looks, tests that fail without the change). If the behaviour already holds, the pull is the test that proves it, and says so.
Files: src/web/files/, src/web/pages/browse.ts, test/log-tail-view.test.ts, docs/features/files.md