[PR #6310] [MERGED] fix: address September 18 settings, tracker and browser issues #7132

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

📋 Pull Request Information

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

Base: staging ← Head: codex/sept18-issue-sweep


📝 Commits (5)

  • ebea643 chore: start September 18 issue sweep
  • 0389146 fix: honor tracker sections and repair settings and browser fixtures
  • 850e6f6 test: isolate wizard preferences and follow mobile asset search
  • 50ae2f5 test: cover Beholder state in tracker section requests
  • b8d365a test: prove each tracker stays in its own preset section

📊 Changes

19 files changed (+503 additions, -86 deletions)

View changed files

📝 CHANGELOG.md (+7 -0)
📝 e2e/assigned-issue-sweep.e2e.ts (+3 -4)
📝 e2e/chat-sweep.e2e.ts (+8 -12)
📝 e2e/game-combat-ai.e2e.ts (+3 -4)
📝 e2e/game-experience-setup.e2e.ts (+4 -4)
📝 e2e/game-hybrid-terrain.e2e.ts (+3 -8)
📝 e2e/issue-sweep-chat.e2e.ts (+3 -4)
📝 e2e/issue-sweep-defaults.e2e.ts (+14 -1)
📝 e2e/issue-sweep-settings.e2e.ts (+54 -0)
➕ e2e/vite-fixture-dependencies.ts (+22 -0)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+11 -2)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+1 -1)
📝 packages/client/src/localization/locales/en.json (+1 -0)
📝 packages/server/src/routes/generate.routes.ts (+4 -0)
📝 packages/server/src/routes/generate/dry-run-route.ts (+36 -24)
📝 packages/server/src/services/generation/committed-tracker-context.ts (+28 -10)
📝 packages/server/src/services/generation/runtime-agent-sections.ts (+6 -0)
📝 packages/server/src/services/prompt/marker-expander.ts (+4 -12)
➕ scripts/regressions/tracker-sections.regression.ts (+291 -0)

📄 Description

Settings search could list Game Assets but open the wrong tab, and built-in tracker Agent Sections stayed empty while their saved state appeared at the default prompt position. This sweep restores those paths, identifies installed staging builds on Home, and removes two sources of browser-fixture failures.

  • Route Game Assets search to its existing Imports section and controls.
  • Place committed tracker state through the existing runtime-section replacement and formatter. A tracker consumed by an active section is excluded from the automatic block; other trackers and player notes retain their fallback placement. Apply the same behavior to generation and prompt preview.
  • Reuse /updates/channel for the localized Home/header staging label, independently of the selected update target.
  • Share the existing Vite-import resolver across every timing-dependent component fixture, deliberately clearing resource timings before mounting. Wait for the settings drawer before the wizard reload and retain the primary failure if cleanup runs after teardown. Isolate the standalone wizard's persisted UI preferences.

Closes #6309
Closes #6308
Closes #6307
Closes #6304
Closes #6303

Verification

  • pnpm install, pnpm check, pnpm version:check, pnpm regression:prompt, and final pnpm check:e2e-types passed.
  • Node runner: 295/296 passed initially; the unchanged POSIX shutdown regression exceeded its 30-second budget during concurrent browser work, then passed alone in 20.2 seconds. The new tracker regression passed. Restoring the old server implementation made it fail at the requested placement assertion.
  • Browser sweep: 158 passed, five skipped, eight fixture assertion/isolation failures. After correcting those fixtures, all three legacy-wizard cases and all six Game Assets cases passed across desktop Chromium, mobile Chromium and mobile WebKit. Other migrated fixture cases and stable/staging labels in both themes passed in the initial run.
  • The reported dark Roleplay defaults case passed ten consecutive mobile WebKit repetitions after the synchronization fix, with source held fixed. The original CI trace showed canceled settings imports at reload. An earlier local baseline was interrupted by development reloads and is not treated as a controlled comparison.
  • Local CodeRabbit: zero findings on the implementation, the two-file fixture follow-up, the Beholder coverage follow-up, and the per-tracker placement follow-up. GitHub review identified the missing Beholder fixture; it now persists a real successful run and verifies Physical State placement, fallback, regeneration, gating and no duplication in all three formats. A second review requested stricter position assertions; each tracker now has its own start/end markers, and the regression passes against those individual bounds.
  • Before/after browser screenshots (download the HTML to view): synthetic data, dark desktop and light narrow viewport.

