mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1472] [MERGED] Fix character picker cache refresh #5106
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#5106
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/1472
Author: @cha1latte
Created: 5/28/2026
Status: ✅ Merged
Merged: 5/28/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-issue-1466-character-picker📝 Commits (2)
f9b355eFix character summary cache refresh4de122bFix refactor Rust clippy warnings📊 Changes
11 files changed (+222 additions, -78 deletions)
View changed files
➕
pr-evidence/issue-1466/after-created-character-visible.png(+0 -0)➕
pr-evidence/issue-1466/before-picker-empty.png(+0 -0)📝
src-tauri/src/state.rs(+5 -6)📝
src/features/catalog/characters/components/ImportCharacterModal.tsx(+17 -6)➕
src/features/catalog/characters/hooks/use-characters.test.ts(+61 -0)📝
src/features/catalog/characters/hooks/use-characters.ts(+82 -31)📝
src/features/modes/conversation/components/ConversationView.tsx(+2 -2)📝
src/features/modes/conversation/hooks/autonomous/use-autonomous-messaging.ts(+28 -18)📝
src/features/modes/conversation/hooks/autonomous/use-background-autonomous.ts(+15 -8)📝
src/features/shell/bot-browser/components/BotBrowserView.tsx(+10 -5)📝
src/features/shell/imports/components/STBulkImportModal.tsx(+2 -2)📄 Description
Linked issue
Closes #1466
Why this change
useCharacterSummaries(), so it could keep showing the pre-create set until the app reloaded.What changed
characterKeys.list().src-tauri/src/state.rsafter rebasing onto the latestrefactorhead.Refactor impact
Primary owner:
Impact areas reviewed:
useCharacterSummaries()).local_path_from_media_reference) for clippy-only shape cleanup.Boundary notes:
Pressure points touched:
src-tauri/src/state.rslocal media-reference migration helper, clippy-only.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
pnpm exec vitest run --config scratch/vitest.issue-1466.config.ts: before the fix, reproduced the stale summary cache; after the fix, passed.pnpm exec vitest run src/features/catalog/characters/hooks/use-characters.test.ts: passed, 3 tests.node scratch\issue-1466-ui-verify.mjs: passed against Vite +marinara-server; the script opened the picker first, created a character through the Characters panel, opened a new conversation picker, and found the created character without refreshing.pnpm check: passed.pnpm build: passed with the existing large chunk warning.cargo clippy --manifest-path src-tauri/Cargo.toml --workspace --all-targets -- -D warnings: passed.graphify update .: ran after code changes; generated output was not included because the temp worktree name polluted Graphify report metadata and a stable-name junction rerun was blocked by Windows permissions.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
Before, after loading the picker with no new character selected:
After creating a character, a new conversation picker shows the created character without refresh:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.