[PR #6585] [MERGED] fix: complete assigned chat and editor sweep #7236

Closed
opened 2026-10-23 04:17:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6585
Author: @SpicyMarinara
Created: 9/23/2026
Status: ✅ Merged
Merged: 9/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/assigned-issues-sept24


📝 Commits (10+)

  • d8d143c fix(ui): prevent modal backdrop dismiss when text selection drag ends outside
  • b0737bf Merge branch 'staging' into fix/backdrop-drag-dismiss
  • 3a1c29c fix(ui): require pointer-up on backdrop before dismissal in useBackdropDismiss
  • 439b0be style(ui): format use-backdrop-dismiss with prettier
  • 7818a3f Merge branch 'staging' into fix/backdrop-drag-dismiss
  • bbcde9a fix(ui): hit-test release coordinates against backdrop surface in useBackdropDismiss
  • ac9a16a fix(ui): treat missing hit target as off-backdrop in useBackdropDismiss
  • 8343234 Merge branch 'staging' into fix/backdrop-drag-dismiss
  • 98221ae docs: start assigned issue sweep
  • 9f65e78 Merge remote-tracking branch 'origin/pr-6577' into codex/assigned-issues-sept24

📊 Changes

13 files changed (+614 additions, -39 deletions)

View changed files

📝 CHANGELOG.md (+6 -0)
📝 e2e/advanced-memory.e2e.ts (+2 -1)
📝 e2e/afternoon-sweep.e2e.ts (+73 -0)
📝 e2e/core-flows.e2e.ts (+37 -2)
➕ e2e/local-notifications.e2e.ts (+133 -0)
➕ packages/client/public/notification-events.js (+11 -0)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+11 -3)
📝 packages/client/src/hooks/use-backdrop-dismiss.ts (+10 -2)
📝 packages/client/src/lib/local-notifications.ts (+29 -7)
📝 packages/client/vite.config.ts (+1 -0)
📝 packages/server/src/routes/generate.routes.ts (+53 -6)
📝 packages/server/src/routes/generate/conversation-presence-runtime.ts (+31 -18)
➕ scripts/regressions/group-mention-routing.regression.ts (+217 -0)

📄 Description

Linked issue

Closes #6566
Closes #6567
Closes #6571
Closes #6576
Closes #6578
Closes #6579

Completes the multi-pointer review follow-up to merged PR #6577 for #6576. Related: #6583.

Why this change

Pool names reset while typing, character @mentions do not hand off Individual group turns, and browser alerts use a constructor that mobile browsers reject. Two browser checks also race focus or screenshot scrolling. These changes reuse the existing inputs, turn queue, presence rules and service worker.

What changed

  • Commit pool names on blur, preserving spaces and empty drafts while editing. Editing marks the card dirty immediately, so Save works directly from the focused field.
  • Route character @mentions in Individual Conversation and Roleplay. Multiple mentions and chains reuse the current queue, with each available character answering at most once. The visible queue contains only pending speakers. Existing presence delays, inactive characters and autonomous daily limits still apply. Regeneration and continuation stay on their selected message.
  • Deliver alerts through the active service worker, with desktop fallback and repeat alerts for a chat's notification tag. Notification clicks focus or reopen Marinara, and delivery rechecks focus after asynchronous worker lookup.
  • Scope modal dismissal to one primary pointer, addressing CodeRabbit's remaining multi-pointer finding on #6577. The contributor's modal changes landed separately in #6577; this PR adds the pointer guard and regression proof.
  • Wait for the request-timeout settings search to focus its destination; capture the visible memory inspector without scrolling its full container.

Validation

