mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1939] [CLOSED] Extract message swipes into sidecar storage #5349
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#5349
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/1939
Author: @Xelvanis
Created: 6/2/2026
Status: ❌ Closed
Base:
refactor← Head:feature/message-swipe-sidecar📝 Commits (1)
0f29b93Add message swipe sidecar storage📊 Changes
16 files changed (+2367 additions, -157 deletions)
View changed files
📝
src-tauri/src/commands/storage.rs(+2 -0)📝
src-tauri/src/commands/storage/admin.rs(+1 -0)📝
src-tauri/src/commands/storage/chats.rs(+170 -79)📝
src-tauri/src/commands/storage/commands/entities.rs(+479 -58)📝
src-tauri/src/commands/storage/contracts.rs(+9 -0)📝
src-tauri/src/commands/storage/exports.rs(+8 -2)📝
src-tauri/src/commands/storage/game_state_snapshots.rs(+3 -4)📝
src-tauri/src/commands/storage/imports/bulk_imports.rs(+5 -2)📝
src-tauri/src/commands/storage/imports/marinara_rollback.rs(+7 -0)📝
src-tauri/src/commands/storage/imports/rollback.rs(+7 -0)➕
src-tauri/src/commands/storage/message_swipes.rs(+1385 -0)📝
src-tauri/src/commands/storage/profile.rs(+265 -0)📝
src-tauri/src/commands/storage/profile/legacy.rs(+6 -1)📝
src-tauri/src/commands/storage/shared.rs(+1 -0)📝
src-tauri/src/http_dispatch.rs(+2 -0)📝
src-tauri/src/state.rs(+17 -11)📄 Description
Linked issue
Closes #1923
Why this change
What changed
message-swipessidecar storage and migrates embedded message swipes into sidecar rows.Refactor impact
Primary owner:
Impact areas reviewed:
Boundary notes:
src-tauri; no engine-to-Tauri or feature-internal imports added.src-tauri/src/http_dispatch.rs.Pressure points touched:
src-tauri/src/lib.rscommand registration was not changed.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
Commands run locally:
cargo test --manifest-path src-tauri/Cargo.toml swipe(25 passed)cargo test --manifest-path src-tauri/Cargo.toml profile_import(11 passed)cargo check --manifest-path src-tauri/Cargo.tomlpnpm typecheckgit diff --check origin/refactor..HEADcargo test --manifest-path src-tauri/Cargo.toml message_swipes(21 passed)cargo test --manifest-path src-tauri/Cargo.toml branch_chat_sets_game_state_to_selected_tracker_snapshot(1 passed)cargo test --manifest-path src-tauri/Cargo.toml storage_list_projected_embedded_swipes_materializes_without_swipes_field -- --nocapture(1 passed)cargo test --manifest-path src-tauri/Cargo.toml message_projection_materialization_includes_internal_sort_fields -- --nocapture(1 passed)cargo test --manifest-path src-tauri/Cargo.toml storage_commands(319 passed)cargo test --manifest-path src-tauri/crates/storage/Cargo.toml(27 passed)git diff --checkpnpm checkAdditional notes:
origin/refactorthrough9d7237aekept both the base projected-page payload-skip test and the sidecar embedded-swipe materialization test. Targeted Rust tests,message_swipes,git diff --check, andpnpm checkpassed after the merge.swipes; this branch now includesswipesonly for internal materialization and keeps caller projection stripping unrequestedswipes.Marinara Engine QAvia WebView2/CDP: restored numeric jump input switched assistant swipes 3 -> 1 -> 2 -> 3 with matching message text changes and no console/page errors.chat_message_set_active_swipe,storage_get, filteredstorage_list, andtracker_snapshot_getfor swipe indexes 0 and 1, followed bytracker_snapshot_latest; QA metadata and active swipe were restored afterward.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
No screenshots or recordings captured. Native Tauri QA via WebView2/CDP verified the restored jump input and tracker refresh request path after active swipe switching; no console/page errors observed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.