[PR #4997] [MERGED] Remove dead capability prompt-context assignments #6573

Closed
opened 2026-10-23 04:11:43 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4997
Author: @SpicyMarinara
Created: 8/14/2026
Status: ✅ Merged
Merged: 8/14/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/4996-capability-context-quality


📝 Commits (1)

📊 Changes

1 file changed (+2 additions, -6 deletions)

View changed files

📝 packages/server/src/routes/generate.routes.ts (+2 -6)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository staging branch or a same-repository hotfix/* branch to main.

Linked issue

Closes #4996

Why this change

GitHub native Code Quality identified an always-overwritten initial capability prompt-context value and an unused non-game assignment. The cleanup preserves the context-injection side effects and game capability-provider behavior while clearing both release-quality findings.

What changed

  • Scope the collected prompt-context result to the game branch, where buildGmFormatReminder consumes its provides map.
  • Keep non-game context and roleplay-event injection awaited for side effects without storing its unused return value.
  • Remove the default result that every chat-mode path overwrote before use.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Automated proof on exact head 667d3aba6f48ada359b5a30bf0474937a68884ef:

  • pnpm check passed (Impeccable context, localization, workspace lint/type checks, and production builds).
  • pnpm --filter @marinara-engine/server lint passed.
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/capability-package-lifecycle.regression.ts passed; its intentional failure-fixture logs were emitted as expected.
  • The final diff changes only result binding: both conditional await injectCapabilityContexts(...) calls, their arguments, call order, injected message mutation, roleplay-event collection, and the game .provides consumer remain intact.

No browser or container pass was run because this patch is a mechanical TypeScript scoping cleanup with no runtime branch, output, UI, or built artifact contract change.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

No docs, localization, version, or changelog changes are needed because behavior and user-visible output are unchanged.

UI evidence (if applicable)

Not applicable; no UI changes.

Summary by CodeRabbit

  • Refactor
    • Improved internal handling of capability context during generation.
    • No user-visible behavior changes.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4997 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/14/2026 **Status:** ✅ Merged **Merged:** 8/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/4996-capability-context-quality` --- ### 📝 Commits (1) - [`667d3ab`](https://github.com/Pasta-Devs/Marinara-Engine/commit/667d3aba6f48ada359b5a30bf0474937a68884ef) fix capability prompt-context assignments (#4996) ### 📊 Changes **1 file changed** (+2 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/generate.routes.ts` (+2 -6) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository staging branch or a same-repository `hotfix/*` branch to `main`. ## Linked issue Closes #4996 ## Why this change GitHub native Code Quality identified an always-overwritten initial capability prompt-context value and an unused non-game assignment. The cleanup preserves the context-injection side effects and game capability-provider behavior while clearing both release-quality findings. ## What changed - Scope the collected prompt-context result to the game branch, where `buildGmFormatReminder` consumes its `provides` map. - Keep non-game context and roleplay-event injection awaited for side effects without storing its unused return value. - Remove the default result that every chat-mode path overwrote before use. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Automated proof on exact head `667d3aba6f48ada359b5a30bf0474937a68884ef`: - `pnpm check` passed (Impeccable context, localization, workspace lint/type checks, and production builds). - `pnpm --filter @marinara-engine/server lint` passed. - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/capability-package-lifecycle.regression.ts` passed; its intentional failure-fixture logs were emitted as expected. - The final diff changes only result binding: both conditional `await injectCapabilityContexts(...)` calls, their arguments, call order, injected message mutation, roleplay-event collection, and the game `.provides` consumer remain intact. No browser or container pass was run because this patch is a mechanical TypeScript scoping cleanup with no runtime branch, output, UI, or built artifact contract change. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) No docs, localization, version, or changelog changes are needed because behavior and user-visible output are unchanged. ## UI evidence (if applicable) Not applicable; no UI changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Improved internal handling of capability context during generation. * No user-visible behavior changes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:11:43 +07:00
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#6573
No description provided.