mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7728] [MERGED] fix(trackers): show field locks on Present Characters cards and keep locked names #7900
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#7900
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/7728
Author: @SpicyMarinara
Created: 10/16/2026
Status: ✅ Merged
Merged: 10/16/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/7689-tracker-field-locking📝 Commits (4)
e35e6c6fix(trackers): show field locks on Present Characters cards and keep locked names310fd5ffix(trackers): keep locks with cast and explicitly identified rowsb7dcb8dfix(trackers): select eligible identities before matching namesakesad8d748test(export): calibrate the bounded streaming fixture heap📊 Changes
6 files changed (+295 additions, -15 deletions)
View changed files
📝
e2e/tracker-window-routing.e2e.ts(+51 -0)📝
packages/client/src/features/tracker-panel/components/controls/InlineControls.tsx(+21 -6)📝
packages/client/src/features/tracker-panel/components/controls/SectionControls.tsx(+6 -5)📝
packages/shared/src/utils/tracker-field-locks.ts(+31 -3)📝
scripts/regressions/native-export-memory.regression.ts(+2 -1)➕
scripts/regressions/tracker-character-name-lock.regression.ts(+184 -0)📄 Description
Linked issue
Closes #7689
Why this change
What changed
InlineEdit(the tracker cards' editable fields) shows a small padlock on each field it can lock while lock mode is on, open when unlocked and closed and brighter when locked. This matches what the World State tiles already do. Outside lock mode nothing changes: locked fields keep their existing ring.SectionIconButtonshows its pressed state for every tone, so the Present Characters lock, add and delete mode buttons now look switched on.mergeCharactersWithLocks(shared; used by the generate route, the retry route and the live client merge): a locked row keeps its original id when the agent omits it or replaces it with that same card member's cast id. Name and position matching reserve identities that another reported row explicitly owns, including an exact same-card cast alias, so a bare row can still match another eligible character with the same name. The explicit owner keeps its lock regardless of row order. An unrelated explicit id stays distinct, and the old locked row is retained.scripts/regressions/tracker-character-name-lock.regression.tsruns the generate route's tracker steps (card identity, UI-field preservation, locks) over two turns of the reporter's case. Without the fix it fails on the dropped id (characterId: undefinedinstead of"family-card").e2e/tracker-window-routing.e2e.tstest "Present Characters lock mode marks each field with a padlock" runs in light and dark. Without the fix it fails on the unpressed lock-mode button, and with the badge change alone reverted it fails on the missing padlock.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (not a substitute for the boxes above):
tsc --noEmitfor shared, server, client and root: clean. ESLint on the changed client files and Prettier on all changed files: clean.tracker-character-name-lock,prompt.regression(7 files),agent-runtime,agent-context-generation,tracker-manual-edit-base,tracker-sectionsandopen-issuesall passed.--workers=1):tracker-window-routingandworld-tracker-controlspassed.inventory-tracker-detailsfails at its first step ("Location for Painkillers" not found) both with and without this change, so that failure is not caused by this PR.Follow-up validation on
310fd5f41aa68b5197c0f4b28984f1ac040c2632:pnpm install,pnpm check, regression-file Prettier, andgit diff --checkpassed. The baseline check retains one existingHomeProfessorMariChat.tsxhook-dependency warning, with no errors.tracker-character-name-lock,tracker-sections, andtracker-manual-edit-baseregressions passed. Added proof covers three multi-person-card cast transitions, explicit ID ownership in both row orders and on the following turn, and distinct same-name characters with unrelated IDs.family-card:cast:madelineinstead offamily-card), on the explicitly identified row retainingFamily survivorsinstead of lockedMadeline, and on overwriting an unrelatednew-alexidentity withold-alex.Final namesake follow-up validation on
b7dcb8d11a37f3498a87725d370f3c26e69d72f6:pnpm check, regression-file Prettier,git diff --check, and the three focused tracker regressions above passed again after the final shared-code change.reportedIdswas dismissed: thecurrentIdguard prevents lookup of that entry, so filtering it adds work without changing behavior. The earlier substantive findings were fixed, not dismissed.Hosted-CI fixture calibration on
ad8d74868da9469624c0cd66cd4f2c065a431ae5:node scripts/run-regressions.mjs --filter scripts/regressions/native-export-memory.regression.tspassed locally, including that negative control. Observed local server memory: baseline heap 71 MB, peak heap 128 MB, peak RSS 346 MB. These are observed values, not a universal headroom guarantee.git diff --checkpassed. Local CodeRabbit review of this one-file calibration completed with no new findings. This commit changes only the test fixture; the production and namesake regression validation above was completed onb7dcb8d11a37f3498a87725d370f3c26e69d72f6.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)
Playwright captures
characters-lock-mode-light.pngandcharacters-lock-mode-dark.pngin the new test's output folder: padlocks on every card field, the locked name brighter, and the lock-mode button pressed.🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.