[GH-ISSUE #392] [Issue]: Noodle Images broken in v2.4.2 main, staging and latest version #196

Closed
opened 2026-10-20 17:25:17 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Winterfell8840 on GitHub (Aug 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/392

Originally assigned to: @Gunterlie on GitHub.

Bug report done by professor mari through mari chat. Currently on latest staging with everything updated and all that

[Bug] Noodle feed renders generated post images as broken icons since v2.4.2 (works in 2.4.1)

Status: Not fixed as of filing (2026-08-16). Regression introduced in v2.4.2.

Summary

Since Marinara Engine v2.4.2, the Noodle feed displays generated post images as broken-image icons. The images themselves are generated, saved, and recorded correctly — file on disk, matching character_images metadata row, post imageUrl pointing exactly at the file — but the 2.4.2 engine does not serve/resolve that URL for the feed. The exact same posts render correctly under v2.4.1. A fresh-install reproduction with a brand-new feed (no restored or migrated data) rules out any data or migration cause: v2.4.2 breaks its own freshly generated output.

Environment

  • Marinara Engine v2.4.3 (staging, latest) v2.4.2 (fresh install) — regression absent in v2.4.1
  • Noodle package 1.2.3 (installed via Agents → Download Agents)
  • Termux / Android, local server at http://127.0.0.1:7860
  • Text/timeline connection: NanoGPT, zai-org/glm-5.2 (text-only model)
  • Image generation: provider image_generation, model qwen-image

Symptom

  • Noodle feed: generated post images show the browser broken-image icon.
  • The main app (Slurp) loads images generated over the same connection fine — it uses a different serving path.

Reproduction (controlled experiment)

  1. Fully removed Marinara Engine and installed v2.4.2 fresh — no restore, no migrated legacy data.
  2. Installed the Noodle package and generated a brand-new feed: new posts, new messages, new images, nothing carried over from the previous install.
  3. Result: broken-image icons in the feed for the freshly generated images.
  4. git checkout down to v2.4.1, and only then restored the data (restore used only after being back on 2.4.1).
  5. Result: the identical posts — same files, same URLs, same rows — render correctly.

The only variable across the two runs was the engine version. Checkout verified: root and server package.json both report 2.4.1.

Evidence: the generated data is intact and self-consistent

Post row in packages/server/data/storage/tables/noodle_posts.json:

"imageUrl": "/api/characters/n9lxmc4UkXp4HCCji_vXz/gallery/file/T-UByTQfQa-CXjorJKg9E.png",
"imagePrompt": "Tired nurse in her mid-twenties in navy blue scrubs, ...",
"metadata": { "imageGenerated": true, "imageProvider": "image_generation", "imageModel": "qwen-image", ... }
  • File exists on disk: packages/server/data/gallery/characters/n9lxmc4UkXp4HCCji_vXz/T-UByTQfQa-CXjorJKg9E.png
  • Metadata row exists: packages/server/data/storage/tables/character_images.json contains a matching entry for that filename.
  • The imageUrl points exactly at the on-disk file path.

Conclusion: generation, saving, and bookkeeping all succeed on 2.4.2. The failure is purely on the serve/render side — the feed requests the URL and gets nothing usable back.

Analysis

  • The engine-side Noodle storage layer contains no character-gallery references; the save-into-character-gallery behavior lives in the Noodle package. The package saves post images under gallery/characters/<characterId>/ and stamps posts with /api/characters/<id>/gallery/file/<filename>.
  • The engine's character-gallery route builds those URLs and imports a galleryFileHasReferences check from the image lifecycle service, so serving involves auth/reference checks that can reject a request even when the file exists on disk.
  • NoodleR-owned media is normally served through an access-checked endpoint namespaced under gallery/noodler-media/<accountId>/ — a path deliberately distinct from the character-gallery route used for generated post images.
  • Main-app (Slurp) images ride the main gallery serving path and are unaffected.

Changelog suspects (v2.4.2)

  • #4763 — Moved Noodle into an optional downloadable package. Major rewrite of the Noodle↔engine seam; the runtime snapshot bundle now owns Noodle's server code.
  • #4754 — Sharded fourteen more chat-keyed tables (memory, agent runs, game state, calls, gallery, …) into per-chat files. Touches gallery row lookups the serve route depends on.

Either change could plausibly break resolution of /api/characters/<id>/gallery/file/<filename> for Noodle feed requests without affecting the main app.

Unrelated noise (do not chase)

The server also logs:

[noodle/vision] The selected timeline model rejected image input; retrying the refresh as text-only
(NanoGPT API error 400: Model "zai-org/glm-5.2" does not support image inputs)

This is expected behavior with a text-only timeline model — Noodle attaches recent feed images for vision models and auto-retries text-only when the model declines. It concerns text refreshes, not image serving, and is unrelated to the broken icons.

Workaround

Stay on v2.4.1 for Noodle feeds with generated images.

Suggested areas to investigate

  • The /api/characters/:id/gallery/file/:filename GET handler and its auth/reference (galleryFileHasReferences) checks under 2.4.2, specifically for requests originating from the Noodle feed (persona/origin context differs from the main app).
  • Whether the 2.4.2 gallery-table sharding (#4754) changed the row lookup shape that route performs.
  • Whether the Noodle package rewrite (#4763) changed the client context or credentials the feed uses when requesting character-gallery URLs.
Originally created by @Winterfell8840 on GitHub (Aug 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/392 Originally assigned to: @Gunterlie on GitHub. Bug report done by professor mari through mari chat. Currently on latest staging with everything updated and all that # [Bug] Noodle feed renders generated post images as broken icons since v2.4.2 (works in 2.4.1) **Status:** Not fixed as of filing (2026-08-16). Regression introduced in v2.4.2. ## Summary Since Marinara Engine v2.4.2, the Noodle feed displays generated post images as broken-image icons. The images themselves are generated, saved, and recorded correctly — file on disk, matching `character_images` metadata row, post `imageUrl` pointing exactly at the file — but the 2.4.2 engine does not serve/resolve that URL for the feed. The exact same posts render correctly under v2.4.1. A fresh-install reproduction with a brand-new feed (no restored or migrated data) rules out any data or migration cause: v2.4.2 breaks its own freshly generated output. ## Environment - Marinara Engine v2.4.3 (staging, latest) v2.4.2 (fresh install) — regression absent in v2.4.1 - Noodle package 1.2.3 (installed via Agents → Download Agents) - Termux / Android, local server at http://127.0.0.1:7860 - Text/timeline connection: NanoGPT, `zai-org/glm-5.2` (text-only model) - Image generation: provider `image_generation`, model `qwen-image` ## Symptom - Noodle feed: generated post images show the browser broken-image icon. - The main app (Slurp) loads images generated over the same connection fine — it uses a different serving path. ## Reproduction (controlled experiment) 1. Fully removed Marinara Engine and installed v2.4.2 fresh — no restore, no migrated legacy data. 2. Installed the Noodle package and generated a brand-new feed: new posts, new messages, new images, nothing carried over from the previous install. 3. Result: broken-image icons in the feed for the freshly generated images. 4. `git checkout` down to v2.4.1, and only then restored the data (restore used only after being back on 2.4.1). 5. Result: the identical posts — same files, same URLs, same rows — render correctly. The only variable across the two runs was the engine version. Checkout verified: root and server `package.json` both report 2.4.1. ## Evidence: the generated data is intact and self-consistent Post row in `packages/server/data/storage/tables/noodle_posts.json`: ```json "imageUrl": "/api/characters/n9lxmc4UkXp4HCCji_vXz/gallery/file/T-UByTQfQa-CXjorJKg9E.png", "imagePrompt": "Tired nurse in her mid-twenties in navy blue scrubs, ...", "metadata": { "imageGenerated": true, "imageProvider": "image_generation", "imageModel": "qwen-image", ... } ``` - File exists on disk: `packages/server/data/gallery/characters/n9lxmc4UkXp4HCCji_vXz/T-UByTQfQa-CXjorJKg9E.png` - Metadata row exists: `packages/server/data/storage/tables/character_images.json` contains a matching entry for that filename. - The `imageUrl` points exactly at the on-disk file path. Conclusion: generation, saving, and bookkeeping all succeed on 2.4.2. The failure is purely on the serve/render side — the feed requests the URL and gets nothing usable back. ## Analysis - The engine-side Noodle storage layer contains no character-gallery references; the save-into-character-gallery behavior lives in the Noodle package. The package saves post images under `gallery/characters/<characterId>/` and stamps posts with `/api/characters/<id>/gallery/file/<filename>`. - The engine's character-gallery route builds those URLs and imports a `galleryFileHasReferences` check from the image lifecycle service, so serving involves auth/reference checks that can reject a request even when the file exists on disk. - NoodleR-owned media is normally served through an access-checked endpoint namespaced under `gallery/noodler-media/<accountId>/` — a path deliberately distinct from the character-gallery route used for generated post images. - Main-app (Slurp) images ride the main gallery serving path and are unaffected. ### Changelog suspects (v2.4.2) - #4763 — Moved Noodle into an optional downloadable package. Major rewrite of the Noodle↔engine seam; the runtime snapshot bundle now owns Noodle's server code. - #4754 — Sharded fourteen more chat-keyed tables (memory, agent runs, game state, calls, **gallery**, …) into per-chat files. Touches gallery row lookups the serve route depends on. Either change could plausibly break resolution of `/api/characters/<id>/gallery/file/<filename>` for Noodle feed requests without affecting the main app. ## Unrelated noise (do not chase) The server also logs: ``` [noodle/vision] The selected timeline model rejected image input; retrying the refresh as text-only (NanoGPT API error 400: Model "zai-org/glm-5.2" does not support image inputs) ``` This is expected behavior with a text-only timeline model — Noodle attaches recent feed images for vision models and auto-retries text-only when the model declines. It concerns text refreshes, not image serving, and is unrelated to the broken icons. ## Workaround Stay on v2.4.1 for Noodle feeds with generated images. ## Suggested areas to investigate - The `/api/characters/:id/gallery/file/:filename` GET handler and its auth/reference (`galleryFileHasReferences`) checks under 2.4.2, specifically for requests originating from the Noodle feed (persona/origin context differs from the main app). - Whether the 2.4.2 gallery-table sharding (#4754) changed the row lookup shape that route performs. - Whether the Noodle package rewrite (#4763) changed the client context or credentials the feed uses when requesting character-gallery URLs.
bsakaguchi 2026-10-20 17:25:17 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

@Gunterlie?

<!-- gh-comment-id:5309888525 --> @SpicyMarinara commented on GitHub (Aug 16, 2026): @Gunterlie?
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#196
No description provided.