mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1718] [MERGED] Fix persona import cache refresh #5230
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#5230
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/1718
Author: @Xelvanis
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @Xelvanis
Base:
refactor← Head:bugfix/persona-import-refresh-gap📝 Commits (1)
8e13384Fix persona import cache refresh📊 Changes
4 files changed (+31 additions, -17 deletions)
View changed files
📝
src/features/catalog/personas/components/ImportPersonaModal.tsx(+2 -2)📝
src/features/catalog/personas/hooks/use-personas.test.tsx(+15 -0)📝
src/features/catalog/personas/hooks/use-personas.ts(+12 -13)📝
src/features/shell/imports/components/STBulkImportModal.tsx(+2 -2)📄 Description
Linked issue
None.
Why this change
Persona import refresh relied on
personaKeys.listalso matching summary queries by prefix. That worked with current React Query matching, but it made import refresh behavior easy to regress or misread after the refactor split full persona reads from summary reads.What changed
invalidatePersonaCollectionQueries()to invalidate full persona lists and persona summaries explicitly.Refactor impact
Primary owner:
Catalog personas.
Impact areas reviewed:
Boundary notes:
No engine, shared API, Rust, or remote-runtime contract changes. Change stays in React feature/cache ownership.
Pressure points touched:
Import modal surfaces only; no broad mode surfaces or Tauri command registration touched.
Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
Automated validation run by Codex:
pnpm vitest run src/features/catalog/personas/hooks/use-personas.test.tsxpnpm typecheckpnpm check:architecturegit diff --check origin/refactor...HEADNo native Tauri manual QA was run; this is a React Query cache-refresh-only change.
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs or release-note updates made; behavior change is internal cache refresh.
UI evidence
Not applicable; no visible layout change.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.