[GH-ISSUE #5870] [Issue]: iPhone black screen after chat and agent generation; warning accent mismatch #3242

Closed
opened 2026-10-21 06:00:57 +07:00 by bsakaguchi · 8 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

On iPhone, Marinara intermittently returns to an empty dark screen after a substantial chat generation, especially when agents run. The maintainer now reports this after nearly every major generation, preventing receipt of Illustrator images. A separate mobile presentation regression leaves the chat-start agent/model warning border pink/orchid instead of using the selected accent.

Expected behavior

The app remains visible and usable through streamed replies, agent updates, and Illustrator completion. The connection-warning border follows the current accent.

Actual behavior

Only the dark app backing remains visible and the Home Screen app must be restarted. The maintainer reports that this previously recovered with a refresh but now stays dark, and that Illustrator results started after the reply are lost from view. The warning border does not match the selected blue/cyan accent.

Steps to reproduce

  1. Open an existing Roleplay chat on iPhone, hosted by a Docker installation.
  2. Generate a substantial reply with agents enabled, including Illustrator.
  3. Observe the reported empty screen after/during generation or agent updates; restarting the app restores access.
  4. Start a chat with agents using a default agent connection and inspect the connection-warning border under a non-pink accent.

Environment

  • Marinara Engine version: 2.4.5, build 2.4.5+aa2e46806b1d (commit aa2e46806b).
  • Install type: Docker.
  • OS + version: server Linux 6.12.90+deb13.1-amd64 (x64); client iOS 18.7, Apple GPU.
  • Browser or app shell: iPhone Safari/WebKit user agent, Version/26.6 Mobile/15E148 Safari/604.1. Installed Home Screen PWA; force-closing and reopening restores the chat without restarting Docker.
  • Messages per page: 20.
  • Main connection: Anthropic, claude-fable-5-1.
  • Diagnostics: server heap 251.3 / 2152 MiB; RSS 555.8 MiB; no recorded freeze or unclean server session.

Logs, screenshots, or video

Two screenshots and support diagnostics were supplied in the maintainer conversation. Private chat screenshots are not republished here. One screenshot shows an otherwise empty dark app surface; the other shows the agent/model warning with a mismatched border. No browser crash report or JavaScript stack is available yet.

Additional context

Maintainer requested a simple, focused fix through a PR to staging. Investigate the reported commit and current staging against the earlier iPhone fixes, without assuming an unproven server crash or particular client cause. Preserve chat data and image results; avoid reload-based workarounds that could interrupt generation.

Owner: @SpicyMarinara; implementation by Codex. Existing unrelated draft PRs are excluded.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 5, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5870 Originally assigned to: @SpicyMarinara on GitHub. ## Summary On iPhone, Marinara intermittently returns to an empty dark screen after a substantial chat generation, especially when agents run. The maintainer now reports this after nearly every major generation, preventing receipt of Illustrator images. A separate mobile presentation regression leaves the chat-start agent/model warning border pink/orchid instead of using the selected accent. ## Expected behavior The app remains visible and usable through streamed replies, agent updates, and Illustrator completion. The connection-warning border follows the current accent. ## Actual behavior Only the dark app backing remains visible and the Home Screen app must be restarted. The maintainer reports that this previously recovered with a refresh but now stays dark, and that Illustrator results started after the reply are lost from view. The warning border does not match the selected blue/cyan accent. ## Steps to reproduce 1. Open an existing Roleplay chat on iPhone, hosted by a Docker installation. 2. Generate a substantial reply with agents enabled, including Illustrator. 3. Observe the reported empty screen after/during generation or agent updates; restarting the app restores access. 4. Start a chat with agents using a default agent connection and inspect the connection-warning border under a non-pink accent. ## Environment - Marinara Engine version: 2.4.5, build 2.4.5+aa2e46806b1d (commit aa2e46806b1d). - Install type: Docker. - OS + version: server Linux 6.12.90+deb13.1-amd64 (x64); client iOS 18.7, Apple GPU. - Browser or app shell: iPhone Safari/WebKit user agent, Version/26.6 Mobile/15E148 Safari/604.1. Installed Home Screen PWA; force-closing and reopening restores the chat without restarting Docker. - Messages per page: 20. - Main connection: Anthropic, claude-fable-5-1. - Diagnostics: server heap 251.3 / 2152 MiB; RSS 555.8 MiB; no recorded freeze or unclean server session. ## Logs, screenshots, or video Two screenshots and support diagnostics were supplied in the maintainer conversation. Private chat screenshots are not republished here. One screenshot shows an otherwise empty dark app surface; the other shows the agent/model warning with a mismatched border. No browser crash report or JavaScript stack is available yet. ## Additional context Maintainer requested a simple, focused fix through a PR to staging. Investigate the reported commit and current staging against the earlier iPhone fixes, without assuming an unproven server crash or particular client cause. Preserve chat data and image results; avoid reload-based workarounds that could interrupt generation. Owner: @SpicyMarinara; implementation by Codex. Existing unrelated draft PRs are excluded. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:00:57 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 5, 2026):

Owner: @SpicyMarinara, implementation by Codex on fix/iphone-generation-black-screen. A draft PR is open for the focused investigation and fix; unrelated drafts are untouched. Core proof target: keep the client shell and persisted Illustrator result available through generation/agent completion, and make the warning border follow the selected accent. Physical iPhone failure reproduction remains an explicit verification gap until tested.

<!-- gh-comment-id:5552268286 --> @SpicyMarinara commented on GitHub (Sep 5, 2026): Owner: @SpicyMarinara, implementation by Codex on fix/iphone-generation-black-screen. A draft PR is open for the focused investigation and fix; unrelated drafts are untouched. Core proof target: keep the client shell and persisted Illustrator result available through generation/agent completion, and make the warning border follow the selected accent. Physical iPhone failure reproduction remains an explicit verification gap until tested.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 5, 2026):

