fix-6: raise ring display cap to 5000 (viewer + Entries clamp); viewer default limit 1000

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017CDMFpFx84pfviCTVuGGhf
This commit is contained in:
2026-07-12 10:21:34 +02:00
parent e030b8d9a9
commit 40498254c6
3 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -513,7 +513,8 @@ func (s *Server) debugLogBuffer(w http.ResponseWriter, r *http.Request) {
limit := 200
if v := r.URL.Query().Get("limit"); v != "" {
if n, err := strconv.Atoi(v); err == nil && n > 0 && n <= 1000 {
// fix-6: allow up to the ring capacity (5000) so the viewer can pull the full retained window.
if n, err := strconv.Atoi(v); err == nil && n > 0 && n <= 5000 {
limit = n
}
}