mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1277] [Issue]: 429 rate-limit retry storm freezes the UI when the autonomous scheduler runs with multiple tabs open #624
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#624
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GetBeholder on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1277
Originally assigned to: @cha1latte on GitHub.
Summary
With the autonomous scheduler running (
server-autonomous-scheduler.service)and Marinara Engine open in two browser tabs, the app gets into a 429 "Too Many
Requests" retry storm: requests such as
GET /api/chatsandPATCH /api/chat-folders/{id}repeatedly return 429 and are retried in a tightloop, rendering the UI unusable in both tabs. Restarting the backend did not
clear it (the open tabs immediately resumed). Triggered twice. The reporter
rates this as non-critical / fringe.
Expected behavior
When the backend returns 429, the client should back off (ideally honoring
Retry-After), avoid a tight retry loop across multiple tabs, and keep the UIusable rather than freezing. Repeated 429s should not be able to lock the app.
Actual behavior
The clients retry 429 responses repeatedly; with two tabs open (and the
autonomous scheduler also generating traffic) this sustains a 429 storm. The
backend keeps returning 429 and the UI becomes unusable on both tabs. Restarting
the backend kept it in the loop state because the open tabs immediately resumed
hammering the endpoint.
Steps to reproduce
server-autonomous-scheduler.service).GET /api/chatsandPATCH /api/chat-folders/{id}, retried in a loop; both tabs' UIs becomeunusable.
Impact area
Environment
127.0.0.1:7860, accessed via browser (two tabs). Backend logs are Fastify/pino (Node); hostname "phoenix"..service, SIGINT) — not explicitly stated127.0.0.1:7860Logs, screenshots, or video
Browser console:
Backend (pino), looping until SIGINT:
Regression notes
Not provided.
Additional context
Source: forum report by Era [GS] (2-Star), ~7:27 AM yesterday. The reporter notes
this is not critical and they couldn't pinpoint where it happens in the code, but
filed it so the team can decide whether to control this fringe behavior.
Triage pointers (from a scan, not from the reporter):
src/features/catalog/chats/hooks/use-chats.ts(~L112-117)explicitly treats 429 as retryable up to 10 attempts with exponential backoff
capped at 5s, with no cross-tab coordination and no
Retry-Afterhandling.With multiple tabs and additional autonomous traffic, several queries/mutations
each retrying on 429 can sustain a request storm.
src/engine/modes/chat/autonomous/autonomous.service.ts(andsrc/features/modes/conversation/hooks/autonomous/use-autonomous-messaging.ts).Whether
server-autonomous-scheduler.serviceis this feature or the reporter'sown systemd unit running the server is unconfirmed.
Node backend that implements rate limiting, but the current refactor Rust
runtime (
src-tauri/src/http_server.rs) does not appear to implement 429 ratelimiting. The reporter may be on an older or different self-hosted backend.
Maintainers should confirm which backend is in scope; the client-side retry
behavior above is present in the current refactor regardless.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (May 26, 2026):
fixed in #1318