mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5657] Client hangs forever against a frozen server: no timeouts, no unreachable state #3134
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#3134
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 @kolacheee on GitHub (Aug 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5657
Originally assigned to: @kolacheee on GitHub.
What happens
When the server stops responding but connections still open — exactly what a frozen Termux host looks like (the kernel accepts the TCP connection; the frozen process never reads it) — the client hangs forever with no explanation:
fetchwith no timeout, so it never rejects and the error branch ("Could not open this chat") never runs.A Termux user reproduced this for 20+ seconds and had no signal about what was wrong; foregrounding Termux fixed it instantly. This is now a realistic everyday state on freezer-aggressive Android devices (see the background-freeze triage and #4956).
The fix
AbortSignal.timeout(~15–20s) to the chat-open fetch (useChatinpackages/client/src/hooks/use-chats.ts) and the diagnostics/healthquery.keep-alive.tsalready computes exactly that predicate.Try it yourself
kill -STOPthe server process (a faithful stand-in for the Android freezer), then open a chat and the diagnostics panel: infinite spinner, unlabeled "Unavailable", no guidance.kill -CONTrecovers instantly.Related: the
checkVersionpending-fetch leak against a frozen server is filed separately — it can wedge even requests that do carry timeouts.@kolacheee commented on GitHub (Aug 29, 2026):
Termux background-freeze follow-up family (from the 2026-08-30 triage; verdict: the battery-efficiency waves removed the ambient polling that had kept vendor freezers from classifying backgrounded Termux as dormant — see #4956 for the first field report): #5655 server freeze detector, #5656 wake-lock surfacing, #5657 client unreachable-state UX, #5658 checkVersion fetch leak, #5659 TROUBLESHOOTING corrections.
@kolacheee commented on GitHub (Aug 30, 2026):
Taking this together with #5658 (kolacheee + Claude agent) on branch fix/5657-5658-unreachable-server; draft PR to follow.