mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6349] [Issue]: Last active agent stalls and cannot be cancelled #3546
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#3546
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 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6349
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The last or only active agent remains processing for an extended period. Attempting to cancel it locks the application for nearly a minute and may fail after the agent finishes on its own.
Expected behavior
Agents should finish normally, and users should be able to cancel active agents immediately without locking the application.
Actual behavior
Whichever agent runs last, including an agent running by itself, stalls while processing. Cancelling locks the application for almost a minute and then reports "could not stop active agents" because the agent completed during the delay.
Steps to reproduce
Environment
7d04ebc48c)Logs, screenshots, or video
Reported error: "could not stop active agents". Support diagnostics report no detected freeze. No screenshots or video provided.
Additional context
Reproduced with World State, Character Tracker, Quest Tracker, and Inventory Tracker. The last-triggered agent stalls even when it is the only tracker running. Active connection was Deepseek through OpenRouter using deepseek/deepseek-v4-flash. Agent versions were not provided.
Discord thread: Agents Stall Completely
Discord thread link: https://discord.com/channels/1417099416812392641/1550689737306800229
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (5 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 19, 2026):
Owner: @SpicyMarinara, assisted by Codex. Taking this report in the issue sweep tracked by draft PR #6359. I will trace the affected path, keep the fix small, and record the relevant regression proof before merging to staging.
@SpicyMarinara commented on GitHub (Sep 19, 2026):
Merged to staging in #6359. Agent completions now stop at the terminal SSE frame even when the provider keeps HTTP open. Both completion and streaming paths cancel their readers, and unfinished responses remain cancellable. Provider regressions pass. The reported physical Termux/OpenRouter setup remains a manual retest.