mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6081] [CLOSED] fix(notifications): play the completion sound whether or not the chat is still active #7053
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#7053
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/6081
Author: @ghost
Created: 9/12/2026
Status: ❌ Closed
Base:
staging← Head:fix/same-chat-completion-ping-6080📝 Commits (1)
a88b50ffix(notifications): play the completion sound whether or not the chat is still active (#6080)📊 Changes
2 files changed (+42 additions, -15 deletions)
View changed files
📝
packages/client/src/hooks/use-generate.ts(+24 -15)📝
scripts/regressions/open-issues.regression.ts(+18 -0)📄 Description
Linked issue
Closes #6080
Why this change
What changed
packages/client/src/hooks/use-generate.ts: the Roleplay/Conversation ping moves out of the navigated-away block into its own block gated onnotificationEligibleContentalone (the same eligibility the unread badge uses), placed ahead of the navigated-away block. That block now handles only the unread badge and the avatar bubble, so a reply that lands while you are on another chat pings once, not twice. The chat lookup and the notified message are computed once and shared by both blocks. Two behaviours are kept exactly: Game's single ping throughgameTurnLoadedSoundPlayed, and the mode toggles + unfocused-only setting as the gate.messageHasPendingPostProcessing) does not ping. The group-chat member ping already checks this (#3095); the final reply's ping did not, and a held rewrite is never released at stream end, so a failed rewrite would have pinged on the placeholder.scripts/regressions/open-issues.regression.ts: asserts the sound block precedes the navigated-away block and that the navigated-away block no longer callsplayConfiguredNotificationPing. Run against unpatchedstagingit fails with "The completion sound must be gated on eligible content alone"; against this branch it passes.Validation
pnpm checkpasses locallyCONTRIBUTING.mdPerformed so far (draft; the boxes above get ticked by me after the manual pass):
pnpm install --frozen-lockfile,pnpm build:shared,tsc --noEmitinpackages/client: clean.pnpm check: passed (stale-client, impeccable, localization, format, lint, e2e types, build).node ./scripts/run-regressions.mjs --filter open-issues: 1/1 passed on this branch; 0/1 on unpatched staging (the new assertion fails there, as intended).Manual verification notes
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)
No UI change. Sound only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.