Files
ARTEX/web/scripts
mirzahasnat ac2a58dc72 feat(web): show the end of workspace files over the read limit
A text file over /api/workspace/read's 2 MiB limit could only be
downloaded, which is where long agent logs end up. The sheet now asks
the existing /api/workspace/download route for the last 256 KB with a
suffix Range request (http.ServeContent answers 206), drops the cut
first line, and shows the rest as plain text under "Showing the last
X of Y", scrolled to the end. If the bytes look binary (a NUL byte or
invalid UTF-8, the same test the read route uses) or the server sends
more than asked, the download prompt stays.
2026-12-04 14:40:33 +05:00
..