[GH-ISSUE #3409] [Issue]: Game Mode widget update fails when generated action exceeds 50 characters #1844

Closed
opened 2026-10-21 05:43:11 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

In Game Mode, scene analysis generated a /reputation widget update with an action string around 100 characters, but the endpoint validation allows only 50 characters. The failed update may also prevent other generated widgets from updating during scene analysis.

Expected behavior

Game Mode widget updates generated by scene analysis should either fit validation limits or be handled gracefully without failing the widget update process.

Actual behavior

The /api/game/reputation/update request returned HTTP 400 because actions.0.action exceeded the 50-character limit. Other generated widgets also did not update during scene analysis, though the map did update.

Steps to reproduce

  1. Start a Game Mode chat.
  2. Allow Game Mode to set up its own widgets, including a widget with the /reputation endpoint.
  3. Use Haiku as the agent model and Opus as the chat connection model.
  4. Run scene analysis so it attempts to update the reputation widget with a long action string.
  5. Observe the /api/game/reputation/update request failing with HTTP 400 due to the 50-character limit.

Environment

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

Logs, screenshots, or video

Request: XHR POST http://127.0.0.1:7860/api/game/reputation/update returned HTTP/1.1 400 Bad Request. Request body included action: "Revealed critical, dangerous information about Dio's secrets, increasing trust and shared danger.", npcId: "Doppio", chatId: "05tVv1i2MY0LlPRzQyrBz". Response body: error "Validation Error" with details path "actions.0.action" and message "String must contain at most 50 character(s)".

Additional context

Reporter suspects the /reputation/update validation error may interrupt scene analysis before other generated widgets can update. They also noted a possibly separate issue where a meter-only tracker could not be manually edited.

Discord thread: A Game mode widget can often break due to max character length
Discord thread link: https://discord.com/channels/1417099416812392641/1524739002731593849
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-07-09T11:28:26.532Z] Terabytes: Started a Game Mode chat today. Let it set up its own widgets. One of the widgets had an endpoint /reputation. I used Haiku as my agent model, (and Opus as chat connection model, just in case I'm misunderstanding which connection the widget update process goes through,) and it returned a string of ~100 characters. There's a max of 50 characters, so the widget update fails.

Here's the attempted update by scene analysis, with the Request body then the Response body:
` ` `
XHRPOST
http://127.0.0.1:7860/api/game/reputation/update
[HTTP/1.1 400 Bad Request 11ms]

    
actions    (1)[…]
0    {…}
action    "Revealed critical, dangerous information about Dio's secrets, increasing trust and shared danger."
npcId    "Doppio"
chatId    "05tVv1i2MY0LlPRzQyrBz"
` ` `
` ` `
XHRPOST
http://127.0.0.1:7860/api/game/reputation/update
[HTTP/1.1 400 Bad Request 11ms]

    
error    "Validation Error"
details    [ {…} ]
0    { path: "actions.0.action", message: "String must contain at most 50 character(s)" }
` ` `

Professor Mari thought this was certainly a bug and so do I
[Discord message: https://discord.com/channels/1417099416812392641/1524739002731593849/1524739002731593849]

[2026-07-09T11:39:55.490Z] Terabytes: I'm not sure if this is part of the same bug, but none of the other widgets aare updating on scene analysis, either. Map does update, the generated Widgets don't. Is it failing on /reputation/update erroring and interrupting the process before it tries to update the other widgets?
And I can't manually edit values on one tracker that's just a meter, which is a separate issue from what I reported here, I hope.
[Discord message: https://discord.com/channels/1417099416812392641/1524739002731593849/1524741892431020134]

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 (Jul 9, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3409 Originally assigned to: @SpicyMarinara on GitHub. ## Summary In Game Mode, scene analysis generated a `/reputation` widget update with an action string around 100 characters, but the endpoint validation allows only 50 characters. The failed update may also prevent other generated widgets from updating during scene analysis. ## Expected behavior Game Mode widget updates generated by scene analysis should either fit validation limits or be handled gracefully without failing the widget update process. ## Actual behavior The `/api/game/reputation/update` request returned HTTP 400 because `actions.0.action` exceeded the 50-character limit. Other generated widgets also did not update during scene analysis, though the map did update. ## Steps to reproduce 1. Start a Game Mode chat. 2. Allow Game Mode to set up its own widgets, including a widget with the `/reputation` endpoint. 3. Use Haiku as the agent model and Opus as the chat connection model. 4. Run scene analysis so it attempts to update the reputation widget with a long action string. 5. Observe the `/api/game/reputation/update` request failing with HTTP 400 due to the 50-character limit. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Request: XHR POST http://127.0.0.1:7860/api/game/reputation/update returned HTTP/1.1 400 Bad Request. Request body included action: "Revealed critical, dangerous information about Dio's secrets, increasing trust and shared danger.", npcId: "Doppio", chatId: "05tVv1i2MY0LlPRzQyrBz". Response body: error "Validation Error" with details path "actions.0.action" and message "String must contain at most 50 character(s)". ## Additional context Reporter suspects the `/reputation/update` validation error may interrupt scene analysis before other generated widgets can update. They also noted a possibly separate issue where a meter-only tracker could not be manually edited. Discord thread: A Game mode widget can often break due to max character length Discord thread link: https://discord.com/channels/1417099416812392641/1524739002731593849 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-07-09T11:28:26.532Z] Terabytes: Started a Game Mode chat today. Let it set up its own widgets. One of the widgets had an endpoint /reputation. I used Haiku as my agent model, (and Opus as chat connection model, just in case I'm misunderstanding which connection the widget update process goes through,) and it returned a string of ~100 characters. There's a max of 50 characters, so the widget update fails. Here's the attempted update by scene analysis, with the Request body then the Response body: ` ` ` XHRPOST http://127.0.0.1:7860/api/game/reputation/update [HTTP/1.1 400 Bad Request 11ms] actions (1)[…] 0 {…} action "Revealed critical, dangerous information about Dio's secrets, increasing trust and shared danger." npcId "Doppio" chatId "05tVv1i2MY0LlPRzQyrBz" ` ` ` ` ` ` XHRPOST http://127.0.0.1:7860/api/game/reputation/update [HTTP/1.1 400 Bad Request 11ms] error "Validation Error" details [ {…} ] 0 { path: "actions.0.action", message: "String must contain at most 50 character(s)" } ` ` ` Professor Mari thought this was certainly a bug and so do I [Discord message: https://discord.com/channels/1417099416812392641/1524739002731593849/1524739002731593849] [2026-07-09T11:39:55.490Z] Terabytes: I'm not sure if this is part of the same bug, but none of the other widgets aare updating on scene analysis, either. Map does update, the generated Widgets don't. Is it failing on /reputation/update erroring and interrupting the process before it tries to update the other widgets? And I can't manually edit values on one tracker that's just a meter, which is a separate issue from what I reported here, I hope. [Discord message: https://discord.com/channels/1417099416812392641/1524739002731593849/1524741892431020134] ``` </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:43:11 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 9, 2026):

Resolved in #3412, merged to staging as c3fa793. Game Mode reputation updates now accept longer generated action descriptions.

<!-- gh-comment-id:4930545228 --> @SpicyMarinara commented on GitHub (Jul 9, 2026): Resolved in #3412, merged to staging as c3fa793. Game Mode reputation updates now accept longer generated action descriptions.
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#1844
No description provided.