mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2309] [MERGED] Fix chat storage parity gaps #5529
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#5529
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/2309
Author: @Promansis
Created: 6/5/2026
Status: ✅ Merged
Merged: 6/5/2026
Merged by: @Promansis
Base:
refactor← Head:fix/message-create-default-extra📝 Commits (1)
eeeaf8cFix chat folder storage semantics📊 Changes
3 files changed (+1138 additions, -6 deletions)
View changed files
📝
src-tauri/src/commands/storage/commands/entities.rs(+1126 -3)📝
src-tauri/src/commands/storage/contracts.rs(+7 -3)📝
src-tauri/src/commands/storage/shared.rs(+5 -0)📄 Description
Linked issue
Part of #2268.
Closes #2271.
Closes #2272.
Why this change
extraobjects instead of legacy default leaves.What changed
folderId: null, and missing-folder validation for chat moves.extraleaves on Rust message creation and shared API message create bodies without overwriting caller-provided metadata.isGeneratedrole rule.Refactor impact
Primary owner:
Rust storage and shared API.
Impact areas reviewed:
Boundary notes:
/api/invokestays aligned because the generic storage command and shared API wrapper own the behavior.Pressure points touched:
storageApi.createChatMessage.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
pnpm typecheckpassed.cargo check --manifest-path src-tauri/Cargo.toml --workspacepassed.cargo test --manifest-path src-tauri/Cargo.toml create_message_seeds_legacy_default_extra_without_overwriting_caller_extrapassed.cargo test --manifest-path src-tauri/Cargo.toml chat_folderpassed.cargo test --manifest-path src-tauri/Cargo.toml moving_chat_rejects_missing_folderpassed.pnpm checkpassed.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 visible UI change; storage behavior only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.