mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1807] Restore connection secret handling and storage invariants #885
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#885
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?
Originally created by @Xelvanis on GitHub (Jun 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1807
Originally assigned to: @cha1latte on GitHub.
Summary
The refactor connections surface preserves much of the legacy editor behavior, but the storage layer dropped several legacy invariants around secrets, default flags, and folders.
Regressions
1. API keys are persisted as plaintext while the UI says they are encrypted
Refactor evidence:
src/features/shell/connections/components/ConnectionEditor.tsxstill tells users their key is encrypted at rest.src/features/catalog/connections/hooks/use-connections.tssends create/update data through generic storage.src-tauri/crates/storage/src/lib.rspersists the record as provided.src-tauri/src/commands/storage/llm.rsreads the rawapiKeyfield back from the connection record.Legacy behavior:
packages/server/src/services/storage/connections.storage.tsencryptedapiKeyon create/update and returned masked keys through read paths.Impact:
Expected:
2. Duplicating a connection preserves default flags
Refactor evidence:
src/features/catalog/connections/hooks/use-connections.tscalls generic duplicate forconnections.src-tauri/src/commands/storage/shared.rscopies the record, removes only the id, and appendsCopyto the name.isDefault/defaultForAgentsconnection.Legacy behavior:
packages/server/src/services/storage/connections.storage.tsresetisDefaultanddefaultForAgentsto false when duplicating.Impact:
Expected:
isDefaultanddefaultForAgents.3. Connection folder operations use generic storage and miss legacy invariants
Refactor evidence:
src/features/catalog/connections/hooks/use-connection-folders.tscreates, deletes, and reorders folders through generic storage calls.src/features/shell/connections/components/ConnectionsPanel.tsxassumes folder records havesortOrderand tells users deleted-folder contents move to Unfiled.folderIdvalues.Legacy behavior:
packages/server/src/services/storage/connection-folders.storage.tscreated folders with defaultsortOrder/collapsed, shifted existing sort order, unfiled children on delete, and reordered transactionally.Impact:
folderIdvalues in connection records.Expected:
folderIdvalues.Product divergence to confirm
The legacy Connections panel included a Local Model sidecar card. The refactor no longer has that card, and
src-tauri/src/commands/storage/prompts.rsexplicitly reports legacy sidecar embeddings as retired. This looks intentional, but it removes the legacy setup path for local-model connection/status handling.Refactor behavior to preserve
src-tauri/src/connection_refs.rs.ConnectionEditor.tsx.Acceptance criteria
@cha1latte commented on GitHub (Jun 1, 2026):
Fixed in #1843