[GH-ISSUE #3681] [Issue]: Generated NPC images do not update in journal during session #1987

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

NPC portraits are generated successfully and saved to the avatars folder, but the journal continues to display the previous or missing portrait during the active session. Re-uploading the generated image creates a duplicate without updating the journal.

Expected behavior

The journal should display the newly generated or uploaded NPC portrait during the active session without requiring the session to end.

Actual behavior

The generated portrait is present in the server data folder and returned in the asset-generation payload, but the NPC avatar in the journal does not update. Re-uploading the image creates a duplicate and still does not update the journal.

Steps to reproduce

  1. Start or open a session containing an NPC journal entry.
  2. Prompt Marinara Engine to generate a portrait for the NPC.
  3. Confirm that the image is generated in the server data avatars folder.
  4. Open or refresh the NPC entry in the in-game journal.
  5. Observe that the generated portrait is not displayed.
  6. Attempt to upload the generated image manually and observe that a duplicate is created without updating the journal.

Environment

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

Logs, screenshots, or video

Logs show a successful portrait result for Director Althea Voss: bytes=658035, url=/api/avatars/npc/cDbuyQ618SWB-iu61Tlyn/director-althea-voss-53ee9f49.jpg. The generate-assets payload includes generatedNpcAvatars with avatarUrl /api/avatars/npc/cDbuyQ618SWB-iu61Tlyn/director-althea-voss-53ee9f49.jpg?v=1784193819060. Reported folder path: V:\Marinara-Engine\packages\server\data\avatars\npc\R_BZ5nGbKDawY3CCYBviK. Video: https://cdn.discordapp.com/attachments/1527253165106401370/1527253166268219544/20260716-0952-29.1067382.mp4?ex=6a59fcd9&is=6a58ab59&hm=965045738e91c245544472b707aa29f64cd311e7d8287189dd62f8c5ae9c40ba&. Folder screenshot: https://cdn.discordapp.com/attachments/1527253165106401370/1527253165412716585/image.png?ex=6a59fcd9&is=6a58ab59&hm=cb8bd06f563f52d379bc56492642379e6ad24f7f7ba7682bc3ee20412f1930da&. Journal screenshot: https://cdn.discordapp.com/attachments/1527253165106401370/1527253165857308723/image.png?ex=6a59fcd9&is=6a58ab59&hm=0f241f1e7bdfeeca5a1d10068ea232c121a5f27f87b93c4ef1c68556ee6ca064&.

Additional context

A maintainer indicated that journal avatars may currently update only after the session ends, but agreed that they should update during the session.

Discord thread: [Bug] - NPC images generating but not updating in journal
Discord thread link: https://discord.com/channels/1417099416812392641/1527253165106401370
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (4 messages)
[2026-07-16T09:58:49.553Z] CrispyAIUnicorn: Was part of other bug reported, but now can see that it is generating images when prompted and putting into folders, but it is not displaying them in the journal view. When I try to re-upload the image, it obviously just creates a duplicate of the image but doesn't update it. Attached a video as well. Lmk if there are any other logs/etc that you need for this one.

Payload: {"level":40,"time":1784193819060,"pid":137600,"hostname":"DESKTOP","msg":"[debug/game/image-generation] NPC portrait result name=Director Althea Voss bytes=658035 url=/api/avatars/npc/cDbuyQ618SWB-iu61Tlyn/director-althea-voss-53ee9f49.jpg"}
{"level":40,"time":1784193819060,"pid":137600,"hostname":"DESKTOP","msg":"[debug/game/generate-assets] result payload:\n{\n  \"generatedBackground\": null,\n  \"fallbackBackground\": null,\n  \"generatedIllustration\": null,\n  \"generatedNpcAvatars\": [\n    {\n      \"name\": \"Director Althea Voss\",\n      \"avatarUrl\": \"/api/avatars/npc/cDbuyQ618SWB-iu61Tlyn/director-althea-voss-53ee9f49.jpg?v=1784193819060\"\n    }\n  ]\n}"}

Folder pathway: V:\Marinara-Engine\packages\server\data\avatars\npc\R_BZ5nGbKDawY3CCYBviK

Folder contents - image 1
In-game Journal view - image 2
[attached file: 20260716-0952-29.1067382.mp4 — https://cdn.discordapp.com/attachments/1527253165106401370/1527253166268219544/20260716-0952-29.1067382.mp4?ex=6a59fcd9&is=6a58ab59&hm=965045738e91c245544472b707aa29f64cd311e7d8287189dd62f8c5ae9c40ba&]

[attached image 1: https://cdn.discordapp.com/attachments/1527253165106401370/1527253165412716585/image.png?ex=6a59fcd9&is=6a58ab59&hm=cb8bd06f563f52d379bc56492642379e6ad24f7f7ba7682bc3ee20412f1930da&]
[attached image 2: https://cdn.discordapp.com/attachments/1527253165106401370/1527253165857308723/image.png?ex=6a59fcd9&is=6a58ab59&hm=0f241f1e7bdfeeca5a1d10068ea232c121a5f27f87b93c4ef1c68556ee6ca064&]
[Discord message: https://discord.com/channels/1417099416812392641/1527253165106401370/1527253165106401370]

[2026-07-16T10:16:00.265Z] Marinara: What do you mean in Journal view?
[Discord message: https://discord.com/channels/1417099416812392641/1527253165106401370/1527257488225992744]

[2026-07-16T10:16:29.952Z] Marinara: Ah, you mean the avatars there. Yeah I don’t think they will update in the session, only after it ends.
[Discord message: https://discord.com/channels/1417099416812392641/1527253165106401370/1527257612742168656]

[2026-07-16T10:16:53.124Z] Marinara: I guess they should.
[Discord message: https://discord.com/channels/1417099416812392641/1527253165106401370/1527257709932712006]

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 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3681 Originally assigned to: @SpicyMarinara on GitHub. ## Summary NPC portraits are generated successfully and saved to the avatars folder, but the journal continues to display the previous or missing portrait during the active session. Re-uploading the generated image creates a duplicate without updating the journal. ## Expected behavior The journal should display the newly generated or uploaded NPC portrait during the active session without requiring the session to end. ## Actual behavior The generated portrait is present in the server data folder and returned in the asset-generation payload, but the NPC avatar in the journal does not update. Re-uploading the image creates a duplicate and still does not update the journal. ## Steps to reproduce 1. Start or open a session containing an NPC journal entry. 2. Prompt Marinara Engine to generate a portrait for the NPC. 3. Confirm that the image is generated in the server data avatars folder. 4. Open or refresh the NPC entry in the in-game journal. 5. Observe that the generated portrait is not displayed. 6. Attempt to upload the generated image manually and observe that a duplicate is created without updating the journal. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Windows; version not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Logs show a successful portrait result for Director Althea Voss: bytes=658035, url=/api/avatars/npc/cDbuyQ618SWB-iu61Tlyn/director-althea-voss-53ee9f49.jpg. The generate-assets payload includes generatedNpcAvatars with avatarUrl /api/avatars/npc/cDbuyQ618SWB-iu61Tlyn/director-althea-voss-53ee9f49.jpg?v=1784193819060. Reported folder path: V:\Marinara-Engine\packages\server\data\avatars\npc\R_BZ5nGbKDawY3CCYBviK. Video: https://cdn.discordapp.com/attachments/1527253165106401370/1527253166268219544/20260716-0952-29.1067382.mp4?ex=6a59fcd9&is=6a58ab59&hm=965045738e91c245544472b707aa29f64cd311e7d8287189dd62f8c5ae9c40ba&. Folder screenshot: https://cdn.discordapp.com/attachments/1527253165106401370/1527253165412716585/image.png?ex=6a59fcd9&is=6a58ab59&hm=cb8bd06f563f52d379bc56492642379e6ad24f7f7ba7682bc3ee20412f1930da&. Journal screenshot: https://cdn.discordapp.com/attachments/1527253165106401370/1527253165857308723/image.png?ex=6a59fcd9&is=6a58ab59&hm=0f241f1e7bdfeeca5a1d10068ea232c121a5f27f87b93c4ef1c68556ee6ca064&. ## Additional context A maintainer indicated that journal avatars may currently update only after the session ends, but agreed that they should update during the session. Discord thread: [Bug] - NPC images generating but not updating in journal Discord thread link: https://discord.com/channels/1417099416812392641/1527253165106401370 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (4 messages)</summary> ```text [2026-07-16T09:58:49.553Z] CrispyAIUnicorn: Was part of other bug reported, but now can see that it is generating images when prompted and putting into folders, but it is not displaying them in the journal view. When I try to re-upload the image, it obviously just creates a duplicate of the image but doesn't update it. Attached a video as well. Lmk if there are any other logs/etc that you need for this one. Payload: {"level":40,"time":1784193819060,"pid":137600,"hostname":"DESKTOP","msg":"[debug/game/image-generation] NPC portrait result name=Director Althea Voss bytes=658035 url=/api/avatars/npc/cDbuyQ618SWB-iu61Tlyn/director-althea-voss-53ee9f49.jpg"} {"level":40,"time":1784193819060,"pid":137600,"hostname":"DESKTOP","msg":"[debug/game/generate-assets] result payload:\n{\n \"generatedBackground\": null,\n \"fallbackBackground\": null,\n \"generatedIllustration\": null,\n \"generatedNpcAvatars\": [\n {\n \"name\": \"Director Althea Voss\",\n \"avatarUrl\": \"/api/avatars/npc/cDbuyQ618SWB-iu61Tlyn/director-althea-voss-53ee9f49.jpg?v=1784193819060\"\n }\n ]\n}"} Folder pathway: V:\Marinara-Engine\packages\server\data\avatars\npc\R_BZ5nGbKDawY3CCYBviK Folder contents - image 1 In-game Journal view - image 2 [attached file: 20260716-0952-29.1067382.mp4 — https://cdn.discordapp.com/attachments/1527253165106401370/1527253166268219544/20260716-0952-29.1067382.mp4?ex=6a59fcd9&is=6a58ab59&hm=965045738e91c245544472b707aa29f64cd311e7d8287189dd62f8c5ae9c40ba&] [attached image 1: https://cdn.discordapp.com/attachments/1527253165106401370/1527253165412716585/image.png?ex=6a59fcd9&is=6a58ab59&hm=cb8bd06f563f52d379bc56492642379e6ad24f7f7ba7682bc3ee20412f1930da&] [attached image 2: https://cdn.discordapp.com/attachments/1527253165106401370/1527253165857308723/image.png?ex=6a59fcd9&is=6a58ab59&hm=0f241f1e7bdfeeca5a1d10068ea232c121a5f27f87b93c4ef1c68556ee6ca064&] [Discord message: https://discord.com/channels/1417099416812392641/1527253165106401370/1527253165106401370] [2026-07-16T10:16:00.265Z] Marinara: What do you mean in Journal view? [Discord message: https://discord.com/channels/1417099416812392641/1527253165106401370/1527257488225992744] [2026-07-16T10:16:29.952Z] Marinara: Ah, you mean the avatars there. Yeah I don’t think they will update in the session, only after it ends. [Discord message: https://discord.com/channels/1417099416812392641/1527253165106401370/1527257612742168656] [2026-07-16T10:16:53.124Z] Marinara: I guess they should. [Discord message: https://discord.com/channels/1417099416812392641/1527253165106401370/1527257709932712006] ``` </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:44:24 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
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#1987
No description provided.