mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1843] [MERGED] Fix connection storage invariants #5313
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#5313
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/1843
Author: @cha1latte
Created: 6/1/2026
Status: ✅ Merged
Merged: 6/1/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1807-connection-storage-invariants📝 Commits (1)
5d8d9f1Fix connection storage invariants📊 Changes
3 files changed (+142 additions, -17 deletions)
View changed files
📝
src-tauri/src/commands/storage/commands/entities.rs(+134 -4)📝
src-tauri/src/commands/storage/connection_secrets.rs(+2 -8)📝
src-tauri/src/commands/storage/profile.rs(+6 -5)📄 Description
Linked issue
Closes #1807
Why this change
What changed
isDefault,default, anddefaultForAgentswhile preserving encrypted secrets.Refactor impact
Primary owner:
Rust storage
Impact areas reviewed:
Boundary notes:
src-tauristorage/profile command code. Existing frontend hooks continue to call the storage and connection command wrappers.Pressure points touched:
connectionsconnection_folder_reorderValidation
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 duplicating_connection_resets_default_flags_and_keeps_secret_masked -- --nocapturefailed because the duplicate retainedisDefault: true.cargo test --manifest-path src-tauri\Cargo.toml reordering_connection_folders_requires_each_folder_once -- --nocapturefailed because duplicate folder ids were accepted and mutated order.cargo test --manifest-path src-tauri\Cargo.toml profile_export_import_preserves_connection_folders -- --nocapturefailed because profile export returnedsk-export-secretas plaintext.cargo test --manifest-path src-tauri\Cargo.toml connection_ -- --nocapturepassed: 28 passed.upstream/refactor,pnpm checkpassed.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpassed.data/storage/connections.jsonanddata/secrets/connection-master.keyto a separate folder outside the active Marinara profile data directory.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.mdNo docs changes made. Release note may want to mention that profile export no longer includes provider API keys in plaintext.
UI evidence
N/A; this is a backend storage/profile command fix with Rust command proof and full
pnpm check.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.