mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2292] [MERGED] Batch character summary reads by ID #5528
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#5528
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/2292
Author: @Xelvanis
Created: 6/5/2026
Status: ✅ Merged
Merged: 6/5/2026
Merged by: @Xelvanis
Base:
refactor← Head:fix/batch-character-summary-by-id-loading📝 Commits (4)
626f30estorage: batch character summary reads2dbda0fstorage: align list selector contractscc13db5llm: simplify custom parameter predicate59bc3c1Merge refactor into batch character summary branch📊 Changes
5 files changed (+417 additions, -41 deletions)
View changed files
📝
src-tauri/crates/llm/src/lib.rs(+4 -4)📝
src-tauri/src/commands/storage/commands/entities.rs(+391 -7)📝
src/engine/capabilities/storage.ts(+11 -3)📝
src/features/catalog/characters/hooks/use-characters.ts(+9 -25)📝
src/features/catalog/chats/lib/timeline-message.ts(+2 -2)📄 Description
Linked issue
N/A
Why this change
getcalls. Batched reads reduce command overhead while preserving missing-ID handling and caller order.What changed
whereInsupport to the publicstorage_listcommand, including projected reads and stricter input validation.storageApi.listcall, then restore caller order.whereInto a wrapper that always adds achatIdfilter.whereIn.values, and projected message swipe materialization throughwhereIn.Refactor impact
Primary owner:
Rust storage command, shared storage capability contract, and catalog character hooks.
Impact areas reviewed:
storage_list_inner.Boundary notes:
storageApiwrapper, not raw Tauri or raw remote-runtime fetch.src/engine/capabilities/storage.tsowns the shared storage option contract.src-tauriowns the privileged storage filtering and projection behavior.storage_listinvoke/dispatch path.Pressure points touched:
Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
cargo test --manifest-path src-tauri/Cargo.toml storage_list_where_incargo test --manifest-path src-tauri/Cargo.toml storage_list_cargo check --manifest-path src-tauri/Cargo.tomlpnpm typecheckpnpm checkgit diff --checkNo manual UI or native Tauri pass was run; this is a storage/API batching fix with focused machine coverage.
Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A; no visible UI changes.
Summary by CodeRabbit
New Features
whereInquery parameter to storage list operations, enabling more flexible filtering options based on field valuesRefactor
Tests
whereInfunctionality, including field projection and message handling scenarios🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.