mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1788] [Issue]: Connections parity regressions in credentials, folders, and provider metadata #870
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#870
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/1788
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The refactor Connections feature has several parity regressions from the legacy Connections implementation. The highest-risk gap is credential handling: connection API keys now flow through generic storage as plain
apiKeyrecords, while legacy encrypted stored keys and masked normal reads.Secondary regressions affect connection folder lifecycle behavior, provider model metadata, Claude routing diagnosis UX, and ComfyUI reference-image placeholder guidance.
Expected behavior
contextandmaxOutput, and the editor applies those values when selecting fetched models.Actual behavior
apiKeystorage and reads:src/engine/contracts/schemas/connection.schema.tssrc/features/catalog/connections/hooks/use-connections.tssrc-tauri/src/commands/storage/llm.rssrc-tauri/src/commands/storage/prompts.rspackages/server/src/utils/crypto.tspackages/server/src/services/storage/connections.storage.tspackages/server/src/routes/connections.routes.tssrc/features/catalog/connections/hooks/use-connection-folders.tssrc-tauri/crates/storage/src/lib.rspackages/server/src/services/storage/connection-folders.storage.tspackages/server/src/routes/connection-folders.routes.tssrc-tauri/src/commands/storage/llm.rssrc/features/shell/connections/components/ConnectionEditor.tsxpackages/server/src/routes/connections.routes.tspackages/client/src/components/connections/ConnectionEditor.tsxSteps to reproduce
Static code-path reproduction from the current refactor branch:
apiKeyis stored/read directly, with no equivalent encrypted field or decrypt-on-use path.success={claudeDiagResult.success}can render success while a downgrade warning is also shown.%reference_image_name%are supported by the runtime but missing from editor validation/help text.Impact area
Environment
origin/refactorat6cc9d086Logs, screenshots, or video
No logs or screenshots. This came from static parity comparison against the legacy implementation. No secrets or API keys were inspected.
Regression notes
Legacy behavior had dedicated server-side storage/routes for connection credentials and connection folders. The refactor appears to have moved these paths onto generic storage without carrying over several owner-specific behaviors.
The Local Model sidecar workflow also differs: legacy exposed a built-in Local Model card under Connections, while refactor code appears to retire sidecar embeddings and require normal embedding-capable connections. That may be intentional, but it needs either a port decision or explicit import/discovery guidance.
Additional context
Suggested fix order:
%reference_image_name%and indexed filename variants.Template check
@SpicyMarinara commented on GitHub (Jun 1, 2026):
Fixed on refactor in c887d704.\n\nWhat changed:\n- connection API keys now go through a dedicated secret path: generic reads are masked, storage writes encrypt keys at rest, trusted runtime/model/image/embedding paths decrypt explicitly, and legacy plaintext keys migrate on runtime use with a clear re-entry error if decryption fails.\n- profile export/import now exports connection keys in a portable form and re-encrypts them on import under the target install key.\n- connection folders now get native defaults/validation, server-side move/reorder commands, and folder deletion unfiles child connections.\n- provider model fetches preserve remote context/max output metadata; fetched models are no longer hidden behind static duplicates, and selection applies those limits.\n- Claude subscription routing diagnosis now reports downgrade/different billed model as unsuccessful instead of green.\n- ComfyUI workflow help/validation documents %reference_image_name% and indexed reference filename placeholders.\n\nVerified:\n- pnpm typecheck\n- pnpm check:architecture\n- cargo check --manifest-path src-tauri/Cargo.toml\n- cargo test --manifest-path src-tauri/Cargo.toml connection_\n- cargo test --manifest-path src-tauri/Cargo.toml openai_compatible_model_metadata_preserves_context_and_output_limits\n- cargo test --manifest-path src-tauri/Cargo.toml profile_export_import_preserves_connection_folders\n- git diff --check