[GH-ISSUE #3137] [Issue]: [2.0.8] Game Mode: HTTP 400 Bad Request generating a new map from long context after GM chat turn #1684

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Imported from the Discord thread "[2.0.8] Game Mode: HTTP 400 Bad Request generating a new map from long context after GM chat turn".

Expected behavior

Not provided in the Discord context.

Actual behavior

See the Discord context transcript below.

Steps to reproduce

  1. Not provided in the Discord context.

Environment

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

Logs, screenshots, or video

See any attachment links and screenshots in the context below.

Additional context

This issue was created automatically from Discord support context.

Discord thread: [2.0.8] Game Mode: HTTP 400 Bad Request generating a new map from long context after GM chat turn
Discord thread link: https://discord.com/channels/1417099416812392641/1521711181193023498
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-07-01T02:56:57.623Z] underslung: * OS: Linux
* Install: container 
* Version: 2.0.7, 2.0.8 (present in both)
* Mode: Game Mode

In Game Mode, after having a GM chat, I tried to generate a map by clicking the Magic Wand icon on the floating map window. No map was generated.

Inspecting the request, the following was POSTed:
` ` `
{"chatId":"tLnOGQG2DUBFDxZY6xAN9","locationType":"The Gullet","context":"Location: The Gullet\nWeather: stormy\nScene: [Talk-to-GM]\n\nGood instinct to check — this is exactly the kind of fork worth thinking through before committing turns.!!!SNIP: 2105 characters!!!Your call — want to spend part of your four hours on the coil, or head upstairs to rest/prep for Tier 2?"}
` ` `

Note `!!!SNIP: 2105 characters!!!` removed above, to get this under Discord post character limit.

The server response was:
` ` `
{
    "error": "Validation Error",
    "details": [
        {
            "path": "context",
            "message": "String must contain at most 1000 character(s)"
        }
    ]
}
` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1521711181193023498/1521711181193023498]

[2026-07-01T03:03:50.961Z] underslung: [2.0.8] Game Mode: HTTP 400 Bad Request generating a new map from long `context` after GM chat turn
[Discord message: https://discord.com/channels/1417099416812392641/1521711181193023498/1521712914858246204]

[2026-07-01T03:06:11.576Z] underslung: Additional issue:

I opened the session log and deleted all the GM messages. I retried map generation. The GM messages were still submitted as context, even though I deleted them.
[Discord message: https://discord.com/channels/1417099416812392641/1521711181193023498/1521713504640434246]

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 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3137 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Imported from the Discord thread "[2.0.8] Game Mode: HTTP 400 Bad Request generating a new map from long `context` after GM chat turn". ## Expected behavior Not provided in the Discord context. ## Actual behavior See the Discord context transcript below. ## Steps to reproduce 1. Not provided in the Discord context. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video See any attachment links and screenshots in the context below. ## Additional context This issue was created automatically from Discord support context. Discord thread: [2.0.8] Game Mode: HTTP 400 Bad Request generating a new map from long `context` after GM chat turn Discord thread link: https://discord.com/channels/1417099416812392641/1521711181193023498 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-07-01T02:56:57.623Z] underslung: * OS: Linux * Install: container * Version: 2.0.7, 2.0.8 (present in both) * Mode: Game Mode In Game Mode, after having a GM chat, I tried to generate a map by clicking the Magic Wand icon on the floating map window. No map was generated. Inspecting the request, the following was POSTed: ` ` ` {"chatId":"tLnOGQG2DUBFDxZY6xAN9","locationType":"The Gullet","context":"Location: The Gullet\nWeather: stormy\nScene: [Talk-to-GM]\n\nGood instinct to check — this is exactly the kind of fork worth thinking through before committing turns.!!!SNIP: 2105 characters!!!Your call — want to spend part of your four hours on the coil, or head upstairs to rest/prep for Tier 2?"} ` ` ` Note `!!!SNIP: 2105 characters!!!` removed above, to get this under Discord post character limit. The server response was: ` ` ` { "error": "Validation Error", "details": [ { "path": "context", "message": "String must contain at most 1000 character(s)" } ] } ` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1521711181193023498/1521711181193023498] [2026-07-01T03:03:50.961Z] underslung: [2.0.8] Game Mode: HTTP 400 Bad Request generating a new map from long `context` after GM chat turn [Discord message: https://discord.com/channels/1417099416812392641/1521711181193023498/1521712914858246204] [2026-07-01T03:06:11.576Z] underslung: Additional issue: I opened the session log and deleted all the GM messages. I retried map generation. The GM messages were still submitted as context, even though I deleted them. [Discord message: https://discord.com/channels/1417099416812392641/1521711181193023498/1521713504640434246] ``` </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:41 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

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

Codex is triaging this in branch codex/issue-sweep-3136-3143 for a staging-targeted follow-up sweep. If the report needs more repro detail, I will note that on the issue instead of guessing.

<!-- gh-comment-id:4864760393 --> @SpicyMarinara commented on GitHub (Jul 2, 2026): Codex is triaging this in branch codex/issue-sweep-3136-3143 for a staging-targeted follow-up sweep. If the report needs more repro detail, I will note that on the issue instead of guessing.
Author
Owner

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

Fix is ready in PR #3144 and will close this on merge. Local validation passed: git diff --check, pnpm check, pnpm smoke:ui, and pnpm regression:prompt.

<!-- gh-comment-id:4864966918 --> @SpicyMarinara commented on GitHub (Jul 2, 2026): Fix is ready in PR #3144 and will close this on merge. Local validation passed: `git diff --check`, `pnpm check`, `pnpm smoke:ui`, and `pnpm regression:prompt`.
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#1684
No description provided.