mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6057] [MERGED] fix(game): explain the locked composer after a concluded session and offer New Session inline #7042
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#7042
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/6057
Author: @Romuromylus
Created: 9/11/2026
Status: ✅ Merged
Merged: 9/11/2026
Merged by: @Romuromylus
Base:
staging← Head:fix/6045-concluded-composer-cta📝 Commits (5)
c095d95fix(game): explain the locked composer after a concluded session and offer New Session inline472c96ffix(game): keep the concluded-session button icon-only on narrow composers136ca13Merge remote-tracking branch 'pasta/staging' into fix/6045-concluded-composer-ctaa43471eMerge remote-tracking branch 'pasta/staging' into fix/6045-concluded-composer-cta20f6b03chore(changelog): restore the line break lost while merging staging📊 Changes
4 files changed (+57 additions, -10 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/client/src/components/game/GameInput.tsx(+48 -10)📝
packages/client/src/components/game/GameSurface.tsx(+6 -0)📝
packages/client/src/localization/locales/en.json(+2 -0)📄 Description
Linked issue
Closes #6045
Why this change
After ending a Game Mode session (the summary generates and lands in the session history), the composer goes dead: the textarea is disabled but still shows the ordinary "What do you do?" placeholder, and nothing on the surface says why or how to continue. Reloading or restarting the engine changes nothing because the concluded status is persisted on the chat, so it reads as a permanent lock, which is what #6045 reports.
This is working as designed on the server side:
gameSessionStatus: "concluded"makesGameSurfacepassdraftDisabled/disabledtoGameInput, and the intended way forward is the New Session action. The problem is that the only New Session control lives inside the Session panel's History tab (a small icon button), so a player who has never opened that panel has no path back into play.What changed
packages/client/src/components/game/GameInput.tsx: new optionalsessionConcluded,onStartNewSession, andstartNewSessionPendingprops. When the session is concluded the placeholder reads "Session concluded. Start a new session to keep playing." and a New Session button renders in the composer next to the textarea (spinner while the start request is in flight). Below thesmbreakpoint the button is icon-only (with title and aria-label) so the placeholder keeps its room on phones. Nothing changes for ready/active sessions.packages/client/src/components/game/GameSurface.tsx: bothGameInputcall sites passsessionConcluded={!sessionInteractive},onStartNewSession={handleStartNewSession}andstartNewSessionPending={startSessionLocked}, so the composer button goes through the same handler as the Session panel (widget-preparation dialog when HUD widgets exist, in-flight guard, new-session chat creation).packages/client/src/localization/locales/en.json: two newgame.input.*strings.CHANGELOG.md: Unreleased entry.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
gameSessionStatus: "concluded", stepped through the narration to the composer; the textarea was disabled with the "What do you do?" placeholder and no New Session control anywhere in the composer.active.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Before (staging build, concluded chat): disabled textarea with the ordinary "What do you do?" placeholder and no New Session control in the composer.
After (this branch on my deploy, same chat): placeholder "Session concluded. Start a new session to keep playing." with a New Session button rendered inline at the right of the textarea; the rest of the game surface (narration, choices, HUD) is unchanged.
Summary by CodeRabbit
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.