[GH-ISSUE #1445] [Issue]: Settings tabs keep inactive views mounted and can freeze the right panel #718

Closed
opened 2026-10-20 17:32:19 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (May 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1445

Originally assigned to: @Promansis on GitHub.

Summary

The shell settings panel keeps previously visited settings tabs mounted after they become inactive. Heavy inactive settings tabs can keep work alive offscreen and make the right panel feel frozen/stuttery after moving through multiple settings areas.

Expected behavior

Only the active settings tab should be mounted/rendered. Switching settings tabs should unmount inactive views so hidden settings surfaces do not keep subscriptions, effects, or expensive UI trees alive.

Actual behavior

On upstream/refactor, the settings panel retains visited views:

  • src/features/shell/settings/components/SettingsPanel.tsx still keeps a module-level mountedSettingsTabs set and renders every visited settings tab hidden/clipped.

The rebased fix branch fix/panel-mount-freeze replaces this with active-only settings tab mounting and keeps the right panel container active-only.

Steps to reproduce

  1. On upstream/refactor, open Settings in the right-side panel.
  2. Visit several settings tabs, especially heavier tabs.
  3. Continue switching settings tabs and observe shell responsiveness as inactive settings surfaces remain mounted offscreen.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: upstream/refactor at a6d2fc8b79093f35e766528460175240f5588552; candidate fix branch fix/panel-mount-freeze at d7d27f06e10051a7f2cfdd977344d4f5d2b5ebe3
  • Run mode: web shell / Tauri shell UI
  • OS + version: not captured
  • Node + pnpm versions: Node v24.15.0, pnpm 10.33.2
  • Rust version, if relevant: not relevant
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

No screenshot/video captured. Evidence is from code inspection and the rebased fix diff.

Regression notes

This was identified while rebasing fix/panel-mount-freeze onto current upstream/refactor. The fix still applies because inactive settings tabs remain cached on the current refactor branch.

Additional context

The fix is intentionally limited to React shell UI mounting behavior:

  • src/app/shell/RightPanel.tsx
  • src/features/shell/settings/components/SettingsPanel.tsx

pnpm typecheck passed after rebasing the fix locally.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (May 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1445 Originally assigned to: @Promansis on GitHub. ## Summary The shell settings panel keeps previously visited settings tabs mounted after they become inactive. Heavy inactive settings tabs can keep work alive offscreen and make the right panel feel frozen/stuttery after moving through multiple settings areas. ## Expected behavior Only the active settings tab should be mounted/rendered. Switching settings tabs should unmount inactive views so hidden settings surfaces do not keep subscriptions, effects, or expensive UI trees alive. ## Actual behavior On `upstream/refactor`, the settings panel retains visited views: - `src/features/shell/settings/components/SettingsPanel.tsx` still keeps a module-level `mountedSettingsTabs` set and renders every visited settings tab hidden/clipped. The rebased fix branch `fix/panel-mount-freeze` replaces this with active-only settings tab mounting and keeps the right panel container active-only. ## Steps to reproduce 1. On `upstream/refactor`, open Settings in the right-side panel. 2. Visit several settings tabs, especially heavier tabs. 3. Continue switching settings tabs and observe shell responsiveness as inactive settings surfaces remain mounted offscreen. ## Impact area <!-- Check the areas you think are relevant. Leave uncertain items unchecked. --> - [x] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `upstream/refactor` at `a6d2fc8b79093f35e766528460175240f5588552`; candidate fix branch `fix/panel-mount-freeze` at `d7d27f06e10051a7f2cfdd977344d4f5d2b5ebe3` - Run mode: web shell / Tauri shell UI - OS + version: not captured - Node + pnpm versions: Node `v24.15.0`, pnpm `10.33.2` - Rust version, if relevant: not relevant - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video No screenshot/video captured. Evidence is from code inspection and the rebased fix diff. ## Regression notes This was identified while rebasing `fix/panel-mount-freeze` onto current `upstream/refactor`. The fix still applies because inactive settings tabs remain cached on the current refactor branch. ## Additional context The fix is intentionally limited to React shell UI mounting behavior: - `src/app/shell/RightPanel.tsx` - `src/features/shell/settings/components/SettingsPanel.tsx` `pnpm typecheck` passed after rebasing the fix locally. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:32:19 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
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#718
No description provided.