mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #404] [MERGED] chore: remove leftover game-master and party-player agent references #4608
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#4608
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/404
Author: @cha1latte
Created: 5/4/2026
Status: ✅ Merged
Merged: 5/4/2026
Merged by: @SpicyMarinara
Base:
main← Head:chore/remove-game-master-leftovers📝 Commits (2)
f63a252chore: remove leftover game-master and party-player agent references2baf0acMerge branch 'main' into chore/remove-game-master-leftovers📊 Changes
3 files changed (+3 additions, -10 deletions)
View changed files
📝
packages/client/src/components/panels/AgentsPanel.tsx(+2 -5)📝
packages/shared/src/constants/chat-modes.ts(+1 -1)📝
packages/shared/src/types/agent.ts(+0 -4)📄 Description
Summary
Cleanup of dead references that survived the Game Master / Party Player
removal. Three packages still carried these IDs in places that are either
unused or defensive no-ops. No user-facing behavior change.
What this PR removes
packages/shared/src/types/agent.ts—BUILT_IN_AGENT_IDS.GAME_MASTERand
.PARTY_PLAYERenum keys (no callers in the repo), and the matching"game-master"/"party-player"entries inDEFAULT_AGENT_TOOLS(allconsumers use
?? []fallbacks, so missing keys resolve safely for anylegacy stored agent rows).
packages/shared/src/constants/chat-modes.ts—"game-master"and"party-player"strings fromCHAT_MODES.game.defaultAgents. ThedefaultAgentsfield has no consumers anywhere in the repo, so this ispure dead-data cleanup; behavior is unchanged.
packages/client/src/components/panels/AgentsPanel.tsx— theHIDDEN_BUILT_IN_AGENT_IDS/VISIBLE_BUILT_IN_AGENTSfilter pair. Itwas filtering IDs that are no longer present in
BUILT_IN_AGENTS, so thefilter was a no-op against an unchanged list. Both call sites now use
BUILT_IN_AGENTSdirectly.Why now
While auditing for visible-but-non-functional UI surfaces, I traced these
references and confirmed each one has no live consumer. They're harmless,
but they read as if Game-mode chats might still try to spin up phantom
agents — which is misleading to anyone reading the code cold.
Why this is safe (verification I ran locally)
defaultAgents—git grep defaultAgentsreturns only the type fieldand the four mode definitions in
chat-modes.ts. Nothing reads it.BUILT_IN_AGENT_IDS.GAME_MASTER/.PARTY_PLAYER— no dotted accessesanywhere in the repo.
DEFAULT_AGENT_TOOLS["game-master"]/["party-player"]— the only keypaths into this map are
agent.id(always fromBUILT_IN_AGENTS,which doesn't contain these) and
dbConfig.type(legacy-data fallback,guarded by
?? []).HIDDEN_BUILT_IN_AGENT_IDSfilter — the IDs it filters are not inBUILT_IN_AGENTS, so removing the filter changes nothing about whatthe panel renders.
pnpm checkpasses on this branch.Test plan
agents grouped by category and by status, identical to
main.Verified locally: all 28 agents present (8 Writer, 9 Tracker, 11 Misc).
No Game Master / Party Player entries anywhere in the panel.
same default agents users see today.
Verified locally: New Game Setup wizard opens cleanly, Step 1
(Genre & Setting) and Step 2 (Party & GM) render correctly with no
broken state, no phantom agent dropdowns. Wizard's GM picker uses
Standalone/Character mode and the party picker uses character
records — neither path touches the removed agent constants.
Manually verify any user with a legacy stored agent config row oftype
game-masterorparty-playerstill loads without error.n/a — no legacy rows exist in the test profile to exercise this
path.
DEFAULT_AGENT_TOOLSconsumers all use?? []fallbacks(verified by code review), so the path is provably safe.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.