PR #5871 is merged into staging at f6efd5ee60. It removes a persistent message-animation compositor hint, makes the warning border use the chosen accent, preserves Illustrator-only retries after passive disconnect, and refreshes saved chat/gallery results when reopened server-side work finishes. Explicit Stop remains effective; automatic /generate already survived passive disconnects.

Validation: pnpm check, all 205 Node regressions, the complete desktop Chromium/mobile Chromium/mobile WebKit CI matrix, focused reconnect/image persistence tests, Linux/amd64 production Docker smoke, and completed CodeRabbit review passed.

Keeping this issue open: the physical iPhone Home Screen PWA blank-screen failure has not been reproduced, so the rendering mitigation is not proof that every blank screen is eliminated. Please verify the reported long Roleplay reply + agents/Illustrator case after updating staging, with Messages per page = 20; if it still happens, note whether reopening restores the finished image. Main was not changed.

<!-- gh-comment-id:5552784835 --> @SpicyMarinara commented on GitHub (Sep 5, 2026): PR #5871 is merged into staging at f6efd5ee607b2f084ac48ee30807aef04ea8d34f. It removes a persistent message-animation compositor hint, makes the warning border use the chosen accent, preserves Illustrator-only retries after passive disconnect, and refreshes saved chat/gallery results when reopened server-side work finishes. Explicit Stop remains effective; automatic /generate already survived passive disconnects. Validation: pnpm check, all 205 Node regressions, the complete desktop Chromium/mobile Chromium/mobile WebKit CI matrix, focused reconnect/image persistence tests, Linux/amd64 production Docker smoke, and completed CodeRabbit review passed. Keeping this issue open: the physical iPhone Home Screen PWA blank-screen failure has not been reproduced, so the rendering mitigation is not proof that every blank screen is eliminated. Please verify the reported long Roleplay reply + agents/Illustrator case after updating staging, with Messages per page = 20; if it still happens, note whether reopening restores the finished image. Main was not changed.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 5, 2026):

Reopening after the maintainer reproduced the black screen on current staging build 2.4.5+4cd3140d6282. Owner: @SpicyMarinara; Codex is investigating on fix/5870-illustration-arrival. Installed iPhone Home Screen app, Docker-hosted server, Messages per page 20. Reopening the phone app restores it without restarting Docker. Both automatic and manually triggered Illustrator runs reproduce the failure, reportedly when the image should arrive. Image provider: GPT Image; prompt model: GPT-5.6-Sol. Fresh server diagnostics report no detected freeze or unclean exit. The original mitigation in #5871 did not resolve this case. GPU failure remains a hypothesis, not a diagnosis. Work will isolate image persistence from client image arrival/rendering, with an explicit physical-iPhone proof gap until verified.

