[GH-ISSUE #4765] [Issue]: Conversation mode group response orchestrator is capped at 512 tokens and fails selection #2623

Closed
opened 2026-10-21 05:51:38 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The conversation mode group response orchestrator appears to use the chat's default connection instead of the default agent connection. Requests are capped at 512 tokens, causing local models such as Gemma to be truncated while thinking and resulting in failed character selection.

Expected behavior

The orchestrator should use the default agent connection, or a configurable connection, and fully respect that connection's parameter overrides such as token limits, temperature, and thinking settings. It should complete orchestration and return valid character IDs.

Actual behavior

The orchestrator sends requests with max_tokens set to 512 and appears to use the chat connection. The response can be truncated while the model is still thinking, after which the selector returns no valid character IDs and the system falls back to Tasha.

Steps to reproduce

  1. Use conversation mode group response orchestration with a local model such as Gemma through KoboldCPP.
  2. Trigger a group response that requires the orchestrator to select characters.
  3. Inspect the KoboldCPP and Marinara Engine logs.
  4. Observe a request with max_tokens set to 512, followed by a selector failure and fallback response.

Environment

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

Logs, screenshots, or video

KoboldCPP request excerpt: {"stream": false, "max_tokens": 512, "temperature": 0.2, "top_p": 1}. Marinara Engine log excerpts: "[group-smart] Selector returned no valid character IDs" and "[group-smart] Falling back to Tasha for chat -cMOK6LfyoquNJ1DuRwY9 after selector produced no queue". No screenshots or video were provided.

Additional context

This issue is reported to occur frequently, particularly with semi-dumb local models such as Gemma. Marinara Engine has hidden/system agents or background LLM orchestration systems that should use the default agent connection or support configurable connections while respecting connection-specific parameter overrides.

Discord thread: [Bug] Conversation Mode Group Response Orchestrator fails constantly
Discord thread link: https://discord.com/channels/1417099416812392641/1535691941130272778
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-08-08T16:51:30.542Z] Kat: The conversation mode group response orchestrator seems to have a hard cap of 512 tokens, which gets nipped while still thinking on semi-dumb local models like Gemma. It ***looks*** like it is relying on the chat's default connection, instead of the default connection for agents. 

