[PR #6420] [MERGED] fix: chat dragging, background translation, package loading, and Roleplay controls #7171

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

📋 Pull Request Information

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

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


📝 Commits (5)

  • b92dc1f chore: start September 20 issue sweep
  • 122cde5 fix: keep desktop dragging and background chat completion reliable
  • b37e942 fix: bound Game narration parsing and update server translation fixtures
  • 057894c fix: keep translation independent and correct roleplay tracker and dice guidance
  • 6fa96dc fix: refresh server translations independently of cached settings

📊 Changes

43 files changed (+1653 additions, -659 deletions)

View changed files

📝 CHANGELOG.md (+11 -0)
📝 docs/agents/hierarchical-maps.md (+3 -1)
📝 e2e/chat-sweep.e2e.ts (+16 -13)
📝 e2e/core-flows.e2e.ts (+17 -0)
📝 e2e/drag-list-scroll.e2e.ts (+20 -8)
📝 e2e/inventory-tracker-details.e2e.ts (+16 -0)
📝 e2e/translation-notifications.e2e.ts (+149 -35)
📝 e2e/translation-only.e2e.ts (+34 -47)
➕ e2e/world-tracker-controls.e2e.ts (+122 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatResourceDropOverlay.tsx (+30 -3)
📝 packages/client/src/components/game/GameNarration.tsx (+17 -0)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+2 -1)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+33 -1)
📝 packages/client/src/components/panels/PersonasPanel.tsx (+11 -1)
📝 packages/client/src/components/ui/TouchDragHandle.tsx (+1 -0)
📝 packages/client/src/features/tracker-panel/components/sections/WorldEditableTile.tsx (+7 -2)
📝 packages/client/src/features/tracker-panel/components/sections/WorldForecastTile.tsx (+2 -0)
📝 packages/client/src/hooks/use-chats.ts (+15 -4)
📝 packages/client/src/hooks/use-generate.ts (+30 -44)

...and 23 more files

📄 Description

Linked issue

Closes #6399
Closes #6413
Closes #6412
Closes #6403
Closes #6421
Closes #6424
Closes #6425
Refs #6414 (diagnosis posted; still open pending a reproducible symptom)
Refs #6422 (translated World Maps guidance)

Why this change

Desktop drags prevented wheel scrolling, automatic translation depended on an open page, and downloaded packages could not resolve the Claude SDK native helper. In Roleplay, mobile weather controls overlapped their values and the dice instruction encouraged numeric mechanics in narration.

What changed

  • Reuse the touch drag lifecycle for desktop mouse dragging, including wheel/edge scrolling, Escape cancellation, folder moves, and assignment to a chat.
  • Translate final saved assistant swipes on the server after rewriting and commands. Release generation independently, refresh completed translations through the existing status endpoint, and wait for persistence before completion alerts. Protect edited content, hidden translations, inactive swipes, and existing Game backfill/manual translation. Jobs survive browser closure; they are not a persistent queue across server restarts.
  • Link installed Claude SDK native helpers into the generated capability snapshot resolution path. Refresh managed links after updates, preserve real directories, and exclude this disposable cache from launcher backups.
  • Put World forecast edit/lock controls at the inner edge with reserved text space. Keep optional dice DC/modifier values inside command/tool fields through a short prompt correction.
  • Make the inventory persistence fixture disable toolbar animation and confirm editing modes; record the square World Maps artwork guidance from Pasta-Devs/Marinara-Agents#966.