<!-- gh-comment-id:5554919596 --> @SpicyMarinara commented on GitHub (Sep 5, 2026): Reopening after the maintainer reproduced the black screen on current staging build 2.4.5+4cd3140d6282. Owner: @SpicyMarinara; Codex is investigating on fix/5870-illustration-arrival. Installed iPhone Home Screen app, Docker-hosted server, Messages per page 20. Reopening the phone app restores it without restarting Docker. Both automatic and manually triggered Illustrator runs reproduce the failure, reportedly when the image should arrive. Image provider: GPT Image; prompt model: GPT-5.6-Sol. Fresh server diagnostics report no detected freeze or unclean exit. The original mitigation in #5871 did not resolve this case. GPU failure remains a hypothesis, not a diagnosis. Work will isolate image persistence from client image arrival/rendering, with an explicit physical-iPhone proof gap until verified.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 5, 2026):

PR #5880 is merged into staging at 36f5379b2e7d0084d1b8116d178947f1baa65270. Main was not changed.

This follow-up reuses the existing thumbnailer for mobile chat images (1024px) and gallery tiles (320px), retaining original files for opening/downloading. It also fixes the reproduced case where an already-saved automatic Roleplay illustration remained hidden until other agents closed the generation stream. Animation/unsupported-format fallbacks retain the original.

The maintainer's latest correction is important: the manual illustration did appear in both Gallery and under its message after refresh. The automatic illustration was still missing. The fix does not claim that every missing automatic image was caused by the client refresh guard, nor that an iPhone GPU/process crash has been reproduced.

Verification: pnpm check, 207/207 Linux Node regressions, the complete desktop Chromium/mobile Chromium/mobile WebKit CI matrix, production Docker API smoke and 15 selected production-browser checks passed. CodeRabbit completed review with both findings addressed. The unrelated random Professor Mari popup obstructed one Home-widget test on the first CI attempt; that shard passed on an unchanged rerun. Screenshots and detailed claim boundaries are linked in the PR.

The staging Docker publication is running: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/33996937667. Once it succeeds, the updated staging build should identify commit 36f5379b2e7d in Support Diagnostics.

Keeping this issue open for physical-device verification. Please retest manual and automatic Illustrator in the iPhone Home Screen app after updating the staging Docker image, using the existing 20-message setting. Real GPT Image calls and physical iPhone crash behavior were not exercised in this environment.

<!-- gh-comment-id:5555314709 --> @SpicyMarinara commented on GitHub (Sep 5, 2026): PR #5880 is merged into **staging** at `36f5379b2e7d0084d1b8116d178947f1baa65270`. Main was not changed. This follow-up reuses the existing thumbnailer for mobile chat images (1024px) and gallery tiles (320px), retaining original files for opening/downloading. It also fixes the reproduced case where an already-saved automatic Roleplay illustration remained hidden until other agents closed the generation stream. Animation/unsupported-format fallbacks retain the original. The maintainer's latest correction is important: the manual illustration did appear in both Gallery and under its message after refresh. The automatic illustration was still missing. The fix does not claim that every missing automatic image was caused by the client refresh guard, nor that an iPhone GPU/process crash has been reproduced. Verification: `pnpm check`, 207/207 Linux Node regressions, the complete desktop Chromium/mobile Chromium/mobile WebKit CI matrix, production Docker API smoke and 15 selected production-browser checks passed. CodeRabbit completed review with both findings addressed. The unrelated random Professor Mari popup obstructed one Home-widget test on the first CI attempt; that shard passed on an unchanged rerun. Screenshots and detailed claim boundaries are linked in the PR. The staging Docker publication is running: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/33996937667. Once it succeeds, the updated staging build should identify commit `36f5379b2e7d` in Support Diagnostics. **Keeping this issue open for physical-device verification.** Please retest manual and automatic Illustrator in the iPhone Home Screen app after updating the staging Docker image, using the existing 20-message setting. Real GPT Image calls and physical iPhone crash behavior were not exercised in this environment.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 6, 2026):

