mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1581] [MERGED] [codex] Harden provider connection errors #5128
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#5128
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/1581
Author: @Xelvanis
Created: 5/29/2026
Status: ✅ Merged
Merged: 5/29/2026
Merged by: @Xelvanis
Base:
refactor← Head:codex/provider-connection-errors📝 Commits (4)
f78966fHarden provider connection errorsc018b91Redact provider transport URL errors8b1f582Mark NanoGPT connection checks as warnings4e249b3Address provider error review findings📊 Changes
11 files changed (+708 additions, -186 deletions)
View changed files
📝
src-tauri/Cargo.lock(+2 -0)📝
src-tauri/crates/llm/src/lib.rs(+100 -44)📝
src-tauri/crates/security/Cargo.toml(+2 -0)📝
src-tauri/crates/security/src/lib.rs(+262 -0)📝
src-tauri/src/commands/storage/images/providers.rs(+73 -38)📝
src-tauri/src/commands/storage/integrations/discord.rs(+8 -3)📝
src-tauri/src/commands/storage/integrations/tts.rs(+17 -23)📝
src-tauri/src/commands/storage/llm.rs(+175 -30)📝
src/engine/contracts/types/connection.ts(+3 -0)📝
src/features/catalog/connections/types.ts(+5 -1)📝
src/features/shell/connections/components/ConnectionEditor.tsx(+61 -47)📄 Description
Linked issue
Closes #1567
Closes #1568
Closes #1569
Why this change
Provider and connection-test failures could surface upstream error text without a Marinara-owned final redaction pass. NanoGPT could also show a green connection-test success for a model-list lookup even though generation auth/payment was still unverified. The OpenAI ChatGPT setup UI also needed clearer local credential-file guidance.
What changed
?key=...values are not echoed back.auth.jsoncredential-file flow and locked fields.Refactor impact
Primary owner:
Rust provider transport/security plus Connections shell UI.
Impact areas reviewed:
marinara-securityredaction helpers and consumers.Boundary notes:
src-tauri/crates/securityand is reused by privileged Rust provider/integration boundaries.src/features/shell/connections; shared result typing stays in existing connection contract/type owners.Pressure points touched:
src-tauri/src/lib.rsregistration, or import workflow changes.Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
Commands and checks run locally:
cargo test --manifest-path src-tauri/Cargo.toml -p marinara-security -p marinara-llmcargo test --manifest-path src-tauri/Cargo.toml nanogpt_connectioncargo test --manifest-path src-tauri/Cargo.toml connection_models_marks_fallback_when_provider_lookup_failscargo test --manifest-path src-tauri/Cargo.toml image_provider_error_sanitizer_redacts_secretscargo test --manifest-path src-tauri/Cargo.toml openai_voice_lookup_marks_fallback_when_provider_failscargo test --manifest-path src-tauri/Cargo.toml -p marinara-llm openai_chatgpt_missing_auth_message_hides_local_pathcargo test --manifest-path src-tauri/Cargo.toml -p marinara-llm ensure_url_allowed_redacts_query_secretcargo test --manifest-path src-tauri/Cargo.toml model_url_rejection_redacts_query_secretcargo test --manifest-path src-tauri/Cargo.toml -p marinara-llm provider_http_error_redacts_sensitive_error_bodypnpm typecheckcargo check --manifest-path src-tauri/Cargo.toml --workspacepnpm check:architecturepnpm buildgit diff --check origin/refactor...HEAD -- . ':(exclude)graphify-out/**'Native Tauri QA:
Marinara Engine.Test Connection, and observedConnection Test: Warningplus the “does not verify generation auth/payment” copy. The card did not showConnection Test: Success.Proof gaps:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs files were changed; this is covered by existing issue reports and does not change run commands, architecture ownership, or contributor workflow.
UI evidence
Local native WebDriver screenshot evidence was captured for the NanoGPT warning card during Tauri QA. No screenshot artifact is committed in this PR.
Summary by CodeRabbit
New Features
Bug Fixes
Improvements
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.