[GH-ISSUE #3092] [Issue]: Pre-2.0.7 chats with agents cause severe lag #1654

Closed
opened 2026-10-21 05:41:21 +07:00 by bsakaguchi · 2 comments
Owner

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

  1. Open a pre-2.0.7 chat that contains agents.
  2. Observe the load time and DevTools Network tab while the chat opens.
  3. Check whether unrelated characters/personas are being loaded and whether many requests remain pending.

Environment

  • Marinara Engine version: Pre-2.0.7
  • Install type: Not provided
  • OS + version: Windows desktop (local llm via koboldcpp)
  • Browser or app shell: Desktop app / browser shell not provided

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)
[2026-06-30T13:18:07.540Z] kolache: will update with Issue and work on PR today

in the meantime, create new chats or use old ones that do not have agents
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521505114689503272]

[2026-06-30T13:51:04.275Z] kolache: @AgentX @ᑎ ᗩ T T O or anyone else experiencing this, are you available rn and have ME open and can help with troubleshooting rq
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513405717024839]

[2026-06-30T13:52:12.794Z] AgentX: i can open it up, give me a minute
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513693106671789]

[2026-06-30T13:52:17.778Z] ᑎ ᗩ T T O: yeah i'm here
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513714010951711]

[2026-06-30T13:52:25.957Z] kolache: first are yall desktop or mobile users
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513748316291093]

[2026-06-30T13:52:40.353Z] AgentX: desktop for me, windows, local llm via koboldcpp
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513808697233408]

[2026-06-30T13:52:43.296Z] kolache: thank god
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513821041328148]

[2026-06-30T13:52:49.625Z] kolache: nvm natto you probs not needed then ty tho
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513847587078196]

[2026-06-30T13:53:15.419Z] ᑎ ᗩ T T O: oh i'm desktop too but 🫡 good luck ty for looking into it ♥
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513955774693427]

[2026-06-30T13:53:35.015Z] AgentX: it takes like 5 minutes to open now, because it opens my last viewed thing which was my rp chat, so it'll take a bit before i can do anything
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514037966540830]

[2026-06-30T13:53:42.512Z] kolache: that's fine stay in the laggy chat
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514069410971851]

[2026-06-30T13:53:56.915Z] kolache: what I need you to do is go into DevTools (press f12 on keyboard) then click the Network tab
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514129821536286]

[2026-06-30T13:54:08.322Z] kolache: do you see anything in there
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514177666089073]

[2026-06-30T13:54:33.800Z] AgentX: I need to reload the page, because if I open devtools after the page is running, it doesn't show anything, 1 sec
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514284528697355]

[2026-06-30T13:55:28.669Z] AgentX: yeah, i see all kinds of stuff now in network
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514514665701388]

[2026-06-30T13:55:43.486Z] AgentX: what am i looking for?
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514576812835048]

[2026-06-30T13:55:45.251Z] kolache: is a specific one or a couple getting spammed?
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514584215654400]

[2026-06-30T13:56:17.597Z] AgentX: no spam, a lot of pending
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514719884738661]

[2026-06-30T13:56:39.550Z] AgentX: some > 50 seconds
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514811962167469]

[2026-06-30T13:56:47.693Z] kolache: hmm can you screenshot it please and also check the Console tab and see if you get a bunch of warnings
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514846116384871]

[2026-06-30T13:56:58.724Z] kolache: you can dm me the screenshot if you dont want to post for any reason
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514892383879269]

[2026-06-30T13:57:15.142Z] AgentX: can I send you the xhr?
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514961245831238]

[2026-06-30T13:57:38.628Z] AgentX: I mean har
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521515059753517219]

[2026-06-30T13:59:20.573Z] AgentX: only console error is  http://127.0.0.1:7860/api/backgrounds/file/Black.jpg 404 (Not Found)

[attached image 1: http://127.0.0.1:7860/api/backgrounds/file/Black.jpg]
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521515487341711390]

[2026-06-30T14:00:17.836Z] kolache: ye you can send me the HAR but it does embed chat content if you care
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521515727520272404]

[2026-06-30T14:00:31.144Z] AgentX: not sure screenshot will show everything, but it looks like it's loading characters and personas that aren't in the chat
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521515783338065993]

[2026-06-30T14:00:34.056Z] kolache: works for me but if you are like a super private person maybe you dont want that
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521515795551617134]

[2026-06-30T14:00:54.179Z] AgentX: it's loading every persona and character in my app (even outside of this chat)
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521515879953727498]