Completed automated checks:

  • pnpm check (including localization, formatting, ESLint, TypeScript and production builds).
  • Prompt, attachment, context-fit, Smart group order, group mention routing, Roleplay regeneration, and open-issue regressions.
  • 20 focused browser checks passed across desktop Chromium, mobile Chromium and mobile WebKit; native pinch zoom is intentionally skipped on desktop. Two Advanced Memory scenarios also passed on desktop Chromium and mobile WebKit.
  • Pool-name save/reload, blank drafts and spaces checked in all three browser profiles. Before/after screenshot evidence includes desktop and mobile WebKit in light/dark themes. Download the self-contained proof.html to view it.
  • Docker image built and started; health, home page and notification handler returned HTTP 200. Built service worker imports the handler.
  • Local CodeRabbit review completed with no findings. The hosted review follow-up reproduced and fixed focused-field Save, completed-speaker queue entries, and focus changes during notification lookup; all 12 follow-up browser checks, the route regression, pnpm check:e2e-types, and pnpm check pass. The primary-pointer drag assertion also passed separately in all three browser profiles. Local review of that follow-up also found no issues.

Human verification:

  • Manually verify pool names in a character card, including clearing and retyping a name.
  • Manually verify an Individual group-chat @mention handoff with your model.
  • Manually verify notifications on your actual browser or installed app while it is unfocused.
  • Manually verify dragging or pinching inside dialogs does not dismiss them.

Docs and release impact

User-facing changes are recorded in CHANGELOG.md. No version bump or new settings. The test-stability entry remains because it documents the two assigned contributor-workflow fixes and explicitly describes browser checks.

Remaining verification

#6583 remains open for a user retest after #6584. Current Anthropic tool-turn regeneration tests confirm fresh edited Personal Notes, reused recall and no discarded swipe text; the original failing swipe was deleted, so that exact state cannot be compared. OS-level notification presentation is covered by mocked browser API dispatch here and still needs device verification.


