mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6562] [Issue]: Agent generations can block the entire server for minutes #3677
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#3677
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 @SpicyMarinara on GitHub (Sep 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6562
Originally assigned to: @SpicyMarinara on GitHub.
Summary
After the server has been running long enough and many chats are loaded, agent generations can make the entire server unresponsive for minutes. Even
GET /api/healthfails to respond until generation completes.Expected behavior
Agent generation should not block the server; health checks and other requests should remain responsive.
Actual behavior
During agent generation, the entire server becomes unresponsive for minutes, including requests to
GET /api/health.Steps to reproduce
GET /api/healthand observe whether it responds.Environment
Logs, screenshots, or video
No logs, screenshots, or video provided. Support diagnostics report no detected freeze and a clean previous shutdown.
Additional context
Reporter says this is distinct from another issue that does not make the entire server unresponsive. They do not believe it is specific to Termux/Android: the issue was observed with Termux in the foreground and the phone awake. A proposed fix is being tested on the reporter's fork: https://github.com/luma-inibitor/Marinara-Engine/tree/patch/store-hash-join (commit
github.com/luma-inibitor/Marinara-Engine@c8623720f). Related diagnostic report: https://github.com/luma-inibitor/st-notes/blob/issue-6388-repro/marinara/issue-store-join.md. Connection provider: OpenRouter; model: deepseek/deepseek-v4-pro.Discord thread: A tracker agent query blocks the server for minutes once many chats are loaded
Discord thread link: https://discord.com/channels/1417099416812392641/1552141854563369041
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (2 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Sep 23, 2026):
SpicyMarinara / Codex is taking this fix. I traced the reported
getPreviousOutputquery to the same nested join in current staging. I am reviewing and adapting @luma-inibitor's proposed lookup-based join, with regression coverage for result ordering, filtering, and many loaded chats. The PR will target staging.