mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1493] [MERGED] Route add-swipe calls through storage API #5110
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#5110
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/1493
Author: @Xelvanis
Created: 5/29/2026
Status: ✅ Merged
Merged: 5/29/2026
Merged by: @Xelvanis
Base:
refactor← Head:fix/add-swipe-storage-wrapper📝 Commits (4)
2f083d0Route add-swipe calls through storage API004bad7Fix inactive swipe legacy recordse29102dMerge remote-tracking branch 'origin/refactor' into fix/add-swipe-storage-wrapper670d1a0Handle first message swipe write failures📊 Changes
14 files changed (+746 additions, -206 deletions)
View changed files
📝
graphify-out/GRAPH_REPORT.md(+10 -10)📝
graphify-out/cache/stat-index.json(+1 -1)📝
graphify-out/graph.json(+392 -116)📝
graphify-out/manifest.json(+20 -20)📝
src-tauri/src/commands/storage/chats.rs(+227 -3)📝
src/engine/capabilities/storage.ts(+6 -1)📝
src/engine/generation/start-generation.test.ts(+33 -19)📝
src/engine/generation/start-generation.ts(+1 -1)📝
src/features/catalog/characters/components/CharactersPanel.tsx(+20 -17)📝
src/features/catalog/characters/hooks/use-start-chat-from-character.ts(+1 -1)📝
src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx(+1 -5)📝
src/features/modes/shared/chat-ui/components/ChatSetupWizard.tsx(+1 -9)📝
src/shared/api/storage-api.test.ts(+19 -0)📝
src/shared/api/storage-api.ts(+14 -3)📄 Description
Linked issue
N/A - no linked issue supplied.
Why this change
chat_message_add_swipecalls, so alternate greetings bypassed the shared storage wrapper and could not explicitly append inactive swipes.extrametadata intact for prompt/generation replay.swipes.What changed
storageApi.addChatMessageSwipewithextraandactivatesupport.activate: false.extrathrough the wrapper.activate: falseand legacysilent: true, clamp stale active indexes, and seed missing legacy swipes before inactive append.graphify-outfor the combined branch.Refactor impact
Primary owner:
Shared API adapter and Rust storage, with feature caller cleanup in catalog/shared chat UI and generation replay coverage in engine generation.
Impact areas reviewed:
chat_message_add_swipebehavior for active/inactive append, legacysilent, stale active indexes, and old persisted message records.Boundary notes:
invokeTauri.Pressure points touched:
ChatSetupWizard,ChatSettingsDrawer.graphify-outfiles.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
Ran before the final merge from
origin/refactor:pnpm buildpassed with the existing large chunk warning.Ran after merging current
origin/refactor:cargo test --manifest-path src-tauri/Cargo.toml professor_mari_promptcargo test --manifest-path src-tauri/Cargo.toml assetscargo test --manifest-path src-tauri/Cargo.toml message_swipes_cargo check --manifest-path src-tauri/Cargo.toml --workspacepnpm test -- src/shared/api/storage-api.test.ts src/engine/generation/start-generation.test.tspnpm typecheckpnpm check:architecturegraphify update .Not run:
pnpm check.pnpm buildafter the final merge commit.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs changes were made; this is a storage/API wrapper behavior fix and caller cleanup rather than contributor or user-facing documentation work.
UI evidence
N/A - no visible UI surface changed directly.
Summary by CodeRabbit
New Features
activateoption to explicitly control whether newly added swipes become active.Improvements
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.