The suspension report (#6414) remains open: its log proves delayed timer callbacks but does not distinguish sleep, clock changes, or a blocked server. The investigation is posted on that issue.

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

Local validation completed: pnpm check (including localization, TypeScript, lint and the production build), prompt regressions, focused native SDK/storage/dice regressions, and 42 translation/dice browser cases. The World tracker has 6 passing cases across desktop Chromium, mobile Chromium and mobile WebKit in light/dark themes; its mobile overlap check failed before the fix. Inventory persistence has 6 passing cases after the CI trace identified an animation-clipped click.

The hosted full Node suite passed on 057894cdb; it remains a required check on the final head. The last client review corrections pass pnpm check and 18 browser cases covering stale settings, unrelated server work, navigation, evicted caches, completion alerts and cancellation.

Local CodeRabbit completed with two follow-ups: World Maps translations (tracked in #6422/#6423) and dispatching translation for a saved reply when later processing fails. The latter now shares the normal dispatch with a finally fallback; a real-route fault-injection regression fails before the fix and passes afterward. Explicit cancellation is preserved. Both additional hosted review findings were reproduced before fixing: stale cached settings sent alerts before translation, and unrelated server work suppressed Game backfill. Removing those assumptions passes all 18 final browser cases. The final ARM64 Docker image built and served both /api/health and the frontend successfully; the disposable smoke container was removed. Required hosted checks and CodeRabbit remain merge gates.

Focused browser evidence includes mouse drag scrolling and chat assignment; server translation after tab closure, reopening during translation, notification ordering, failure, a second send while translation is pending, and preserved manual/backfill behavior; World forecast editing and locks in both themes across desktop Chromium, Android Chromium emulation and iPhone WebKit emulation.

Manually verify physical touch devices, real external translation providers, model compliance with the revised dice instruction, and affected native SDK packages on Windows/Linux. Those are not claimed as local proof: mobile checks are emulations and provider tests use local fixtures. The hosted browser shards are the full-suite gate; the earlier local full-suite attempt exposed outdated translation fixtures and was stopped rather than reported as passing.

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)

Changelog entries accompany the fixes. World Maps translated guidance is tracked by #6422 / #6423. No release version change.

UI evidence (if applicable)

Drag before/after screenshots and logs and World tracker before/after screenshots and logs. Download the HTML files to view embedded screenshots. All fixtures are synthetic; no user chat data is included.

Summary by CodeRabbit

  • New Features

    • Added temperature and weather controls to roleplay world trackers, including editable values and lock mode.
    • Added desktop mouse dragging for chats, characters, and personas, with folder assignment, scrolling, and Escape cancellation.
    • Automatic translations now finish and remain saved even after leaving or closing a page.
    • Improved translation handling across regenerated and game-narration messages.
  • Bug Fixes

    • Improved bundled CLI support for native helper resolution.
    • Refined roleplay dice instructions for clearer command and difficulty handling.
  • Documentation

    • Clarified recommended square artwork dimensions for hierarchical map backgrounds.

🔄 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/6420 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/20/2026 **Status:** ✅ Merged **Merged:** 9/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/sept20-issue-sweep` --- ### 📝 Commits (5) - [`b92dc1f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b92dc1f8af1947c303ec6d7994a6fe9ad127d799) chore: start September 20 issue sweep - [`122cde5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/122cde57f604d5c88701c4bd81c92d5048d75ecd) fix: keep desktop dragging and background chat completion reliable - [`b37e942`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b37e94216316620dd392df23c417bacd24492cb8) fix: bound Game narration parsing and update server translation fixtures - [`057894c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/057894cdbd7646cf92c1c26df6d7c0ba3c98bcc8) fix: keep translation independent and correct roleplay tracker and dice guidance - [`6fa96dc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6fa96dc90e69eeb7c3c3e545240dc8624402500f) fix: refresh server translations independently of cached settings ### 📊 Changes **43 files changed** (+1653 additions, -659 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+11 -0) 📝 `docs/agents/hierarchical-maps.md` (+3 -1) 📝 `e2e/chat-sweep.e2e.ts` (+16 -13) 📝 `e2e/core-flows.e2e.ts` (+17 -0) 📝 `e2e/drag-list-scroll.e2e.ts` (+20 -8) 📝 `e2e/inventory-tracker-details.e2e.ts` (+16 -0) 📝 `e2e/translation-notifications.e2e.ts` (+149 -35) 📝 `e2e/translation-only.e2e.ts` (+34 -47) ➕ `e2e/world-tracker-controls.e2e.ts` (+122 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatResourceDropOverlay.tsx` (+30 -3) 📝 `packages/client/src/components/game/GameNarration.tsx` (+17 -0) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+2 -1) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+33 -1) 📝 `packages/client/src/components/panels/PersonasPanel.tsx` (+11 -1) 📝 `packages/client/src/components/ui/TouchDragHandle.tsx` (+1 -0) 📝 `packages/client/src/features/tracker-panel/components/sections/WorldEditableTile.tsx` (+7 -2) 📝 `packages/client/src/features/tracker-panel/components/sections/WorldForecastTile.tsx` (+2 -0) 📝 `packages/client/src/hooks/use-chats.ts` (+15 -4) 📝 `packages/client/src/hooks/use-generate.ts` (+30 -44) _...and 23 more files_ </details> ### 📄 Description ## Linked issue Closes #6399 Closes #6413 Closes #6412 Closes #6403 Closes #6421 Closes #6424 Closes #6425 Refs #6414 (diagnosis posted; still open pending a reproducible symptom) Refs #6422 (translated World Maps guidance) ## Why this change Desktop drags prevented wheel scrolling, automatic translation depended on an open page, and downloaded packages could not resolve the Claude SDK native helper. In Roleplay, mobile weather controls overlapped their values and the dice instruction encouraged numeric mechanics in narration. ## What changed - Reuse the touch drag lifecycle for desktop mouse dragging, including wheel/edge scrolling, Escape cancellation, folder moves, and assignment to a chat. - Translate final saved assistant swipes on the server after rewriting and commands. Release generation independently, refresh completed translations through the existing status endpoint, and wait for persistence before completion alerts. Protect edited content, hidden translations, inactive swipes, and existing Game backfill/manual translation. Jobs survive browser closure; they are not a persistent queue across server restarts. - Link installed Claude SDK native helpers into the generated capability snapshot resolution path. Refresh managed links after updates, preserve real directories, and exclude this disposable cache from launcher backups. - Put World forecast edit/lock controls at the inner edge with reserved text space. Keep optional dice DC/modifier values inside command/tool fields through a short prompt correction. - Make the inventory persistence fixture disable toolbar animation and confirm editing modes; record the square World Maps artwork guidance from Pasta-Devs/Marinara-Agents#966. The suspension report (#6414) remains open: its log proves delayed timer callbacks but does not distinguish sleep, clock changes, or a blocked server. The investigation is posted on that issue. ## 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 Local validation completed: `pnpm check` (including localization, TypeScript, lint and the production build), prompt regressions, focused native SDK/storage/dice regressions, and 42 translation/dice browser cases. The World tracker has 6 passing cases across desktop Chromium, mobile Chromium and mobile WebKit in light/dark themes; its mobile overlap check failed before the fix. Inventory persistence has 6 passing cases after the CI trace identified an animation-clipped click. The hosted full Node suite passed on 057894cdb; it remains a required check on the final head. The last client review corrections pass `pnpm check` and 18 browser cases covering stale settings, unrelated server work, navigation, evicted caches, completion alerts and cancellation. Local CodeRabbit completed with two follow-ups: World Maps translations (tracked in #6422/#6423) and dispatching translation for a saved reply when later processing fails. The latter now shares the normal dispatch with a `finally` fallback; a real-route fault-injection regression fails before the fix and passes afterward. Explicit cancellation is preserved. Both additional hosted review findings were reproduced before fixing: stale cached settings sent alerts before translation, and unrelated server work suppressed Game backfill. Removing those assumptions passes all 18 final browser cases. The final ARM64 Docker image built and served both `/api/health` and the frontend successfully; the disposable smoke container was removed. Required hosted checks and CodeRabbit remain merge gates. Focused browser evidence includes mouse drag scrolling and chat assignment; server translation after tab closure, reopening during translation, notification ordering, failure, a second send while translation is pending, and preserved manual/backfill behavior; World forecast editing and locks in both themes across desktop Chromium, Android Chromium emulation and iPhone WebKit emulation. Manually verify physical touch devices, real external translation providers, model compliance with the revised dice instruction, and affected native SDK packages on Windows/Linux. Those are not claimed as local proof: mobile checks are emulations and provider tests use local fixtures. The hosted browser shards are the full-suite gate; the earlier local full-suite attempt exposed outdated translation fixtures and was stopped rather than reported as passing. ## 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) Changelog entries accompany the fixes. World Maps translated guidance is tracked by #6422 / #6423. No release version change. ## UI evidence (if applicable) [Drag before/after screenshots and logs](https://gist.github.com/SpicyMarinara/5a65322195d4f6f898d121842e60fe8a) and [World tracker before/after screenshots and logs](https://gist.github.com/SpicyMarinara/a30194d878a0f9f6f6f27aa4d969582e). Download the HTML files to view embedded screenshots. All fixtures are synthetic; no user chat data is included. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added temperature and weather controls to roleplay world trackers, including editable values and lock mode. - Added desktop mouse dragging for chats, characters, and personas, with folder assignment, scrolling, and Escape cancellation. - Automatic translations now finish and remain saved even after leaving or closing a page. - Improved translation handling across regenerated and game-narration messages. - **Bug Fixes** - Improved bundled CLI support for native helper resolution. - Refined roleplay dice instructions for clearer command and difficulty handling. - **Documentation** - Clarified recommended square artwork dimensions for hierarchical map backgrounds. <!-- 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:12 +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#7171
No description provided.