[GH-ISSUE #4996] [Issue]: Remove dead capability prompt-context assignments #2769

Closed
opened 2026-10-21 05:55:05 +07:00 by bsakaguchi · 2 comments
Owner

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 capabilityPromptContext in packages/server/src/routes/generate.routes.ts on 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

  1. Open PR #4995 and inspect its native Code Quality findings.
  2. Inspect capabilityPromptContext in packages/server/src/routes/generate.routes.ts at staging commit 4d749646fdce0b7422042097310d83203fb3ae3b.
  3. Observe the overwritten initial value and the unused non-game assignment.

Environment

  • Marinara Engine version: 2.4.2 staging (4d749646fdce0b7422042097310d83203fb3ae3b)
  • Install type: source/static analysis
  • OS + version: not runtime-specific
  • Browser or app shell: not applicable

Logs, screenshots, or video

Native Code Quality reports the initial capabilityPromptContext value 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

  • I DID NOT read this template and provide the requested details.
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 `capabilityPromptContext` in `packages/server/src/routes/generate.routes.ts` on 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 1. Open PR #4995 and inspect its native Code Quality findings. 2. Inspect `capabilityPromptContext` in `packages/server/src/routes/generate.routes.ts` at staging commit `4d749646fdce0b7422042097310d83203fb3ae3b`. 3. Observe the overwritten initial value and the unused non-game assignment. ## Environment - Marinara Engine version: 2.4.2 staging (`4d749646fdce0b7422042097310d83203fb3ae3b`) - Install type: source/static analysis - OS + version: not runtime-specific - Browser or app shell: not applicable ## Logs, screenshots, or video Native Code Quality reports the initial `capabilityPromptContext` value 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 - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:55:05 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 14, 2026):

Owned by @SpicyMarinara via draft PR #4997. The implementation boundary is limited to the two dead capabilityPromptContext assignments; prompt injection side effects and game capability-provider behavior must remain unchanged.

<!-- gh-comment-id:5288805081 --> @SpicyMarinara commented on GitHub (Aug 14, 2026): Owned by @SpicyMarinara via draft PR #4997. The implementation boundary is limited to the two dead `capabilityPromptContext` assignments; prompt injection side effects and game capability-provider behavior must remain unchanged.
Author
Owner

@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 .provides behavior. The fix passed pnpm validation, container builds, CodeQL, and CodeRabbit before promotion; tag v2.4.2 resolves to b50a007e66.

<!-- gh-comment-id:5289380842 --> @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 `.provides` behavior. The fix passed pnpm validation, container builds, CodeQL, and CodeRabbit before promotion; tag v2.4.2 resolves to b50a007e665ff81845228c7db9d1e32e9c4dc3a2.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2769
No description provided.