mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3092] [Issue]: Pre-2.0.7 chats with agents cause severe lag #1654
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#1654
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 (Jun 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3092
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Opening a chat that contains agents causes the app to take several minutes to load and becomes very laggy. Network activity shows many pending requests, and unrelated characters/personas appear to be loading for the chat.
Expected behavior
Chats should open promptly without severe lag, and only the characters/personas relevant to that chat should load.
Actual behavior
The app takes about 5 minutes to open the last viewed agent chat. Network tab shows many pending requests, some lasting over 50 seconds, and the app appears to load multiple unrelated personas/characters outside the current chat.
Steps to reproduce
Environment
Logs, screenshots, or video
Console error reported: http://127.0.0.1:7860/api/backgrounds/file/Black.jpg 404 (Not Found). Network tab showed many pending requests, some over 50 seconds. Screenshot mentioned but not attached in context; HAR available per chat but may embed chat content.
Additional context
Reporter noted the issue seems tied to chats with agents. One user said the app opens the last viewed RP chat and takes about 5 minutes before anything can be done. Another observation was that the app was loading several personas and characters not related to the current chat.
Discord thread: Pre-2.0.7 chats with agents cause severe lag
Discord thread link: https://discord.com/channels/1417099416812392641/1521505114689503272
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (29 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 (Jun 30, 2026):
the status?connectionID=xxx is getting spammed every second or so
also extensions and themes are spammed every few secodns
@SpicyMarinara commented on GitHub (Jun 30, 2026):
Fixed the clear v2.0.8/v2.0.9 lag sources in the current prep patch:\n\n- default agent prompt migration is now idempotent for already-current prompt options, so startup no longer rewrites those settings repeatedly;\n- compatible same-connection agents use one raw JSON result map for batched results instead of the previous XML wrapper shape that confused JSON-only prompts;\n- synced themes/extensions no longer refetch every 15 seconds with zero stale time;\n- Professor Mari workspace status polling is slowed to 15 seconds and skipped while the tab is hidden, while explicit workspace actions still refresh immediately.\n\nVerified with
pnpm regression:prompt,pnpm check, andpnpm version:check. If a specific upgraded chat still stalls after v2.0.9, please reopen with that chat's Network timing and agent list.