mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1015] [MERGED] Fix stale game session rendering #4885
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4885
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1015
Author: @cha1latte
Created: 5/19/2026
Status: ✅ Merged
Merged: 5/19/2026
Merged by: @cha1latte
Base:
staging← Head:fix/issue-1003-game-session-current-proof📝 Commits (1)
0dbf8bcFix stale game session rendering📊 Changes
4 files changed (+66 additions, -1 deletions)
View changed files
➕
docs/pr-evidence/issue-1003/browser-after.png(+0 -0)📝
packages/client/src/components/chat/ChatArea.tsx(+11 -0)📝
packages/client/src/components/layout/ChatSidebar.tsx(+5 -1)➕
packages/client/src/lib/game-session-resolution.ts(+50 -0)📄 Description
Linked issue
Closes #1003
Why this change
What changed
ChatAreato redirect stale active game-session chat IDs to the current session in the same game group.ChatSidebarto use the same current-session representative.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
node scratch/issue-1003-session-resolution.mjs: before the fix, active chat state could remain onsession-26whilesession-31was the current game session in the same group.packages\server\node_modules\.bin\tsx.cmd scratch/issue-1003-session-resolution.mjs: stalesession-26resolves tosession-31, the sidebar representative issession-31, already-current game sessions remain unchanged, and non-game chats remain unchanged.pnpm check; it passedimpeccable:check, lint, and shared/server/client builds.Docs and release impact
Docs/release note: no docs, schema, dependency, or version files changed.
UI evidence (if applicable)
Note: the screenshot includes a local CSRF trust banner from the dev origin; it is unrelated to this fix. The relevant evidence is the game surface rendering
SESSION 31 CURRENT CONTENT.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.