Owner: @SpicyMarinara; Codex is implementing the follow-up on fix/5870-bounded-mobile-images. The maintainer confirmed build 36f5379b2e still reloads or stays black around Illustrator image arrival, and requires an automatic fix with existing appearance settings unchanged. Two reproducible gaps in the previous preview path are being addressed: width-only resizing leaves portrait/tall images too large, and PNG metadata before image data can bypass previews. No other open issue-linked PR or project item covers this follow-up. Physical iPhone GPU/process failure remains unverified; this PR will include regression proof for these image-delivery defects, not claim a reproduced hardware crash.

<!-- gh-comment-id:5558186026 --> @SpicyMarinara commented on GitHub (Sep 6, 2026): Owner: @SpicyMarinara; Codex is implementing the follow-up on fix/5870-bounded-mobile-images. The maintainer confirmed build 36f5379b2e7d still reloads or stays black around Illustrator image arrival, and requires an automatic fix with existing appearance settings unchanged. Two reproducible gaps in the previous preview path are being addressed: width-only resizing leaves portrait/tall images too large, and PNG metadata before image data can bypass previews. No other open issue-linked PR or project item covers this follow-up. Physical iPhone GPU/process failure remains unverified; this PR will include regression proof for these image-delivery defects, not claim a reproduced hardware crash.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 6, 2026):

PR #5881 is merged into staging at 06f63411625282596fd75c00f7a8b362b731f33d. Main was not changed. The staging Docker publication succeeded for both Linux/amd64 and Linux/arm64: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/34024329854. The updated server build is 2.4.5+06f634116252.

This follow-up fixes two verified gaps in #5880's automatic image previews: tall/portrait images were only width-limited, and large PNG metadata could cause static images to bypass previews entirely. Both dimensions are now bounded; PNG metadata payloads are skipped without flattening animations. Old width-only disk previews are automatically replaced on demand. Existing appearance settings, scene effects and original image files are unchanged; there is no Reduced paint effects requirement or settings reset.

Proof: the previous production Docker build failed the new mobile WebKit preview-size test; the patched build passed all 21 selected production-browser checks. pnpm check, 207/207 Node regressions, the complete desktop/mobile browser CI matrix, Docker build, and CodeQL passed. CodeRabbit completed review with no actionable findings. Production API smoke with normal rate limits confirmed portrait/tall/large-metadata previews and byte-identical original downloads. Synthetic before/after proof and limitations.

Keeping #5870 open for physical-device confirmation. The reported iPhone Home Screen black screen was not reproduced or GPU-profiled in this environment, and the user's original GPT Image output was unavailable. These tests prove the preview-delivery corrections, not that every WebKit process failure is eliminated. Retest manual/automatic Illustrator on the published staging build with the existing settings and 20 messages per page.

<!-- gh-comment-id:5558319581 --> @SpicyMarinara commented on GitHub (Sep 6, 2026): PR #5881 is merged into **staging** at `06f63411625282596fd75c00f7a8b362b731f33d`. Main was not changed. The staging Docker publication succeeded for both Linux/amd64 and Linux/arm64: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/34024329854. The updated server build is `2.4.5+06f634116252`. This follow-up fixes two verified gaps in #5880's automatic image previews: tall/portrait images were only width-limited, and large PNG metadata could cause static images to bypass previews entirely. Both dimensions are now bounded; PNG metadata payloads are skipped without flattening animations. Old width-only disk previews are automatically replaced on demand. Existing appearance settings, scene effects and original image files are unchanged; there is no Reduced paint effects requirement or settings reset. Proof: the previous production Docker build failed the new mobile WebKit preview-size test; the patched build passed all 21 selected production-browser checks. `pnpm check`, 207/207 Node regressions, the complete desktop/mobile browser CI matrix, Docker build, and CodeQL passed. CodeRabbit completed review with no actionable findings. Production API smoke with normal rate limits confirmed portrait/tall/large-metadata previews and byte-identical original downloads. [Synthetic before/after proof and limitations](https://gist.github.com/SpicyMarinara/511d44f4c8d0389ef9b99cdf0e94b5fc). **Keeping #5870 open for physical-device confirmation.** The reported iPhone Home Screen black screen was not reproduced or GPU-profiled in this environment, and the user's original GPT Image output was unavailable. These tests prove the preview-delivery corrections, not that every WebKit process failure is eliminated. Retest manual/automatic Illustrator on the published staging build with the existing settings and 20 messages per page.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 6, 2026):

