mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#7057
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/6089
Author: @ghost
Created: 9/12/2026
Status: ✅ Merged
Merged: 9/12/2026
Merged by: @undefined
Base:
staging← Head:fix/deleted-card-chat-membership-6084📝 Commits (5)
233483dfix: remove a deleted card from every chat, and count only existing cards in Chat Settings5c03db7Merge remote-tracking branch 'origin/staging' into fix/deleted-card-chat-membership-60846c4d5a5test: align deleted-card regression with all chat modes6c433f5Merge branch 'staging' into fix/deleted-card-chat-membership-608429f59dbfix: keep character counts stable while cards load📊 Changes
5 files changed (+123 additions, -8 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+6 -4)📝
packages/server/src/services/storage/characters.storage.ts(+5 -2)📝
scripts/regressions/assigned-chat-sweep.regression.ts(+2 -2)➕
scripts/regressions/character-delete-chat-membership.regression.ts(+108 -0)📄 Description
Linked issue
Closes #6084
Why this change
2, one row).What changed
packages/server/src/services/storage/characters.storage.ts— the deletion transaction's chat scrub now selects every chat instead ofmode === "game". The Game party/setup branches are untouched and no-op for the other modes (metadatadefaults to{}, so the existing guards hold). Chats that never held the card are not rewritten.packages/client/src/components/chat/ChatSettingsDrawer.tsx— the Characters section'scountand its two empty-state checks use the resolvedchatCharacters.lengthinstead of the rawchatCharIds.length, the same change #6026 made for the Game Party count. This covers chats that are already stale (deleted before this lands, or imported). 3 lines.scripts/regressions/character-delete-chat-membership.regression.ts— new: two cards, four chats (roleplay/conversation/game/untouched), one group; deletes a card and asserts membership, game party/setup/GM, the untouched chat'supdatedAt, and the group. Fails onstagingat "Roleplay chat drops the deleted card"; passes with this change.CHANGELOG.md— one line under Unreleased.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Branch built from
staging@5e3dd361e;pnpm checkran all stages to completion (the one lint warning is pre-existing,GameNarration.tsx:1404).node ./scripts/run-regressions.mjs --filter character-delete-chat-membership→ 1/1.Two servers side by side on a clone of real data, macOS 26.6.2 arm64, Chromium 1400×900:
staging5e3dd361eGET /api/chats/:id .characterIds[A, B][A]PATCH /api/chats/:id {characterIds:[A,"stale-…"]}, no deletion) → badge / rowsDownstream checks on the branch build:
updatedAton each chat that held the card (as #6026 already does for Game). "Recent" sorts onlastMessageAt || createdAt || updatedAt(lib/chat-recency.ts), so the order does not change for any chat with acreatedAt. Measured: the rawGET /api/chatsorder moved, the sidebar comparator does not.chatKeys.all(hooks/use-characters.ts), so the badge and rows refresh in place. Deleting over the API from outside the browser leaves the open drawer stale until reload (badge 2 → after reload 1); that is the cache, not this change, and the resolved count keeps the badge equal to the rows in either window.updatedAtunchanged).Not verified by me: container build; mobile viewport; light vs dark (the change is a number and a boolean, no styling).
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG only; nothing under
docs/.UI evidence (if applicable)
Before/after of the Characters section for the planted-stale-id row above (badge 2 vs 1 over the same single row) — screenshots to follow in a comment.
Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.