mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1310] [MERGED] Fix provider lookup fallback metadata #5027
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#5027
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/1310
Author: @cha1latte
Created: 5/26/2026
Status: ✅ Merged
Merged: 5/26/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-issue-1251-provider-lookup-failures📝 Commits (2)
289b366Fix provider lookup fallback metadataa0be8afAddress provider fallback review notes📊 Changes
6 files changed (+403 additions, -24 deletions)
View changed files
📝
src-tauri/src/commands/storage/integrations/tts.rs(+165 -10)📝
src-tauri/src/commands/storage/llm.rs(+179 -7)📝
src/engine/contracts/types/tts.ts(+6 -0)📝
src/features/catalog/connections/hooks/use-connections.ts(+8 -1)📝
src/features/shell/connections/components/ConnectionEditor.tsx(+34 -6)📝
src/features/shell/settings/components/settings/TTSConfigCard.tsx(+11 -0)📄 Description
Linked issue
Closes #1251
Why this change
What changed
connection_models, while keepingllm_list_modelsarray-compatible and annotating fallback model rows.fallback: trueand includesproviderError/providerErrorCodewhen a live provider request fails or returns unusable data.Refactor impact
Primary owner:
Rust storage / shared API / shell settings
Impact areas reviewed:
Boundary notes:
connection_modelsremains backward-compatible for callers that only readmodels.llm_list_modelsremains an array response; fallback rows are annotated instead of changing the command shape.tts_voicespreserves existingvoices,voiceOptions,fromProvider, andsourcefields while adding optional fallback/error metadata.Pressure points touched:
src-tauri/src/commands/storage/llm.rssrc-tauri/src/commands/storage/integrations/tts.rsValidation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
cargo test marks_fallback; the LLM and TTS fallback metadata assertions failed before the production patch.cargo test marks_fallback; both provider-failure tests passed.cargo test lookup; TTS provider success stayedfromProvider=true/fallback=false, failed lookup returnedproviderError, and disabled TTS fallback had no provider error.cargo test connection_models; provider failure returned fallback/error metadata, while provider success stayed distinct from fallback.pnpm check; architecture, frontend typecheck, Rust check, and docs check passed.scratch/bugfix-verification.json; it passed.pnpm check.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs, release metadata, schema, or dependency declarations changed.
UI evidence
No screenshot attached. This is a native command contract/error-state fix with small settings UI conditional copy. The changed UI paths typecheck under
pnpm check; the provider failure behavior is covered by Rust command harnesses.Summary by CodeRabbit
Release Notes
New Features
Improvements
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.