[PR #1689] [MERGED] Fix desktop Home closing shell panels #5215

Closed
opened 2026-10-22 04:14:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1689
Author: @cha1latte
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @cha1latte

Base: refactor ← Head: bughunt/refactor-lane1-shell-20260531


📝 Commits (1)

  • 81e8f9e Fix desktop home panel reset

📊 Changes

3 files changed (+3 additions, -1 deletions)

View changed files

➕ docs/pr-evidence/refactor-lane1-shell-20260531/home-after.png (+0 -0)
➕ docs/pr-evidence/refactor-lane1-shell-20260531/home-before.png (+0 -0)
📝 src/app/shell/WindowTitleBar.tsx (+3 -1)

📄 Description

Linked issue

N/A - refactor multi-agent bug-hunt lane 1.

Why this change

The desktop title-bar Home button did not return the shell to a true Home surface when a right-side tool panel was open. Clicking Home after opening Settings left the Settings panel visible, so the Home button did not become the current page.

What changed

  • Close the right-side panel from the desktop title-bar Home handler, matching the existing shell cleanup expected when returning home.
  • Added scoped before/after UI evidence for the reproduced Settings -> Home path.

Refactor impact

Primary owner:

App shell.

Impact areas reviewed:

  • Desktop title bar Home navigation.
  • Right panel open/close state.
  • Home current-state indicator.
  • Desktop panel navigation after returning Home.

Boundary notes:

No engine, shared API, Rust, remote-runtime, schema, storage, auth, dependency, version, or prompt-pipeline boundaries changed.

Pressure points touched:

WindowTitleBar.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

Codex machine proof:

  • node scratch/lane1-shell-home-repro.mjs reproduced the bug before the fix: Settings stayed open after clicking desktop Home.
  • MARINARA_PROOF_MODE=after node scratch/lane1-shell-home-repro.mjs passed after the fix: Settings closed and Home became aria-current="page".
  • node scratch/lane1-shell-home-edge.mjs passed: desktop Settings can reopen after Home closes it.
  • pnpm typecheck passed.
  • pnpm check passed.
  • pnpm check:line-endings passed after staging the proof PNGs.
  • node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json passed.
  • Bunny maintainer-equivalent review: pass.

No manual-only blocker identified.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

Before:

Before: desktop Settings remains open after Home

After:

After: desktop Home closes Settings and becomes current

Summary by CodeRabbit

  • Bug Fixes
    • The right panel now automatically closes when navigating to the home page, improving navigation flow and preventing unintended UI states.

🔄 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/1689 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/31/2026 **Status:** ✅ Merged **Merged:** 5/31/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `bughunt/refactor-lane1-shell-20260531` --- ### 📝 Commits (1) - [`81e8f9e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/81e8f9e3ab23eaf81e330fbf8b9935f370420cdb) Fix desktop home panel reset ### 📊 Changes **3 files changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/refactor-lane1-shell-20260531/home-after.png` (+0 -0) ➕ `docs/pr-evidence/refactor-lane1-shell-20260531/home-before.png` (+0 -0) 📝 `src/app/shell/WindowTitleBar.tsx` (+3 -1) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue N/A - refactor multi-agent bug-hunt lane 1. ## Why this change The desktop title-bar Home button did not return the shell to a true Home surface when a right-side tool panel was open. Clicking Home after opening Settings left the Settings panel visible, so the Home button did not become the current page. ## What changed - Close the right-side panel from the desktop title-bar Home handler, matching the existing shell cleanup expected when returning home. - Added scoped before/after UI evidence for the reproduced Settings -> Home path. ## Refactor impact Primary owner: App shell. Impact areas reviewed: - Desktop title bar Home navigation. - Right panel open/close state. - Home current-state indicator. - Desktop panel navigation after returning Home. Boundary notes: No engine, shared API, Rust, remote-runtime, schema, storage, auth, dependency, version, or prompt-pipeline boundaries changed. Pressure points touched: WindowTitleBar. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> - [ ] `pnpm check` passes locally - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes Codex machine proof: - `node scratch/lane1-shell-home-repro.mjs` reproduced the bug before the fix: Settings stayed open after clicking desktop Home. - `MARINARA_PROOF_MODE=after node scratch/lane1-shell-home-repro.mjs` passed after the fix: Settings closed and Home became `aria-current="page"`. - `node scratch/lane1-shell-home-edge.mjs` passed: desktop Settings can reopen after Home closes it. - `pnpm typecheck` passed. - `pnpm check` passed. - `pnpm check:line-endings` passed after staging the proof PNGs. - `node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json` passed. - Bunny maintainer-equivalent review: pass. No manual-only blocker identified. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence Before: ![Before: desktop Settings remains open after Home](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/bughunt/refactor-lane1-shell-20260531/docs/pr-evidence/refactor-lane1-shell-20260531/home-before.png) After: ![After: desktop Home closes Settings and becomes current](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/bughunt/refactor-lane1-shell-20260531/docs/pr-evidence/refactor-lane1-shell-20260531/home-after.png) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * The right panel now automatically closes when navigating to the home page, improving navigation flow and preventing unintended UI states. <!-- 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-22 04:14:18 +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#5215
No description provided.