mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5755] [MERGED] fix(mari): panel polish batch before the beta ping - header, new chat, chips, bookmarks, verification tone #6916
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#6916
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/5755
Author: @kolacheee
Created: 9/2/2026
Status: ✅ Merged
Merged: 9/2/2026
Merged by: @kolacheee
Base:
staging← Head:fix/5752-5754-mari-polish📝 Commits (10+)
4439aedfix(mari): panel polish batch before the beta ping (#5741-#5743, #5752-#5754)e0d56e7fix(mari): address adversarial review round 1 on the polish batch8f7fee2fix(mari): give the New chat button an exact accessible namefdd9af6fix(mari): address CodeRabbit round on the polish batch6d43292fix(mari): hide the header name text at phone widths (maintainer feedback)facf8defix(mari): keep a screen-reader Mari label at phone widths20653d7fix(mari): name the combined library button explicitly8fdcb81fix(regression): read the newest Anthropic request body, not a stale index30eeeaefix(mari): close the Library menu from competing keyboard actions3688b37fix(mari): harden the Library menu closes (CodeRabbit round)📊 Changes
17 files changed (+704 additions, -271 deletions)
View changed files
📝
CHANGELOG.md(+6 -0)📝
e2e/core-flows.e2e.ts(+18 -12)📝
packages/client/src/components/chat/ChatInput.tsx(+0 -6)📝
packages/client/src/components/chat/ConversationInput.tsx(+0 -7)📝
packages/client/src/components/chat/HomeBrowserHub.tsx(+131 -140)📝
packages/client/src/components/chat/HomeProfessorMariChat.tsx(+161 -81)📝
packages/client/src/components/chat/MariSuggestionChips.tsx(+140 -0)📝
packages/client/src/hooks/use-generate.ts(+7 -2)📝
packages/client/src/localization/locales/de.json(+0 -1)📝
packages/client/src/localization/locales/en.json(+6 -4)📝
packages/client/src/localization/locales/ko.json(+0 -4)📝
packages/client/src/localization/locales/pl.json(+0 -1)📝
packages/client/src/localization/locales/zh-Hans.json(+0 -4)📝
packages/client/src/styles/globals.css(+63 -2)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+6 -5)➕
scripts/regressions/mari-polish.regression.ts(+162 -0)📝
scripts/regressions/provider-compat.regression.ts(+4 -2)📄 Description
Linked issue
Closes #5741. Closes #5742. Closes #5743. Closes #5752. Closes #5753. Closes #5754.
Why this change
Beta testers are about to get the updated Professor Mari (post-#5751), and the maintainer's own playtests surfaced a batch of polish blockers first: the panel header overflows into Mari's avatar at phone widths, there is no discoverable way to start a fresh chat, suggestion chips vanish from unrelated activity and clip with no way to reach them by mouse, the mobile Home browser burns a full line on the Bookmarks bar, and Mari apologizes for verifying her own successful edits. Six small fixes, one panel-polish PR, so the beta ping lands on a panel that doesn't fight its testers.
What changed
#5741 — header overflow. Skills and Memories share one "Skills & Memories" button (the maintainer's suggested shape): a two-row anchored menu (same outside-click pattern as the Permissions shield) with per-row icons and badges, a summed badge on the button, and the combined label hidden below 430px so the crowded 400–430px band gets icon+badge only. Two buttons' worth of padding, label, and badge leave the row; the avatar is safe.
#5752 — new chat discoverability. The header button is now "New chat" with a plus icon (it always archived the current conversation and started fresh — the "Restart" label said the opposite, which is why a maintainer hunting for "new chat" could not find it), its tooltip leads with the non-destructive fact, and the Chats popover header gained a "+ New chat" button — the place people actually look. Orphaned
restartlocale keys removed from every language pack.#5753 — chips slot hygiene. A regular chat starting a generation now clears the Mari chips/plan slots only when they belong to that same chat (previously any active-chat generation wiped them app-wide — the observed vanishing-Accept-chip path). The three suggestions-disabled mount sweeps are deleted outright: rendering already gates ordinary chips on the setting, and the sweeps lacked the
authorization-acceptexemption the delivery path has, so their only unique effect was wiping a pending approval affordance. The deadclearSuggestionsload option (no call site) is gone too.#5754 — verification without the apology. Mari is now taught to stage the confirmatory read in the SAME response as the write — commands run in order, and
resolveWorkspaceMutationVerificationalready counts a same-batch read, so verification costs zero extra rounds; the direct-request few-shot models it. Both coaching surfaces (the apply result text and the completion-claim interception) now say to verify matter-of-factly and never present the check as fixing a mistake. The verification guard itself is untouched — it still refuses unverified completion claims.#5742 — chip row reachability. The shared
MariSuggestionChipscomponent (all three render sites) gains mouse drag-to-scroll — pointerdown/move translated intoscrollLeft, a 5px threshold so plain clicks still pick chips, pointer capture during the drag, and exactly one suppressed click on release so letting go over a chip scrolls instead of firing it. Touch and pen pointers are untouched (native panning and the scroll-snap carousel keep working; nopreventDefaultever reaches a touch stream). Overflow gets a visible affordance: per-side edge fades driven from the live scroll position (data-fade-left/data-fade-right, RTL-normalized), applied as a CSS mask rather than the gradient overlays the issue sketched — deliberate: the row renders over chat background images, the floating panel, and semi-transparent dark-theme surfaces, so no single base color exists for an overlay, and the mask idiom is already established in this stylesheet.scroll-padding-inlinekeeps a Tab-focused chip from resting under its own fade. Note for review: the affordance only engages below 768px, because at desktop widths the row wraps and never overflows — a desktop-width look will show no change by design.#5743 — compact mobile bookmarks. At phone widths (
sm:split, the file's established mobile/desktop boundary) the full-line Bookmarks bar is gone entirely — the<nav>is desktop-only now, no empty row remains — replaced by a bookmark-icon button in the tab strip between Home and the first tab, styled as inactive tab chrome witharia-label/aria-expanded/aria-controls. Tapping it toggles the pre-existing mobile bookmarks dropdown (same entries, same navigate behavior, reparented from the nav to the header so the tab strip'soverflow-hiddencan't clip it; outside-click and Escape close still work). The per-surface visibility settings gate both the button and the dropdown — no new toggle. Desktop is byte-for-byte unchanged. The oldhome.browser.bookmarkslabel key became unreferenced and was removed from every locale pack.Regression — new
mari-polishlane: functional pins thatresolveWorkspaceMutationVerificationcounts a same-batch read after the write (and not a read before it), pins on the same-frame few-shot and both no-apology coaching texts, the use-generate chat-scoped clear gates, the absence of all three mount sweeps, the New-chat/combined-button locale keys, and the popover New-chat affordance.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm lint, the fullpnpm build,pnpm check:e2e-types, the locale checker, and the JSX-localization audit are green locally;format:checkfails repo-wide on this Windows checkout (pre-existing autocrlf CRLF; touched files were run through Prettier directly).mari-polishplusmari-ask-latch,mari-permissions-mode,mari-understood-request,mari-edit-flow-revert,prompt.regression, andopen-issuesall pass.openHomeBookmarkhelper, the mobile bookmarks spec with its removeddata-bookmark-dotpips, and the Music-DJ-overlap check) — helper and specs are rewritten against the compact trigger, and the mobile regression matrix in CI is the proof for them. Also fixed: a phantom-drag state leak in the chip row (release outside the row before the 5px threshold left armed state with a stale start position), RTL edge fades inverted at the resting scroll position (both lenses caught it independently), verification coaching that scolded Mari "next time stage the read" even when she just had (now state-agnostic), a missing note thatbashnever counts as a verifying read, and the New-chataria-labelnow starts with its visible text (WCAG 2.5.3 label-in-name). Two low-severity findings are documented rather than changed, deliberately: the compact bookmarks trigger is a non-tab child ofrole="tablist"(mirrors real browser tab strips; moving it outside the tablist is the alternative if an a11y linter objects), and one non-default settings combination (desktop bookmarks off + mobile bookmarks on, non-Home tab) no longer renders a strip on desktop that was empty — treated as an improvement, flagged here for the browser pass.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG updated under [Unreleased] (Fixed for #5741/#5752/#5753/#5754, Added for #5742/#5743). No user-facing docs under
docs/touched (docs-i18n debt stays batched per the standing call); removed locale keys were mirrored out of every language pack in this PR.UI evidence (if applicable)
All visible: the combined Skills & Memories button and menu, the New chat button (header + popover), chip drag-scroll with edge fades, and the compact mobile bookmarks button.
Summary by CodeRabbit
New Features
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.