[GH-ISSUE #100] Hierarchical Maps: reasoning-model map drafts truncate; connection Max Output Tokens ignored #49

Closed
opened 2026-10-20 17:23:51 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/100

Mirrors Marinara-Engine #4026.

In GM/Roleplay Hierarchical Maps, map-draft generation uses small hardcoded per-size output budgets (small 6k / medium 10k / large 16k). Reasoning-heavy models (e.g. glm-*:thinking) spend most of that budget on hidden thinking, so the visible JSON is cut off and rejected as invalid. Raising the connection's Max Output Tokens does not help, because the Engine only uses that setting to cap the request (min(request, override)), never to raise it — and the capability can't read the connection's Max Output Tokens through the host abstraction.

Also, all draft failures surface the same generic "The AI could not create a valid map draft" message, so users can't tell truncation from a structural problem.

Fix: raise the per-size request budgets so a higher connection Max Output Tokens actually takes effect (while a lower one is still respected via the Engine cap), and distinguish the draft failure modes in the error message.

Originally created by @SpicyMarinara on GitHub (Jul 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/100 Mirrors [Marinara-Engine #4026](https://github.com/Pasta-Devs/Marinara-Engine/issues/4026). In GM/Roleplay Hierarchical Maps, map-draft generation uses small hardcoded per-size output budgets (small 6k / medium 10k / large 16k). Reasoning-heavy models (e.g. `glm-*:thinking`) spend most of that budget on hidden thinking, so the visible JSON is cut off and rejected as invalid. Raising the connection's Max Output Tokens does not help, because the Engine only uses that setting to *cap* the request (`min(request, override)`), never to raise it — and the capability can't read the connection's Max Output Tokens through the host abstraction. Also, all draft failures surface the same generic "The AI could not create a valid map draft" message, so users can't tell truncation from a structural problem. Fix: raise the per-size request budgets so a higher connection Max Output Tokens actually takes effect (while a lower one is still respected via the Engine cap), and distinguish the draft failure modes in the error message.
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-Agents#49
No description provided.