mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6821] [MERGED] fix: keep Author's Notes attached to their chat #7341
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#7341
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/6821
Author: @SpicyMarinara
Created: 9/28/2026
Status: ā Merged
Merged: 9/28/2026
Merged by: @SpicyMarinara
Base:
stagingā Head:codex/fix-6817-authors-notesš Commits (4)
601753adocs: track author notes isolation fix (#6817)af58975fix(chat): serialize Author's Notes saves (#6817)d7f786ftest(chat): finish mocked generation before asserting notes6dea8f8Merge branch 'staging' into codex/fix-6817-authors-notesš Changes
3 files changed (+220 additions, -1 deletions)
View changed files
š
CHANGELOG.md(+2 -0)ā
e2e/author-notes.e2e.ts(+217 -0)š
packages/client/src/components/chat/ChatRoleplayPanels.tsx(+1 -1)š Description
Linked issue
Closes #6817
Why this change
Authorās Notes bypassed the existing per-chat metadata save queue. A delayed older save could overwrite a newer edit, and generation could read storage before the note finished saving. A controlled browser reproduction observed two simultaneous note PATCH requests while the first was held.
What changed
Validation
Current PR head
6dea8f80b6b6c835553268f3941d83bce031b993is the automatic merge of stagingfd859ccd1055a7ed741c1adda1afbb1ef15a842dintod7f786f448c2414e996009e8883c409b1adea94e. The Authorās Notes product and test blobs are unchanged; the source-equivalence audit preserves the earlier feature proofs below.The new-base combined candidate
867d64d0208e49cce13c40310d81839756fad787(tree3610bb1dbbf9b0429d7532831e3e91cdf34bff7c) passedpnpm install,pnpm check, and browser smoke 7/7. Its Authorās Notes source/test blobs exactly match the published PR head. These checks ran on that combined integration candidate, not as a new focused feature run on the individual merge-only head.Baseline product-source validation at
af58975bb68f64db3e2a2451fede159e5447879d; final test-only follow-upd7f786f448c2414e996009e8883c409b1adea94ekeeps that product source unchanged:pnpm installcompleted.pnpm checkpassed (two existing GameSurface hook dependency warnings; no errors).pnpm regression:promptpassed all three regression files.pnpm smoke:uipassed 7/7.pnpm exec playwright test e2e/author-notes.e2e.ts --workers=1passed 6/6 across desktop Chromium, mobile Chromium, and mobile WebKit.Final changed-file Prettier,
pnpm check:e2e-types, and all six focused browser cases passed again atd7f786f448c2414e996009e8883c409b1adea94eafter moving the notes assertion out of the mock generation route (CodeRabbit discussion4124993133).Independent source review found no substantive issues. Local CodeRabbit completed on combined candidate
c172ae4ccef3d7052de04b5a8a198e6f308e1e74, whose Authorās Notes source/test blobs exactly match this head. It raised no findings in this PR; its three findings concern the other two combined PRs and are tracked there. The combined unchanged product sources also passedpnpm check, smoke 7/7, both feature suites 12/12, and mobile keyboard cases 2/2.Hosted CodeRabbit reviewed the original head; its one fixture finding is fixed in
d7f786f4and the thread is resolved. The current merge-only headās hosted review is rate-limited and remains a merge gate; a retry is coordinated separately. The macOS Intel build passed on the pre-base-merged7f786f4after a prior runner timed out during startup of an unchanged shutdown fixture; this is historical proof, not a claim about current-head CI.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
Manually verify editing notes in two roleplay chats, switching while a save is pending, reloading, and inspecting each chatās prompt. The automated browser checks use disposable fixture chats and real server dry-run prompt assembly; generation transport is intercepted to assert the client save barrier. Current chat-ID-keyed panels did not reproduce a direct cross-chat storage leak. The confirmed defect is concurrent saves; the isolation assertions guard the reported symptom. Mobile checks are browser emulation, not physical-device testing. A rejected storage save is not a promise of offline durability or successful prompt injection.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedOnly the changelog changes; no user-facing docs or release metadata change.
UI evidence (if applicable)
Inspected before/after fixture screenshots in a standalone HTML evidence file. Download/open the HTML to view embedded images. It labels the original desktop failure state and final desktop/mobile states, records the tested commit, and distinguishes network assertions from screenshot evidence. This fix does not alter visual styling.
Summary by CodeRabbit
š This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.