Prompt boundary and manual verification

The runnable regression captures actual provider requests using a local synthetic provider and compares dry-run prompts. It covers all seven committed tracker types, XML/Markdown/plain formats, explicit/depth placement, single insertion, automatic fallback, player notes, disabled sections/groups/agents, inactive trackers, and regeneration using the preceding committed snapshot instead of a discarded target state. It reuses the existing committed-state formatter and does not alter tracker execution. Live-provider roleplay quality is not established by this fixture.

  • Manually verify built-in tracker sections in a real chat's Exact Text Model Request, including regeneration and continuation.
  • Manually verify Game Assets search and its controls on a physical mobile device.
  • Manually verify Home labels an installed staging checkout and leaves a stable installation's version unchanged.

Combat documentation parity (#6300) is tracked separately in #6311 against docs-i18n, following the repository's translation workflow.

Summary by CodeRabbit

  • New Features

    • Staging installations now display a “(STAGING)” label alongside the app version, independently of the selected update channel.
    • Game Assets is now available under Settings → Imports, including asset browsing, uploads, and rescan controls.
    • Built-in trackers now place selected turn state in their configured sections without duplicating it elsewhere.
  • Bug Fixes

    • Improved wizard persistence and browser regression reliability.
    • Preserved original test errors when cleanup also fails.

🔄 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/6310 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/18/2026 **Status:** ✅ Merged **Merged:** 9/18/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/sept18-issue-sweep` --- ### 📝 Commits (5) - [`ebea643`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ebea643cf1e725d78d1029b1fe012d49c99cd532) chore: start September 18 issue sweep - [`0389146`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0389146c75d708e95aa1d17b85fb628a462af442) fix: honor tracker sections and repair settings and browser fixtures - [`850e6f6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/850e6f6a59a503846985b86f78105897650b6d3d) test: isolate wizard preferences and follow mobile asset search - [`50ae2f5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/50ae2f5975a676780ea301bd11775aab38a8ab3f) test: cover Beholder state in tracker section requests - [`b8d365a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b8d365a25dc6045159ea32b9881b429457957a2a) test: prove each tracker stays in its own preset section ### 📊 Changes **19 files changed** (+503 additions, -86 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+7 -0) 📝 `e2e/assigned-issue-sweep.e2e.ts` (+3 -4) 📝 `e2e/chat-sweep.e2e.ts` (+8 -12) 📝 `e2e/game-combat-ai.e2e.ts` (+3 -4) 📝 `e2e/game-experience-setup.e2e.ts` (+4 -4) 📝 `e2e/game-hybrid-terrain.e2e.ts` (+3 -8) 📝 `e2e/issue-sweep-chat.e2e.ts` (+3 -4) 📝 `e2e/issue-sweep-defaults.e2e.ts` (+14 -1) 📝 `e2e/issue-sweep-settings.e2e.ts` (+54 -0) ➕ `e2e/vite-fixture-dependencies.ts` (+22 -0) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+11 -2) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+1 -1) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+4 -0) 📝 `packages/server/src/routes/generate/dry-run-route.ts` (+36 -24) 📝 `packages/server/src/services/generation/committed-tracker-context.ts` (+28 -10) 📝 `packages/server/src/services/generation/runtime-agent-sections.ts` (+6 -0) 📝 `packages/server/src/services/prompt/marker-expander.ts` (+4 -12) ➕ `scripts/regressions/tracker-sections.regression.ts` (+291 -0) </details> ### 📄 Description Settings search could list Game Assets but open the wrong tab, and built-in tracker Agent Sections stayed empty while their saved state appeared at the default prompt position. This sweep restores those paths, identifies installed staging builds on Home, and removes two sources of browser-fixture failures. - Route Game Assets search to its existing Imports section and controls. - Place committed tracker state through the existing runtime-section replacement and formatter. A tracker consumed by an active section is excluded from the automatic block; other trackers and player notes retain their fallback placement. Apply the same behavior to generation and prompt preview. - Reuse `/updates/channel` for the localized Home/header staging label, independently of the selected update target. - Share the existing Vite-import resolver across every timing-dependent component fixture, deliberately clearing resource timings before mounting. Wait for the settings drawer before the wizard reload and retain the primary failure if cleanup runs after teardown. Isolate the standalone wizard's persisted UI preferences. Closes #6309 Closes #6308 Closes #6307 Closes #6304 Closes #6303 ## Verification - `pnpm install`, `pnpm check`, `pnpm version:check`, `pnpm regression:prompt`, and final `pnpm check:e2e-types` passed. - Node runner: 295/296 passed initially; the unchanged POSIX shutdown regression exceeded its 30-second budget during concurrent browser work, then passed alone in 20.2 seconds. The new tracker regression passed. Restoring the old server implementation made it fail at the requested placement assertion. - Browser sweep: 158 passed, five skipped, eight fixture assertion/isolation failures. After correcting those fixtures, all three legacy-wizard cases and all six Game Assets cases passed across desktop Chromium, mobile Chromium and mobile WebKit. Other migrated fixture cases and stable/staging labels in both themes passed in the initial run. - The reported dark Roleplay defaults case passed ten consecutive mobile WebKit repetitions after the synchronization fix, with source held fixed. The original CI trace showed canceled settings imports at reload. An earlier local baseline was interrupted by development reloads and is not treated as a controlled comparison. - Local CodeRabbit: zero findings on the implementation, the two-file fixture follow-up, the Beholder coverage follow-up, and the per-tracker placement follow-up. GitHub review identified the missing Beholder fixture; it now persists a real successful run and verifies Physical State placement, fallback, regeneration, gating and no duplication in all three formats. A second review requested stricter position assertions; each tracker now has its own start/end markers, and the regression passes against those individual bounds. - [Before/after browser screenshots](https://gist.github.com/SpicyMarinara/625243d60b35edde6c07c6c50b4da2fc) (download the HTML to view): synthetic data, dark desktop and light narrow viewport. ## Prompt boundary and manual verification The runnable regression captures actual provider requests using a local synthetic provider and compares dry-run prompts. It covers all seven committed tracker types, XML/Markdown/plain formats, explicit/depth placement, single insertion, automatic fallback, player notes, disabled sections/groups/agents, inactive trackers, and regeneration using the preceding committed snapshot instead of a discarded target state. It reuses the existing committed-state formatter and does not alter tracker execution. Live-provider roleplay quality is not established by this fixture. - [ ] Manually verify built-in tracker sections in a real chat's Exact Text Model Request, including regeneration and continuation. - [ ] Manually verify Game Assets search and its controls on a physical mobile device. - [ ] Manually verify Home labels an installed staging checkout and leaves a stable installation's version unchanged. Combat documentation parity (#6300) is tracked separately in #6311 against `docs-i18n`, following the repository's translation workflow. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Staging installations now display a “(STAGING)” label alongside the app version, independently of the selected update channel. - Game Assets is now available under Settings → Imports, including asset browsing, uploads, and rescan controls. - Built-in trackers now place selected turn state in their configured sections without duplicating it elsewhere. - **Bug Fixes** - Improved wizard persistence and browser regression reliability. - Preserved original test errors when cleanup also fails. <!-- 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:16:49 +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#7132
No description provided.