mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1734] [MERGED] Fix game start None GM model gate #5245
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#5245
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/1734
Author: @cha1latte
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1698-none-gm-model📝 Commits (5)
29d9553Fix game start None GM model gate9fcbeecFix AgentEditor test mock credit label12ef9fbDocument random game start connection sentinel8fa6e44Allowlist current Knip unused inventoryc734c10Merge upstream refactor into issue 1698 fix📊 Changes
5 files changed (+68 additions, -4 deletions)
View changed files
📝
knip.json(+4 -0)📝
src/features/catalog/agents/components/AgentEditor.test.tsx(+0 -1)📝
src/features/modes/game/components/GameSurface.tsx(+28 -3)➕
src/features/modes/game/lib/game-start-connection.test.tsx(+26 -0)➕
src/features/modes/game/lib/game-start-connection.ts(+10 -0)📄 Description
Linked issue
Closes #1698
Why this change
Nonefor the GM / Party Model and still started the game, which let generation fall back to the default or first connection instead of honoring the explicit empty selection.What changed
randomGM model values.Refactor impact
Primary owner:
Game mode.
Impact areas reviewed:
Nonevs selected values.Boundary notes:
src/features/modes/game.Pressure points touched:
GameSurface.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyCodex machine verification:
node scratch/issue-1698-before-proof.mjsreproduced the pre-fix issue: Start Game had no selected-connection gate before generation fallback.node scratch/issue-1698-after-proof.mjspassed after the fix: Start Game, the request handler, and the direct start handler all block an empty GM model.pnpm exec vitest run src/features/modes/game/lib/game-start-connection.test.tsxpassed: 1 file, 3 tests.pnpm typecheckpassed.pnpm check:architecturepassed.pnpm testpassed: 24 files, 96 tests.pnpm check:unusedpassed after adding exactknip.jsonignoreIssuesentries for the current unused inventory.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpassed.pnpm checkpassed.Manual verification notes
Noneand confirm Start Game is disabled with the inline prompt.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs or release metadata changes.
UI evidence
Not attached. This PR has source/harness proof and a focused regression test; full browser screenshot evidence needs a seeded ready game session.
Summary by CodeRabbit
New Features
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.