[PR #6522] [MERGED] fix: honor Game settings, restore Grok search, and sort sidebar folders #7213

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6522
Author: @SpicyMarinara
Created: 9/22/2026
Status: ✅ Merged
Merged: 9/22/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/sept22-game-parameters-grok-search


📝 Commits (5)

  • 0d0918e docs: track game parameters and Grok search fixes
  • b2b81b0 fix: respect Game generation settings and enable newer Grok tools
  • 0a8878e fix: apply sidebar sorting to folder rows
  • 97463d3 fix: localize the chat folder custom sort label
  • de4c565 fix(game): address helper defaults and truncated output review

📊 Changes

24 files changed (+693 additions, -216 deletions)

View changed files

📝 CHANGELOG.md (+6 -0)
📝 docs/connections/providers-reference.md (+1 -1)
📝 docs/prompts/generation-parameters.md (+3 -3)
📝 e2e/sept22-assigned-sweep.e2e.ts (+146 -0)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+28 -10)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+2 -2)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+22 -2)
📝 packages/client/src/components/panels/ConnectionsPanel.tsx (+10 -8)
📝 packages/client/src/components/panels/LorebooksPanel.tsx (+12 -1)
📝 packages/client/src/components/panels/PersonasPanel.tsx (+13 -2)
📝 packages/client/src/components/panels/PresetsPanel.tsx (+2 -2)
📝 packages/client/src/lib/panel-sort.ts (+13 -0)
📝 packages/client/src/localization/locales/en.json (+1 -0)
📝 packages/server/src/routes/encounter.routes.ts (+16 -6)
📝 packages/server/src/routes/game.routes.ts (+78 -150)
📝 packages/server/src/services/game/combat-boss.service.ts (+6 -2)
📝 packages/server/src/services/generation/game-tool-planning.ts (+5 -2)
📝 packages/server/src/services/generation/provider-generation-runtime.ts (+0 -16)
📝 packages/server/src/services/llm/providers/openai.provider.ts (+9 -5)
📝 packages/shared/src/constants/model-lists.ts (+6 -3)

...and 4 more files

📄 Description

Linked issue

Closes #6511
Closes #6521
Refs #6497 (folder-row follow-up requested by the maintainer)

Why this change

Game requests replaced saved generation settings with fixed values. Grok 4.6/4.7 were missing from the model catalog, so the unknown-model safeguard stripped tools and a web-search reply could stop at its preamble. Sidebar sorting changed folder contents but left the folder rows in their previous order.

What changed

  • Reuse the existing parameter resolvers for Game narration, setup, tool planning and combat helpers. Saved settings and Send switches take precedence over helper defaults; model, connection and package limits still apply.
  • Recognize Grok 4.6/4.7 and their supported context/reasoning settings. Keep the existing search tool and Chat Completions/Responses paths, including xAI connections using a proxy URL.
  • Apply sidebar sorting to folders in Characters, Personas, Lorebooks, Presets, Agents, Connections and Chats. Reuse the existing sorting helper; preserve membership and saved Custom ordering. Dragging a chat/connection folder selects Custom. Favorites/Tokens use loaded matching folder contents; Recent uses chat activity.

Validation

Observed automated results:

  • pnpm check passed, including localization, TypeScript, ESLint and production builds. One pre-existing hook-dependency warning remains in untouched GameNarration.tsx.
  • Complete Node regression suite: 348/348 passed. HTTP/SSE fixtures cover saved Game parameters, output limits, Send switches, and Grok tool-result continuation with streaming and reasoning capture on/off.
  • pnpm smoke:ui e2e/sept22-assigned-sweep.e2e.ts --grep folder --workers=1: 51/51 passed, across desktop Chromium, mobile Chromium and iPhone WebKit, light/dark themes. Four additional desktop drag/persistence checks passed after extending the same tests.
  • The new folder-row check failed against the original Characters panel and passed with the fix. pnpm check:e2e-types passed after the final test additions.
  • Full ARM64 Docker image built from 0a8878edd; node scripts/smoke-container.mjs marinara-6522-check full arm64 passed API/frontend/native-binding checks, persistent-data write/read across replacement, and clean shutdown.

Local CodeRabbit review of the combined patch completed with 0 findings. An earlier optional suggestion to wrap the three small encounter-option call sites was declined: they already reuse the shared resolvers, and another wrapper would not change behavior.

Human verification checklist (intentionally unchecked):

  • 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

Manually verify Game narration and helper calls with non-default connection/chat parameters. Manually verify a live Grok web-search reply with streaming on/off; local provider fixtures do not prove upstream service behavior. Manually verify sidebar sorting and folder dragging on a real phone.

Docs and release impact

Updated the generation-parameter and provider references and added changelog entries. Translation follow-up: #6523. No version bump.

  • 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

UI evidence

Before/after screenshots, including desktop, iPhone WebKit and Android-sized Chromium.

Scope

The requested diagnostic reply is posted on #6498; it stays open for the reporter's setup and logs. Existing TTS PR #6515 and the excluded discussion #6453 are outside this sweep.

Summary by CodeRabbit

  • New Features

    • Added support for Grok 4.6 and 4.7, including web search, 500,000-token context, and maximum reasoning.
    • Added a Custom sidebar sort option, with folder rows following name, date, favorites, tokens, and other sorting choices.
    • Dragging folders now preserves their custom order.
  • Bug Fixes

    • Game and encounter generation now honor saved connection and chat generation settings instead of applying fixed defaults.
    • Game-related helper and planning requests now use configured sampling, reasoning, and output limits.
    • Cut-off structured responses are now clearly reported.