[2026-06-30T14:01:41.706Z] AgentX: well, not all, but several chars and personas not related to this chat
[Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521516079296548915]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
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 1. Open a pre-2.0.7 chat that contains agents. 2. Observe the load time and DevTools Network tab while the chat opens. 3. Check whether unrelated characters/personas are being loaded and whether many requests remain pending. ## Environment - Marinara Engine version: Pre-2.0.7 - Install type: Not provided - OS + version: Windows desktop (local llm via koboldcpp) - Browser or app shell: Desktop app / browser shell not provided ## 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) <details> <summary>Discord thread transcript (29 messages)</summary> ```text [2026-06-30T13:18:07.540Z] kolache: will update with Issue and work on PR today in the meantime, create new chats or use old ones that do not have agents [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521505114689503272] [2026-06-30T13:51:04.275Z] kolache: @AgentX @ᑎ ᗩ T T O or anyone else experiencing this, are you available rn and have ME open and can help with troubleshooting rq [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513405717024839] [2026-06-30T13:52:12.794Z] AgentX: i can open it up, give me a minute [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513693106671789] [2026-06-30T13:52:17.778Z] ᑎ ᗩ T T O: yeah i'm here [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513714010951711] [2026-06-30T13:52:25.957Z] kolache: first are yall desktop or mobile users [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513748316291093] [2026-06-30T13:52:40.353Z] AgentX: desktop for me, windows, local llm via koboldcpp [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513808697233408] [2026-06-30T13:52:43.296Z] kolache: thank god [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513821041328148] [2026-06-30T13:52:49.625Z] kolache: nvm natto you probs not needed then ty tho [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513847587078196] [2026-06-30T13:53:15.419Z] ᑎ ᗩ T T O: oh i'm desktop too but 🫡 good luck ty for looking into it ♥ [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521513955774693427] [2026-06-30T13:53:35.015Z] AgentX: it takes like 5 minutes to open now, because it opens my last viewed thing which was my rp chat, so it'll take a bit before i can do anything [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514037966540830] [2026-06-30T13:53:42.512Z] kolache: that's fine stay in the laggy chat [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514069410971851] [2026-06-30T13:53:56.915Z] kolache: what I need you to do is go into DevTools (press f12 on keyboard) then click the Network tab [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514129821536286] [2026-06-30T13:54:08.322Z] kolache: do you see anything in there [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514177666089073] [2026-06-30T13:54:33.800Z] AgentX: I need to reload the page, because if I open devtools after the page is running, it doesn't show anything, 1 sec [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514284528697355] [2026-06-30T13:55:28.669Z] AgentX: yeah, i see all kinds of stuff now in network [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514514665701388] [2026-06-30T13:55:43.486Z] AgentX: what am i looking for? [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514576812835048] [2026-06-30T13:55:45.251Z] kolache: is a specific one or a couple getting spammed? [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514584215654400] [2026-06-30T13:56:17.597Z] AgentX: no spam, a lot of pending [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514719884738661] [2026-06-30T13:56:39.550Z] AgentX: some > 50 seconds [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514811962167469] [2026-06-30T13:56:47.693Z] kolache: hmm can you screenshot it please and also check the Console tab and see if you get a bunch of warnings [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514846116384871] [2026-06-30T13:56:58.724Z] kolache: you can dm me the screenshot if you dont want to post for any reason [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514892383879269] [2026-06-30T13:57:15.142Z] AgentX: can I send you the xhr? [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521514961245831238] [2026-06-30T13:57:38.628Z] AgentX: I mean har [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521515059753517219] [2026-06-30T13:59:20.573Z] AgentX: only console error is http://127.0.0.1:7860/api/backgrounds/file/Black.jpg 404 (Not Found) [attached image 1: http://127.0.0.1:7860/api/backgrounds/file/Black.jpg] [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521515487341711390] [2026-06-30T14:00:17.836Z] kolache: ye you can send me the HAR but it does embed chat content if you care [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521515727520272404] [2026-06-30T14:00:31.144Z] AgentX: not sure screenshot will show everything, but it looks like it's loading characters and personas that aren't in the chat [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521515783338065993] [2026-06-30T14:00:34.056Z] kolache: works for me but if you are like a super private person maybe you dont want that [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521515795551617134] [2026-06-30T14:00:54.179Z] AgentX: it's loading every persona and character in my app (even outside of this chat) [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521515879953727498] [2026-06-30T14:01:41.706Z] AgentX: well, not all, but several chars and personas not related to this chat [Discord message: https://discord.com/channels/1417099416812392641/1521505114689503272/1521516079296548915] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:41:21 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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

<!-- gh-comment-id:4844536393 --> @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
Author
Owner

@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, and pnpm version:check. If a specific upgraded chat still stalls after v2.0.9, please reopen with that chat's Network timing and agent list.

<!-- gh-comment-id:4844729823 --> @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`, and `pnpm version:check`. If a specific upgraded chat still stalls after v2.0.9, please reopen with that chat's Network timing and agent list.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1654
No description provided.