Owner: @SpicyMarinara; implementation by Codex on fix/5870-client-recovery-diagnostics. The maintainer confirmed build 4666e71ce4 still reloads around image arrival, and now reports a black screen after finishing an edit and scrolling into older messages without a new image arriving. The preview corrections did not eliminate the broader failure. The approved follow-up adds small, local-only client recovery diagnostics and investigates the edit/scroll path. No chat text, prompts, image URLs, or raw exception messages will be recorded. App-requested reloads will be distinguished from unknown interruptions; a missing event is not evidence of an iOS/GPU crash. Physical iPhone reproduction remains unverified, so this issue stays open.

<!-- gh-comment-id:5560946813 --> @SpicyMarinara commented on GitHub (Sep 6, 2026): Owner: @SpicyMarinara; implementation by Codex on fix/5870-client-recovery-diagnostics. The maintainer confirmed build 4666e71ce434 still reloads around image arrival, and now reports a black screen after finishing an edit and scrolling into older messages without a new image arriving. The preview corrections did not eliminate the broader failure. The approved follow-up adds small, local-only client recovery diagnostics and investigates the edit/scroll path. No chat text, prompts, image URLs, or raw exception messages will be recorded. App-requested reloads will be distinguished from unknown interruptions; a missing event is not evidence of an iOS/GPU crash. Physical iPhone reproduction remains unverified, so this issue stays open.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 6, 2026):

PR #5896 is merged into staging at 9bbee87d1a44c33f704977bd8c25aafbec9b85aa. The Docker publication workflow completed for both amd64 and arm64.

This is the approved diagnostic follow-up, not a confirmed black-screen fix. Keep #5870 open. The edit/save/older-message-scroll recurrence means we cannot attribute the issue solely to illustration arrival. No explicit full-page reload is called by either successful edit completion or illustration receipt; the existing reload/recovery entrypoints now record their reason.

Copy Support Diagnostics now includes the actual frontend build and a bounded local event record: known reload reasons, observed client error class/React code/asset position, basic viewport/root geometry, and generic edit/image-arrival milestones. Recovery events exclude chat content and image URLs, are not sent automatically, and are included only in the manually copied report. No new automatic reload, polling, appearance/quality reduction or settings reset.

Verification: pnpm check, the focused persistence/privacy/storage-failure regression, all required CI checks and completed CodeRabbit review passed. All 24 focused browser checks passed against a production Docker build across desktop Chromium, mobile Chromium and mobile WebKit. Synthetic production proof.

Physical iPhone Home Screen lifecycle/GPU behavior remains unverified. An unmarked restart, or absence of a final error event, remains an unknown cause—not proof of an OS/GPU kill. If another incident happens naturally on this or a later build, copy Support Diagnostics once after reopening; there is no need to deliberately provoke another failure or change settings.

<!-- gh-comment-id:5561621072 --> @SpicyMarinara commented on GitHub (Sep 6, 2026): PR #5896 is merged into staging at `9bbee87d1a44c33f704977bd8c25aafbec9b85aa`. The Docker publication workflow completed for both amd64 and arm64. This is the approved **diagnostic follow-up, not a confirmed black-screen fix**. Keep #5870 open. The edit/save/older-message-scroll recurrence means we cannot attribute the issue solely to illustration arrival. No explicit full-page reload is called by either successful edit completion or illustration receipt; the existing reload/recovery entrypoints now record their reason. Copy Support Diagnostics now includes the actual frontend build and a bounded local event record: known reload reasons, observed client error class/React code/asset position, basic viewport/root geometry, and generic edit/image-arrival milestones. Recovery events exclude chat content and image URLs, are not sent automatically, and are included only in the manually copied report. No new automatic reload, polling, appearance/quality reduction or settings reset. Verification: `pnpm check`, the focused persistence/privacy/storage-failure regression, all required CI checks and completed CodeRabbit review passed. All 24 focused browser checks passed against a production Docker build across desktop Chromium, mobile Chromium and mobile WebKit. [Synthetic production proof](https://gist.github.com/SpicyMarinara/c4d70e31c7169eb86ebf0a8ab5a4bc5e). Physical iPhone Home Screen lifecycle/GPU behavior remains unverified. An unmarked restart, or absence of a final error event, remains an unknown cause—not proof of an OS/GPU kill. If another incident happens naturally on this or a later build, copy Support Diagnostics once after reopening; there is no need to deliberately provoke another failure or change settings.
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#3242
No description provided.