mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7400] [MERGED] fix(omnibar): keep search responsive during quick Mari answers #7717
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7717
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7400
Author: @Gunterlie
Created: 10/10/2026
Status: ✅ Merged
Merged: 10/10/2026
Merged by: @Gunterlie
Base:
staging← Head:quick-mari-in-slow-motion📝 Commits (3)
50df0defix: keep omnibar responsive during quick Mari answers2752d86docs: keep quick answer changelog user focused8d83f5ctest: prove quick answer requests cancel when query changes📊 Changes
5 files changed (+244 additions, -22 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
e2e/omnibar-quick-handoff.e2e.ts(+210 -4)📝
packages/client/src/components/layout/GlobalOmnibar.tsx(+1 -1)📝
packages/client/src/components/layout/omnibar/use-omnibar-screen-context.ts(+9 -11)📝
packages/client/src/hooks/use-omnibar-aside.ts(+23 -6)📄 Description
Linked issue
Closes #7399
Why this change
Typing a quick-answer question and clicking its Mari row made the omnibar lag. Every streamed token rebuilt search context and reranked the library; movement within the selected row also rendered the dialog unnecessarily.
What changed
Validation
Completed local verification:
heavy pnpm checkpassed after final review fixes (one existing HomeProfessorMariChat hook warning; existing Vite chunk warnings).heavy pnpm regression:ui e2e/omnibar-quick-handoff.e2e.ts --project=desktop-chromium --workers=1: 2 passed.heavy pnpm smoke:ui: 7 passed.Independent read-only review found one medium instrumentation proof gap and four low findings; corrected, with browser proof rerun. Optional removal of the abort listener was declined because immediate frame cancellation is useful on query replacement.
GitHub review follow-up: fixture now directly proves early stream closure on query replacement. Focused Chromium suite rerun: 2 passed;
heavy pnpm check:e2e-typespassed; local follow-up review: zero findings.Local CodeRabbit review rerun after substantive fixes: one minor changelog wording finding, corrected. No remaining substantive local findings.
pnpm checkpasses locallyContainer (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.mdManual verification notes
Automated Chromium exercises a slow fixture stream, clicks the quick-Mari row, verifies the full answer, returns to search, retries, and cancels with a new query. Screenshots at 390/768/1440 px were inspected.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Performance proof: baseline 184 dialog renders over 36 frames and 40 selected-row movement renders. Final fixed run: 54 renders over 28 frames (development StrictMode double invocation), zero context rebuilds and zero selected-row movement renders. No visual markup changes. CHANGELOG updated; no version or translated documentation changes.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.