[GH-ISSUE #1251] [Issue]: Refactor provider model and TTS voice lookup failures look like fallback success #612

Closed
opened 2026-10-20 17:30:44 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Xelvanis on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1251

Originally assigned to: @cha1latte on GitHub.

Summary

Provider model lookup and TTS voice lookup failures can be downgraded into fallback catalogs without making the live-provider failure visible. A bad API key, bad endpoint, provider outage, or parse failure can look like a successful model/voice load.

Expected behavior

When a live provider lookup fails, the result should make that failure visible. If a fallback catalog is returned, the UI/API contract should clearly distinguish "live provider succeeded" from "live provider failed, showing local fallback."

Actual behavior

The audited code paths catch model/voice lookup failures and return fallback/default catalogs. That can hide configuration and provider errors from users.

Steps to reproduce

  1. On the refactor branch, configure an LLM or TTS provider with a bad endpoint, bad API key, or response shape that fails parsing.
  2. Trigger model or voice lookup.
  3. Observe whether the UI/API reports the live provider error or presents fallback options as if lookup succeeded.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor, identified during 2026-05-26 failpath audit
  • Run mode: Tauri/Rust provider and integration lookup paths
  • OS + version: not OS-specific
  • Node + pnpm versions: not relevant
  • Rust version, if relevant: not captured
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: LLM provider model lookup and TTS voice lookup

Logs, screenshots, or video

Relevant code paths:

src-tauri/src/commands/storage/llm.rs
src-tauri/src/commands/storage/integrations/tts.rs

Audit finding:

LLM model lookup can fall back to local catalog on fetch error.
TTS voice lookup can return fallback voices after network/parse failures.

Regression notes

Found by source inspection during the 2026-05-26 failpath audit. Needs a bad-endpoint/bad-key repro for the LLM and TTS paths.

Additional context

This can make provider configuration look healthier than it is and can send users down the wrong debugging path.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (May 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1251 Originally assigned to: @cha1latte on GitHub. ## Summary Provider model lookup and TTS voice lookup failures can be downgraded into fallback catalogs without making the live-provider failure visible. A bad API key, bad endpoint, provider outage, or parse failure can look like a successful model/voice load. ## Expected behavior When a live provider lookup fails, the result should make that failure visible. If a fallback catalog is returned, the UI/API contract should clearly distinguish "live provider succeeded" from "live provider failed, showing local fallback." ## Actual behavior The audited code paths catch model/voice lookup failures and return fallback/default catalogs. That can hide configuration and provider errors from users. ## Steps to reproduce 1. On the `refactor` branch, configure an LLM or TTS provider with a bad endpoint, bad API key, or response shape that fails parsing. 2. Trigger model or voice lookup. 3. Observe whether the UI/API reports the live provider error or presents fallback options as if lookup succeeded. ## Impact area - [x] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `refactor`, identified during 2026-05-26 failpath audit - Run mode: Tauri/Rust provider and integration lookup paths - OS + version: not OS-specific - Node + pnpm versions: not relevant - Rust version, if relevant: not captured - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: LLM provider model lookup and TTS voice lookup ## Logs, screenshots, or video Relevant code paths: ```text src-tauri/src/commands/storage/llm.rs src-tauri/src/commands/storage/integrations/tts.rs ``` Audit finding: ```text LLM model lookup can fall back to local catalog on fetch error. TTS voice lookup can return fallback voices after network/parse failures. ``` ## Regression notes Found by source inspection during the 2026-05-26 failpath audit. Needs a bad-endpoint/bad-key repro for the LLM and TTS paths. ## Additional context This can make provider configuration look healthier than it is and can send users down the wrong debugging path. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:30:44 +07:00
  • closed this issue
  • added the
    server
    bug
    labels
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#612
No description provided.