[PR #2010] [MERGED] Defer quick-start setup overlay work #5386

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2010
Author: @Promansis
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @Promansis

Base: refactor ← Head: fix/issue-2007-quick-start-sequencing


📝 Commits (4)

  • 02b3e55 Defer quick-start setup overlay work
  • 48204d4 Preserve deferred quick-start overlays
  • e6d1784 Clear queued quick-start flags on accept
  • e476fce Handle canceled quick-start overlay queues

📊 Changes

1 file changed (+100 additions, -12 deletions)

View changed files

📝 src/features/modes/shared/chat-ui/hooks/use-chat-overlays.ts (+100 -12)

📄 Description

Linked issue

Closes #2007

Why this change

  • Quick-start navigation creates a chat, switches into the mode route, and immediately opens setup/settings overlays. That can make the first navigation response compete with heavy lazy-loaded setup/settings work.

What changed

  • Added a small scheduler for new-chat setup overlays that waits for the route paint via requestAnimationFrame, then opens setup/settings through requestIdleCallback with a timeout fallback.
  • Kept the user-facing quick-start behavior intact: the chat still opens and the setup/settings flow still appears, just sequenced after the initial navigation response.
  • Preserved shortcut-mode setup intent handling so character quick-start flows still land in the intended wizard view.

Refactor impact

Primary owner:

shared mode UI

Impact areas reviewed:

  • Quick-start new chat setup intent handling
  • Conversation and roleplay overlay routing through useChatOverlays
  • Settings/setup lazy overlay entrypoints

Boundary notes:

  • React feature/shared UI only. No engine, shared API, Rust, storage, provider, or remote-runtime boundary changes.

Pressure points touched:

  • Shared mode UI overlay scheduling in src/features/modes/shared/chat-ui/hooks/use-chat-overlays.ts

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • Ran pnpm typecheck locally: passed.
  • Ran pnpm check:architecture locally: passed.
  • Ran git diff --check: clean.
  • Reviewed the focused diff against upstream/refactor; only use-chat-overlays.ts changed.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Internal quick-start sequencing fix only; no new user-discoverable feature or workflow.

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

  • No screenshots attached. This is a sequencing/performance fix that preserves the existing visible flow.

🔄 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/2010 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 6/3/2026 **Status:** ✅ Merged **Merged:** 6/3/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `fix/issue-2007-quick-start-sequencing` --- ### 📝 Commits (4) - [`02b3e55`](https://github.com/Pasta-Devs/Marinara-Engine/commit/02b3e55585a871282cc25162a983a3406451ee6a) Defer quick-start setup overlay work - [`48204d4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/48204d4394beb5245762134260bb3c904b403237) Preserve deferred quick-start overlays - [`e6d1784`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e6d17845e7cb0cb7cead02c22f6812c6807a039e) Clear queued quick-start flags on accept - [`e476fce`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e476fce02e7591fdddfc427c05d4166f0917de0c) Handle canceled quick-start overlay queues ### 📊 Changes **1 file changed** (+100 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/shared/chat-ui/hooks/use-chat-overlays.ts` (+100 -12) </details> ### 📄 Description ## Linked issue Closes #2007 ## Why this change - Quick-start navigation creates a chat, switches into the mode route, and immediately opens setup/settings overlays. That can make the first navigation response compete with heavy lazy-loaded setup/settings work. ## What changed - Added a small scheduler for new-chat setup overlays that waits for the route paint via `requestAnimationFrame`, then opens setup/settings through `requestIdleCallback` with a timeout fallback. - Kept the user-facing quick-start behavior intact: the chat still opens and the setup/settings flow still appears, just sequenced after the initial navigation response. - Preserved shortcut-mode setup intent handling so character quick-start flows still land in the intended wizard view. ## Refactor impact Primary owner: shared mode UI Impact areas reviewed: - Quick-start new chat setup intent handling - Conversation and roleplay overlay routing through `useChatOverlays` - Settings/setup lazy overlay entrypoints Boundary notes: - React feature/shared UI only. No engine, shared API, Rust, storage, provider, or remote-runtime boundary changes. Pressure points touched: - Shared mode UI overlay scheduling in `src/features/modes/shared/chat-ui/hooks/use-chat-overlays.ts` ## Validation - [x] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - Ran `pnpm typecheck` locally: passed. - Ran `pnpm check:architecture` locally: passed. - Ran `git diff --check`: clean. - Reviewed the focused diff against `upstream/refactor`; only `use-chat-overlays.ts` changed. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Internal quick-start sequencing fix only; no new user-discoverable feature or workflow. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence - No screenshots attached. This is a sequencing/performance fix that preserves the existing visible flow. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:15:51 +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#5386
No description provided.