[PR #1649] [MERGED] Fix game chat route hydration #5181

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/1649
Author: @Promansis
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Promansis

Base: refactor ← Head: fix/1596-game-chat-open


📝 Commits (1)

  • 5fb9067 Wait for chat mode before routing

📊 Changes

1 file changed (+7 additions, -4 deletions)

View changed files

📝 src/features/modes/router/components/ModeSurface.tsx (+7 -4)

📄 Description

Summary

Fixes #1596.

Opening or creating a game chat now waits for that chat's mode before choosing a mode route. While the selected chat detail is loading, the mode surface stays in a neutral loading shell instead of falling back to the previous/default mode.

Root Cause

ModeSurface kept only the last mode, not the chat id it belonged to. When a game chat was selected before its detail loaded, the router could temporarily reuse the previous/default conversation mode and mount the wrong surface for the active game chat.

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/1649 **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/1596-game-chat-open` --- ### 📝 Commits (1) - [`5fb9067`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5fb9067e4abeaea244d567704b0489a3ca1003cd) Wait for chat mode before routing ### 📊 Changes **1 file changed** (+7 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/router/components/ModeSurface.tsx` (+7 -4) </details> ### 📄 Description ## Summary Fixes #1596. Opening or creating a game chat now waits for that chat's mode before choosing a mode route. While the selected chat detail is loading, the mode surface stays in a neutral loading shell instead of falling back to the previous/default mode. ## Root Cause `ModeSurface` kept only the last mode, not the chat id it belonged to. When a game chat was selected before its detail loaded, the router could temporarily reuse the previous/default conversation mode and mount the wrong surface for the active game chat. ## 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#5181
No description provided.