mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4996] [Issue]: Remove dead capability prompt-context assignments #2769
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#2769
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?
Originally created by @SpicyMarinara on GitHub (Aug 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4996
Originally assigned to: @SpicyMarinara on GitHub.
Summary
GitHub native Code Quality reports two dead assignments around
capabilityPromptContextinpackages/server/src/routes/generate.routes.tson the v2.4.2 staging tree. The cleanup must preserve prompt-context and roleplay-event injection side effects in every chat mode, plus capability-provided game-system suppression.Expected behavior
The game path should retain the collected context result needed by
buildGmFormatReminder, while non-game paths should await context injection without retaining an unused result.Actual behavior
The variable has a default value that is always overwritten, and the non-game assignment stores a return value that is never read. Native Code Quality reports both as useless assignments.
Steps to reproduce
capabilityPromptContextinpackages/server/src/routes/generate.routes.tsat staging commit4d749646fdce0b7422042097310d83203fb3ae3b.Environment
4d749646fdce0b7422042097310d83203fb3ae3b)Logs, screenshots, or video
Native Code Quality reports the initial
capabilityPromptContextvalue as unused and its non-game assignment as unused.Additional context
This is a mechanical release-quality cleanup discovered while reviewing promotion PR #4995. It must not change prompt contents, capability execution, or user-visible behavior.
Template check
@SpicyMarinara commented on GitHub (Aug 14, 2026):
Owned by @SpicyMarinara via draft PR #4997. The implementation boundary is limited to the two dead
capabilityPromptContextassignments; prompt injection side effects and game capability-provider behavior must remain unchanged.@SpicyMarinara commented on GitHub (Aug 14, 2026):
Completed and published in v2.4.2. The dead capability prompt-context assignments were removed without changing the awaited package-injection side effects or the Game-mode
.providesbehavior. The fix passed pnpm validation, container builds, CodeQL, and CodeRabbit before promotion; tag v2.4.2 resolves tob50a007e66.