[PR #1650] [MERGED] Fix game reload blank surface #5182

Closed
opened 2026-10-22 04:14:00 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1650
Author: @Promansis
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Promansis

Base: refactor ← Head: fix/1595-game-reload


📝 Commits (1)

  • aa8dd77 Show game chat reload recovery state

📊 Changes

2 files changed (+58 additions, -2 deletions)

View changed files

📝 src/features/modes/game/components/GameConversationView.tsx (+47 -1)
📝 src/features/modes/shared/chat-ui/hooks/use-chat-surface-data.ts (+11 -1)

📄 Description

Summary

Fixes #1595.

Reloading an existing game chat no longer shows an empty surface while the chat record hydrates. The game route now renders an explicit loading state, and a retryable error state if the chat detail query fails before the game surface can mount.

Root Cause

GameConversationView returned an empty flex container whenever useChatSurfaceData had not yet produced a chat object. During reload, that meant the game surface could appear blank or unusable before metadata/messages had a chance to restore.

Validation

  • pnpm typecheck

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1650 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 5/30/2026 **Status:** ✅ Merged **Merged:** 5/30/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `fix/1595-game-reload` --- ### 📝 Commits (1) - [`aa8dd77`](https://github.com/Pasta-Devs/Marinara-Engine/commit/aa8dd77763a95de76778905878e345ac03743b21) Show game chat reload recovery state ### 📊 Changes **2 files changed** (+58 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/game/components/GameConversationView.tsx` (+47 -1) 📝 `src/features/modes/shared/chat-ui/hooks/use-chat-surface-data.ts` (+11 -1) </details> ### 📄 Description ## Summary Fixes #1595. Reloading an existing game chat no longer shows an empty surface while the chat record hydrates. The game route now renders an explicit loading state, and a retryable error state if the chat detail query fails before the game surface can mount. ## Root Cause `GameConversationView` returned an empty flex container whenever `useChatSurfaceData` had not yet produced a chat object. During reload, that meant the game surface could appear blank or unusable before metadata/messages had a chance to restore. ## Validation - `pnpm typecheck` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:14:00 +07:00
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#5182
No description provided.