mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-06 04:14:15 +00:00
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.