mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1168] [MERGED] [codex] fix character cache churn #4951
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#4951
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/1168
Author: @ghost
Created: 5/24/2026
Status: ✅ Merged
Merged: 5/25/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-pr-54-character-cache-churn📝 Commits (1)
79f0755Migrate Refactor PR #54: Fix character cache churn📊 Changes
4 files changed (+96 additions, -10 deletions)
View changed files
📝
src/features/catalog/characters/components/ImportCharacterModal.tsx(+22 -3)📝
src/features/catalog/characters/hooks/use-characters.ts(+68 -4)📝
src/features/shell/bot-browser/api/bot-browser-api.ts(+1 -0)📝
src/features/shell/bot-browser/components/BotBrowserView.tsx(+5 -3)📄 Description
Migrated from Pasta-Devs/Marinara-Engine-Refactor#54: https://github.com/Pasta-Devs/Marinara-Engine-Refactor/pull/54
Original author: @Promansis
Target base: Pasta-Devs/Marinara-Engine refactor
Source draft state: True
Verification after port:
pnpm typecheckPort note: source updates/ tracker/evidence files were omitted because the target refactor branch removed repo-local updates guidance.
Closes #39
Why this change
Character import and delete paths were refreshing the full character list even when the mutation response already contained enough data to patch the React Query cache. That caused avoidable refetch churn in the character UI.
What changed
Validation
pnpm typecheckpnpm checkpnpm tauri devand tested the app path manuallyManual verification notes
Codex verification:
pnpm checkpassed on PR head in an isolated worktree.upstream/refactorinto the PR head merged cleanly.pnpm checkpassed after that local merge proof.Manual follow-up:
Docs impact
UI evidence
N/A. Cache behavior change; no reviewer-visible UI screenshot captured.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.