🔄 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/6585 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/23/2026 **Status:** ✅ Merged **Merged:** 9/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/assigned-issues-sept24` --- ### 📝 Commits (10+) - [`d8d143c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d8d143c3e423524916cffdfd7df585a95045580a) fix(ui): prevent modal backdrop dismiss when text selection drag ends outside - [`b0737bf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b0737bfafac7ecccd61446716fabe5d914c88408) Merge branch 'staging' into fix/backdrop-drag-dismiss - [`3a1c29c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3a1c29c117de49402b2ddb9dbe437ad40014e469) fix(ui): require pointer-up on backdrop before dismissal in useBackdropDismiss - [`439b0be`](https://github.com/Pasta-Devs/Marinara-Engine/commit/439b0be6ebb835db184c3a048fff7cce5cd873de) style(ui): format use-backdrop-dismiss with prettier - [`7818a3f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7818a3ff9022edb8f1809e68fa2989546b1eaf7c) Merge branch 'staging' into fix/backdrop-drag-dismiss - [`bbcde9a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bbcde9a21012cc58326a31c722eb04addcfbba0a) fix(ui): hit-test release coordinates against backdrop surface in useBackdropDismiss - [`ac9a16a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ac9a16aa1fa002b346ca5824f24e49a97a411a50) fix(ui): treat missing hit target as off-backdrop in useBackdropDismiss - [`8343234`](https://github.com/Pasta-Devs/Marinara-Engine/commit/834323436f2139d09b34ad3bf281038f76d54510) Merge branch 'staging' into fix/backdrop-drag-dismiss - [`98221ae`](https://github.com/Pasta-Devs/Marinara-Engine/commit/98221aedab12e1afcb84e70aeb7903417b5f0cc8) docs: start assigned issue sweep - [`9f65e78`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9f65e78699a05e59c6e91a210583af4dbe899a65) Merge remote-tracking branch 'origin/pr-6577' into codex/assigned-issues-sept24 ### 📊 Changes **13 files changed** (+614 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+6 -0) 📝 `e2e/advanced-memory.e2e.ts` (+2 -1) 📝 `e2e/afternoon-sweep.e2e.ts` (+73 -0) 📝 `e2e/core-flows.e2e.ts` (+37 -2) ➕ `e2e/local-notifications.e2e.ts` (+133 -0) ➕ `packages/client/public/notification-events.js` (+11 -0) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+11 -3) 📝 `packages/client/src/hooks/use-backdrop-dismiss.ts` (+10 -2) 📝 `packages/client/src/lib/local-notifications.ts` (+29 -7) 📝 `packages/client/vite.config.ts` (+1 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+53 -6) 📝 `packages/server/src/routes/generate/conversation-presence-runtime.ts` (+31 -18) ➕ `scripts/regressions/group-mention-routing.regression.ts` (+217 -0) </details> ### 📄 Description ## Linked issue Closes #6566 Closes #6567 Closes #6571 Closes #6576 Closes #6578 Closes #6579 Completes the multi-pointer review follow-up to merged PR #6577 for #6576. Related: #6583. ## Why this change Pool names reset while typing, character @mentions do not hand off Individual group turns, and browser alerts use a constructor that mobile browsers reject. Two browser checks also race focus or screenshot scrolling. These changes reuse the existing inputs, turn queue, presence rules and service worker. ## What changed - Commit pool names on blur, preserving spaces and empty drafts while editing. Editing marks the card dirty immediately, so Save works directly from the focused field. - Route character @mentions in Individual Conversation and Roleplay. Multiple mentions and chains reuse the current queue, with each available character answering at most once. The visible queue contains only pending speakers. Existing presence delays, inactive characters and autonomous daily limits still apply. Regeneration and continuation stay on their selected message. - Deliver alerts through the active service worker, with desktop fallback and repeat alerts for a chat's notification tag. Notification clicks focus or reopen Marinara, and delivery rechecks focus after asynchronous worker lookup. - Scope modal dismissal to one primary pointer, addressing CodeRabbit's remaining multi-pointer finding on #6577. The contributor's modal changes landed separately in #6577; this PR adds the pointer guard and regression proof. - Wait for the request-timeout settings search to focus its destination; capture the visible memory inspector without scrolling its full container. ## Validation Completed automated checks: - `pnpm check` (including localization, formatting, ESLint, TypeScript and production builds). - Prompt, attachment, context-fit, Smart group order, group mention routing, Roleplay regeneration, and open-issue regressions. - 20 focused browser checks passed across desktop Chromium, mobile Chromium and mobile WebKit; native pinch zoom is intentionally skipped on desktop. Two Advanced Memory scenarios also passed on desktop Chromium and mobile WebKit. - Pool-name save/reload, blank drafts and spaces checked in all three browser profiles. [Before/after screenshot evidence](https://gist.github.com/SpicyMarinara/b627fe468eab0cc11db899929e6bf963) includes desktop and mobile WebKit in light/dark themes. Download the self-contained `proof.html` to view it. - Docker image built and started; health, home page and notification handler returned HTTP 200. Built service worker imports the handler. - Local CodeRabbit review completed with no findings. The hosted review follow-up reproduced and fixed focused-field Save, completed-speaker queue entries, and focus changes during notification lookup; all 12 follow-up browser checks, the route regression, `pnpm check:e2e-types`, and `pnpm check` pass. The primary-pointer drag assertion also passed separately in all three browser profiles. Local review of that follow-up also found no issues. Human verification: - [ ] Manually verify pool names in a character card, including clearing and retyping a name. - [ ] Manually verify an Individual group-chat @mention handoff with your model. - [ ] Manually verify notifications on your actual browser or installed app while it is unfocused. - [ ] Manually verify dragging or pinching inside dialogs does not dismiss them. ## Docs and release impact User-facing changes are recorded in `CHANGELOG.md`. No version bump or new settings. The test-stability entry remains because it documents the two assigned contributor-workflow fixes and explicitly describes browser checks. ## Remaining verification #6583 remains open for a user retest after #6584. Current Anthropic tool-turn regeneration tests confirm fresh edited Personal Notes, reused recall and no discarded swipe text; the original failing swipe was deleted, so that exact state cannot be compared. OS-level notification presentation is covered by mocked browser API dispatch here and still needs device verification. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:17:49 +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#7236
No description provided.