🔄 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/6522 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/22/2026 **Status:** ✅ Merged **Merged:** 9/22/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/sept22-game-parameters-grok-search` --- ### 📝 Commits (5) - [`0d0918e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0d0918ef5aaf31c8b134dd62d125e576d34092c8) docs: track game parameters and Grok search fixes - [`b2b81b0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b2b81b046a20b8c7b3ace925d88f8b78ec2ab786) fix: respect Game generation settings and enable newer Grok tools - [`0a8878e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0a8878edd0caadce255ba148b3d97814c6768d17) fix: apply sidebar sorting to folder rows - [`97463d3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/97463d38021691825a0b9fec21dde408d731f12c) fix: localize the chat folder custom sort label - [`de4c565`](https://github.com/Pasta-Devs/Marinara-Engine/commit/de4c565f5c041bf94a817a53668b388a634fc353) fix(game): address helper defaults and truncated output review ### 📊 Changes **24 files changed** (+693 additions, -216 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+6 -0) 📝 `docs/connections/providers-reference.md` (+1 -1) 📝 `docs/prompts/generation-parameters.md` (+3 -3) 📝 `e2e/sept22-assigned-sweep.e2e.ts` (+146 -0) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+28 -10) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+2 -2) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+22 -2) 📝 `packages/client/src/components/panels/ConnectionsPanel.tsx` (+10 -8) 📝 `packages/client/src/components/panels/LorebooksPanel.tsx` (+12 -1) 📝 `packages/client/src/components/panels/PersonasPanel.tsx` (+13 -2) 📝 `packages/client/src/components/panels/PresetsPanel.tsx` (+2 -2) 📝 `packages/client/src/lib/panel-sort.ts` (+13 -0) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) 📝 `packages/server/src/routes/encounter.routes.ts` (+16 -6) 📝 `packages/server/src/routes/game.routes.ts` (+78 -150) 📝 `packages/server/src/services/game/combat-boss.service.ts` (+6 -2) 📝 `packages/server/src/services/generation/game-tool-planning.ts` (+5 -2) 📝 `packages/server/src/services/generation/provider-generation-runtime.ts` (+0 -16) 📝 `packages/server/src/services/llm/providers/openai.provider.ts` (+9 -5) 📝 `packages/shared/src/constants/model-lists.ts` (+6 -3) _...and 4 more files_ </details> ### 📄 Description ## Linked issue Closes #6511 Closes #6521 Refs #6497 (folder-row follow-up requested by the maintainer) ## Why this change Game requests replaced saved generation settings with fixed values. Grok 4.6/4.7 were missing from the model catalog, so the unknown-model safeguard stripped tools and a web-search reply could stop at its preamble. Sidebar sorting changed folder contents but left the folder rows in their previous order. ## What changed - Reuse the existing parameter resolvers for Game narration, setup, tool planning and combat helpers. Saved settings and Send switches take precedence over helper defaults; model, connection and package limits still apply. - Recognize Grok 4.6/4.7 and their supported context/reasoning settings. Keep the existing search tool and Chat Completions/Responses paths, including xAI connections using a proxy URL. - Apply sidebar sorting to folders in Characters, Personas, Lorebooks, Presets, Agents, Connections and Chats. Reuse the existing sorting helper; preserve membership and saved Custom ordering. Dragging a chat/connection folder selects Custom. Favorites/Tokens use loaded matching folder contents; Recent uses chat activity. ## Validation Observed automated results: - `pnpm check` passed, including localization, TypeScript, ESLint and production builds. One pre-existing hook-dependency warning remains in untouched `GameNarration.tsx`. - Complete Node regression suite: **348/348 passed**. HTTP/SSE fixtures cover saved Game parameters, output limits, Send switches, and Grok tool-result continuation with streaming and reasoning capture on/off. - `pnpm smoke:ui e2e/sept22-assigned-sweep.e2e.ts --grep folder --workers=1`: **51/51 passed**, across desktop Chromium, mobile Chromium and iPhone WebKit, light/dark themes. Four additional desktop drag/persistence checks passed after extending the same tests. - The new folder-row check failed against the original Characters panel and passed with the fix. `pnpm check:e2e-types` passed after the final test additions. - Full ARM64 Docker image built from `0a8878edd`; `node scripts/smoke-container.mjs marinara-6522-check full arm64` passed API/frontend/native-binding checks, persistent-data write/read across replacement, and clean shutdown. Local CodeRabbit review of the combined patch completed with **0 findings**. An earlier optional suggestion to wrap the three small encounter-option call sites was declined: they already reuse the shared resolvers, and another wrapper would not change behavior. Human verification checklist (intentionally unchecked): - [ ] `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 Manually verify Game narration and helper calls with non-default connection/chat parameters. Manually verify a live Grok web-search reply with streaming on/off; local provider fixtures do not prove upstream service behavior. Manually verify sidebar sorting and folder dragging on a real phone. ## Docs and release impact Updated the generation-parameter and provider references and added changelog entries. Translation follow-up: #6523. No version bump. - [ ] 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 ## UI evidence [Before/after screenshots, including desktop, iPhone WebKit and Android-sized Chromium](https://gist.github.com/SpicyMarinara/0910d2769a016ee6757caf12cb938b5e). ## Scope The requested diagnostic reply is posted on #6498; it stays open for the reporter's setup and logs. Existing TTS PR #6515 and the excluded discussion #6453 are outside this sweep. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added support for Grok 4.6 and 4.7, including web search, 500,000-token context, and maximum reasoning. - Added a **Custom** sidebar sort option, with folder rows following name, date, favorites, tokens, and other sorting choices. - Dragging folders now preserves their custom order. - **Bug Fixes** - Game and encounter generation now honor saved connection and chat generation settings instead of applying fixed defaults. - Game-related helper and planning requests now use configured sampling, reasoning, and output limits. - Cut-off structured responses are now clearly reported. <!-- 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:17:34 +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#7213
No description provided.