This class of issue comes up a lot. ME has a lot of hidden/system agents (or if they aren't "agents", then "systems that make calls to an LLM to orchestrate background tasks), and all of them should either use the default agent connection or allow their connection to be configured, fully respecting that connection's parameter overrides (temp, thinking, etc), rather than use the chat's connection.
[Discord message: https://discord.com/channels/1417099416812392641/1535691941130272778/1535691941130272778]

[2026-08-08T16:53:56.740Z] Kat: From KoboldCPP Log for the orchestrator:
` ` `
..., "stream": false, "max_tokens": 512, "temperature": 0.2, "top_p": 1}
` ` `

From ME Log:
` ` `{"level":40,"time":1786207800452,"pid":28816,"hostname":"melchior","chatId":"-cMOK6LfyoquNJ1DuRwY9","raw":"<|channel>thought\n*   Kat: \"nice nice nice\" (responding to Paige's research quest).\n    *   Current State: Kat just acknowledged Paige's update.\n\n    *   Tasha: Online, free time, sarcastic/expressive/socially easygoing.\n    *   Paige: DND (bookstore hopping), bubbly/earnest/scholarly.\n    *   Graves: DND (babysitting), sarcastic/blunt/deadpan.\n    *   Holliday: DND (OSIC inquiries), blunt/terse/no-nonsense.\n    *   Silver: Online, late night tracking, cynical/dry.\n\n    *   Tasha is online and w","msg":"[group-smart] Selector returned no valid character IDs"}

{"level":40,"time":1786207800452,"pid":28816,"hostname":"melchior","msg":"[group-smart] Falling back to Tasha for chat -cMOK6LfyoquNJ1DuRwY9 after selector produced no queue"}` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1535691941130272778/1535692554329268326]

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 (Aug 8, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4765 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The conversation mode group response orchestrator appears to use the chat's default connection instead of the default agent connection. Requests are capped at 512 tokens, causing local models such as Gemma to be truncated while thinking and resulting in failed character selection. ## Expected behavior The orchestrator should use the default agent connection, or a configurable connection, and fully respect that connection's parameter overrides such as token limits, temperature, and thinking settings. It should complete orchestration and return valid character IDs. ## Actual behavior The orchestrator sends requests with max_tokens set to 512 and appears to use the chat connection. The response can be truncated while the model is still thinking, after which the selector returns no valid character IDs and the system falls back to Tasha. ## Steps to reproduce 1. Use conversation mode group response orchestration with a local model such as Gemma through KoboldCPP. 2. Trigger a group response that requires the orchestrator to select characters. 3. Inspect the KoboldCPP and Marinara Engine logs. 4. Observe a request with max_tokens set to 512, followed by a selector failure and fallback response. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video KoboldCPP request excerpt: {"stream": false, "max_tokens": 512, "temperature": 0.2, "top_p": 1}. Marinara Engine log excerpts: "[group-smart] Selector returned no valid character IDs" and "[group-smart] Falling back to Tasha for chat -cMOK6LfyoquNJ1DuRwY9 after selector produced no queue". No screenshots or video were provided. ## Additional context This issue is reported to occur frequently, particularly with semi-dumb local models such as Gemma. Marinara Engine has hidden/system agents or background LLM orchestration systems that should use the default agent connection or support configurable connections while respecting connection-specific parameter overrides. Discord thread: [Bug] Conversation Mode Group Response Orchestrator fails constantly Discord thread link: https://discord.com/channels/1417099416812392641/1535691941130272778 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-08-08T16:51:30.542Z] Kat: The conversation mode group response orchestrator seems to have a hard cap of 512 tokens, which gets nipped while still thinking on semi-dumb local models like Gemma. It ***looks*** like it is relying on the chat's default connection, instead of the default connection for agents. This class of issue comes up a lot. ME has a lot of hidden/system agents (or if they aren't "agents", then "systems that make calls to an LLM to orchestrate background tasks), and all of them should either use the default agent connection or allow their connection to be configured, fully respecting that connection's parameter overrides (temp, thinking, etc), rather than use the chat's connection. [Discord message: https://discord.com/channels/1417099416812392641/1535691941130272778/1535691941130272778] [2026-08-08T16:53:56.740Z] Kat: From KoboldCPP Log for the orchestrator: ` ` ` ..., "stream": false, "max_tokens": 512, "temperature": 0.2, "top_p": 1} ` ` ` From ME Log: ` ` `{"level":40,"time":1786207800452,"pid":28816,"hostname":"melchior","chatId":"-cMOK6LfyoquNJ1DuRwY9","raw":"<|channel>thought\n* Kat: \"nice nice nice\" (responding to Paige's research quest).\n * Current State: Kat just acknowledged Paige's update.\n\n * Tasha: Online, free time, sarcastic/expressive/socially easygoing.\n * Paige: DND (bookstore hopping), bubbly/earnest/scholarly.\n * Graves: DND (babysitting), sarcastic/blunt/deadpan.\n * Holliday: DND (OSIC inquiries), blunt/terse/no-nonsense.\n * Silver: Online, late night tracking, cynical/dry.\n\n * Tasha is online and w","msg":"[group-smart] Selector returned no valid character IDs"} {"level":40,"time":1786207800452,"pid":28816,"hostname":"melchior","msg":"[group-smart] Falling back to Tasha for chat -cMOK6LfyoquNJ1DuRwY9 after selector produced no queue"}` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1535691941130272778/1535692554329268326] ``` </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:51:38 +07:00
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#2623
No description provided.