[GH-ISSUE #7697] [Issue]: Identify failed random-pool connection in fallback toast and message metadata #4250

Closed
opened 2026-10-21 06:13:27 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7697

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When a randomly selected pool connection fails, the fallback toast identifies the fallback connection and model but not the failed selection. Preserve the originally selected connection and model so users can identify failing pool members.

Expected behavior

The fallback toast should name both the failed connection/model and the fallback connection/model, ideally with a short failure reason. Message info or swipe metadata should retain the selected connection/model and the connection/model that actually produced the generation when they differ.

Actual behavior

The engine retries through the configured fallback and displays a toast, but the toast does not identify which random-pool connection failed. The model name above the message identifies the model that produced the output, so the failed selection cannot be inspected afterward.

Steps to reproduce

  1. Configure a chat to use a random connection pool and configure a fallback connection.
  2. Cause a selected pool member to fail; suggested examples include an invalid key, rate limit, server error, or timeout. The specific failure used was not provided.
  3. Generate a response and observe the retry through the fallback.
  4. Inspect the fallback toast: it identifies the fallback connection/model but not the failed pool selection.
  5. Inspect the generated message: the displayed model is the one that produced the output, with no record of the failed selection.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Not provided. The report contains a placeholder rather than the exact toast wording. No support diagnostics were supplied.

Additional context

The missing information prevents users from identifying pool members with bad keys, deprecated model IDs, or rate limits, and complicates quality comparisons and cost tracking. The reporter references v2.2.1 release notes for existing fallback connection/model identification, but does not state their installed version. As an alternative, the reporter proposes read-only extension events such as generation_connection_selected or generation_fallback carrying chatId, pickedConnectionId, pickedModel, usedConnectionId, usedModel, and reason; they report that documented sandboxed extensions lack the necessary hooks. After clarification, Marinara acknowledged the request: "Got it now. Will add the info."

Discord thread: show which connection was picked, and name the failed primary in the fallback toast
Discord thread link: https://discord.com/channels/1417099416812392641/1560323326344171570
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (9 messages)
[2026-10-15T16:07:50.406Z] Luka: When a chat uses a random connection pool and the picked connection fails, the engine retries through the fallback and shows a toast about the switch. The toast names the fallback connection and model but never says which connection was originally selected and failed. There is also no way to see afterwards which connection the pool picked for a given message.

To reproduce:
1. Set a chat to pick from a random pool of connections, with a fallback connection configured.
2. Make the randomly picked connection fail ([error type, e.g. rate limit, 5xx, timeout, or an invalid key on one pool member]).
3. The engine retries via the fallback and shows a toast. The exact toast wording is: "[paste toast text here]".
4. After generation, nothing shows which pool member was picked for that message.

Expected behavior: the fallback toast should include the failed connection's name and model, for example "[Connection A / model X] failed, switched to [Connection B / model Y]", ideally with a short failure reason. It would also help to record the connection and model that actually produced each generation, and the originally picked connection when it differs, and to show that somewhere low-key such as message info or swipe metadata.

(Continued in reply:
[Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560323326344171570]

[2026-10-15T16:07:51.055Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560323329066541190]

[2026-10-15T16:07:56.181Z] Luka: Why this matters: random pools spread load across providers. If one pool member keeps failing (bad key, deprecated model ID, rate limits), I can't tell which one, so I can't fix it. When a fallback fires, I also can't tell whether the output came from the model I expected, which affects quality comparisons and cost tracking. The v2.2.1 release notes say the toast already identifies the fallback connection and model, so the data exists at that point. This request extends it to the failed primary.

I looked at building this as a Personal Extension instead, but the documented sandboxed runtime only exposes private storage, UI contributions, and a read-only snapshot of the active chat and character IDs. There is no generation-event or connection-selection hook, and the docs say features needing this data would require a broker capability. Full page access might intercept requests, but the pick happens server-side, so the client can only see it if the response includes it. If you'd prefer to expose this to extensions, a read-only event like generation_connection_selected or generation_fallback carrying chatId, pickedConnectionId, pickedModel, usedConnectionId, usedModel, and reason would solve this and similar requests.
[Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560323350566539265]

[2026-10-15T16:33:27.007Z] Marinara: I’m confused.
[Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560329771315896351]

[2026-10-15T16:33:51.408Z] Marinara: There is only one fallback model per generation type you can set.
[Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560329873661362268]

[2026-10-15T16:34:02.457Z] Marinara: And everytime that happens you get a toast notif.
[Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560329920004096045]

[2026-10-15T16:34:19.634Z] Marinara: The model’s name is also showed above a message.
[Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560329992049791147]

[2026-10-15T16:57:07.035Z] Luka: Sorry, I wasn't clear. I'm using a random connection pool, not a single fixed model. The engine randomly picks one connection from the pool, and if that pick fails it goes to the fallback and shows the toast. The toast says the primary failed, but not which pool connection it had picked.

The model name above the message shows the one that actually produced it, which is the fallback in that case, so the failed pick isn't visible anywhere. With a pool of several models I can't tell which one is failing (bad key, wrong model ID, rate limit).
[Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560335727345016914]

[2026-10-15T18:10:05.481Z] Marinara: Got it now. Will add the info.
[Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560354091878715496]

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 (Oct 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7697 Originally assigned to: @SpicyMarinara on GitHub. ## Summary When a randomly selected pool connection fails, the fallback toast identifies the fallback connection and model but not the failed selection. Preserve the originally selected connection and model so users can identify failing pool members. ## Expected behavior The fallback toast should name both the failed connection/model and the fallback connection/model, ideally with a short failure reason. Message info or swipe metadata should retain the selected connection/model and the connection/model that actually produced the generation when they differ. ## Actual behavior The engine retries through the configured fallback and displays a toast, but the toast does not identify which random-pool connection failed. The model name above the message identifies the model that produced the output, so the failed selection cannot be inspected afterward. ## Steps to reproduce 1. Configure a chat to use a random connection pool and configure a fallback connection. 2. Cause a selected pool member to fail; suggested examples include an invalid key, rate limit, server error, or timeout. The specific failure used was not provided. 3. Generate a response and observe the retry through the fallback. 4. Inspect the fallback toast: it identifies the fallback connection/model but not the failed pool selection. 5. Inspect the generated message: the displayed model is the one that produced the output, with no record of the failed selection. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Not provided. The report contains a placeholder rather than the exact toast wording. No support diagnostics were supplied. ## Additional context The missing information prevents users from identifying pool members with bad keys, deprecated model IDs, or rate limits, and complicates quality comparisons and cost tracking. The reporter references v2.2.1 release notes for existing fallback connection/model identification, but does not state their installed version. As an alternative, the reporter proposes read-only extension events such as generation_connection_selected or generation_fallback carrying chatId, pickedConnectionId, pickedModel, usedConnectionId, usedModel, and reason; they report that documented sandboxed extensions lack the necessary hooks. After clarification, Marinara acknowledged the request: "Got it now. Will add the info." Discord thread: show which connection was picked, and name the failed primary in the fallback toast Discord thread link: https://discord.com/channels/1417099416812392641/1560323326344171570 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (9 messages)</summary> ```text [2026-10-15T16:07:50.406Z] Luka: When a chat uses a random connection pool and the picked connection fails, the engine retries through the fallback and shows a toast about the switch. The toast names the fallback connection and model but never says which connection was originally selected and failed. There is also no way to see afterwards which connection the pool picked for a given message. To reproduce: 1. Set a chat to pick from a random pool of connections, with a fallback connection configured. 2. Make the randomly picked connection fail ([error type, e.g. rate limit, 5xx, timeout, or an invalid key on one pool member]). 3. The engine retries via the fallback and shows a toast. The exact toast wording is: "[paste toast text here]". 4. After generation, nothing shows which pool member was picked for that message. Expected behavior: the fallback toast should include the failed connection's name and model, for example "[Connection A / model X] failed, switched to [Connection B / model Y]", ideally with a short failure reason. It would also help to record the connection and model that actually produced each generation, and the originally picked connection when it differs, and to show that somewhere low-key such as message info or swipe metadata. (Continued in reply: [Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560323326344171570] [2026-10-15T16:07:51.055Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560323329066541190] [2026-10-15T16:07:56.181Z] Luka: Why this matters: random pools spread load across providers. If one pool member keeps failing (bad key, deprecated model ID, rate limits), I can't tell which one, so I can't fix it. When a fallback fires, I also can't tell whether the output came from the model I expected, which affects quality comparisons and cost tracking. The v2.2.1 release notes say the toast already identifies the fallback connection and model, so the data exists at that point. This request extends it to the failed primary. I looked at building this as a Personal Extension instead, but the documented sandboxed runtime only exposes private storage, UI contributions, and a read-only snapshot of the active chat and character IDs. There is no generation-event or connection-selection hook, and the docs say features needing this data would require a broker capability. Full page access might intercept requests, but the pick happens server-side, so the client can only see it if the response includes it. If you'd prefer to expose this to extensions, a read-only event like generation_connection_selected or generation_fallback carrying chatId, pickedConnectionId, pickedModel, usedConnectionId, usedModel, and reason would solve this and similar requests. [Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560323350566539265] [2026-10-15T16:33:27.007Z] Marinara: I’m confused. [Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560329771315896351] [2026-10-15T16:33:51.408Z] Marinara: There is only one fallback model per generation type you can set. [Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560329873661362268] [2026-10-15T16:34:02.457Z] Marinara: And everytime that happens you get a toast notif. [Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560329920004096045] [2026-10-15T16:34:19.634Z] Marinara: The model’s name is also showed above a message. [Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560329992049791147] [2026-10-15T16:57:07.035Z] Luka: Sorry, I wasn't clear. I'm using a random connection pool, not a single fixed model. The engine randomly picks one connection from the pool, and if that pick fails it goes to the fallback and shows the toast. The toast says the primary failed, but not which pool connection it had picked. The model name above the message shows the one that actually produced it, which is the fallback in that case, so the failed pick isn't visible anywhere. With a pool of several models I can't tell which one is failing (bad key, wrong model ID, rate limit). [Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560335727345016914] [2026-10-15T18:10:05.481Z] Marinara: Got it now. Will add the info. [Discord message: https://discord.com/channels/1417099416812392641/1560323326344171570/1560354091878715496] ``` </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 06:13:27 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 16, 2026):

Working on this in #7720.

<!-- gh-comment-id:6211955928 --> @SpicyMarinara commented on GitHub (Oct 16, 2026): Working on this in #7720.
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#4250
No description provided.