You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(admin): use cursor-based pagination for API request log download (#2259)
* fix(admin): use cursor-based pagination for API request log download
The download endpoint loaded all rows into memory at once, causing
Vercel OOM kills for users with many API requests. Switch to
cursor-based pagination (batches of 100) with backpressure-aware
stream draining so only one batch is in memory at a time.
* fix: propagate pagination errors to the response stream
Address review comment: if a batch query or archive.finalize() fails,
destroy the passthrough stream so the error surfaces to the client
instead of hanging until timeout.
* feat(admin): add optional model filter to API request log download
Adds an optional 'model' query parameter to filter the download by a
specific model. When not set, all models are included (existing behavior).
* fix(admin): sanitize model name in download filename
Replace / and : in the model name so the ZIP filename is safe for
all filesystems.
---------
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
Co-authored-by: Christiaan Arnoldus <christiaan@kilocode.ai>
0 commit comments