[GH-ISSUE #1428] [Issue]: Conversation provider failures do not surface the provider error text #709

Closed
opened 2026-10-20 17:32:10 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @cha1latte, @SpicyMarinara on GitHub.

Summary

Conversation mode does not surface the provider error text when the text-generation provider returns HTTP 500. The failed user message remains in the chat, but no visible recoverable error appears.

Expected behavior

When generation fails with a provider error, Conversation mode should show a clear visible error including the provider message, so the user knows the send failed and can retry or fix the connection.

Actual behavior

After the fake provider returned HTTP 500 with fake provider 500, the chat showed only the user message. The QA script could not find the provider error text in the UI after waiting for the failure state.

Steps to reproduce

  1. On refactor commit 02eb5841, run the web shell with a valid remote runtime URL.
  2. Create a Conversation chat using a text-generation connection.
  3. Configure that connection to an OpenAI-compatible endpoint that returns HTTP 500 from /v1/chat/completions.
  4. Send a message in the Conversation chat.
  5. Observe the chat after the request fails.

Impact area

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

Environment

  • Branch or commit: refactor / 02eb5841
  • Run mode: web shell + remote runtime
  • OS + version: Windows
  • Node + pnpm versions: Node v24.13.0, pnpm 10.33.2
  • Rust version, if relevant: rustc 1.95.0
  • Remote Runtime URL configured? yes, http://127.0.0.1:8787
  • Provider, model, or integration, if relevant: scratch fake OpenAI-compatible provider, model marinara-fake-500

Logs, screenshots, or video

QA evidence was captured locally under:

scratch/conversation-qa-2026-05-27T18-34-03-825Z/

Relevant files:

  • provider-500-no-specific-error.png
  • ledger.json

The screenshot shows the failed user message trigger provider failure in the conversation with no visible fake provider 500 error text.

Regression notes

Not specified.

Additional context

The fake provider returned HTTP 500 with JSON body:

{ "error": { "message": "fake provider 500" } }

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 @cha1latte on GitHub (May 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1428 Originally assigned to: @cha1latte, @SpicyMarinara on GitHub. ## Summary Conversation mode does not surface the provider error text when the text-generation provider returns HTTP 500. The failed user message remains in the chat, but no visible recoverable error appears. ## Expected behavior When generation fails with a provider error, Conversation mode should show a clear visible error including the provider message, so the user knows the send failed and can retry or fix the connection. ## Actual behavior After the fake provider returned HTTP 500 with `fake provider 500`, the chat showed only the user message. The QA script could not find the provider error text in the UI after waiting for the failure state. ## Steps to reproduce 1. On `refactor` commit `02eb5841`, run the web shell with a valid remote runtime URL. 2. Create a Conversation chat using a text-generation connection. 3. Configure that connection to an OpenAI-compatible endpoint that returns HTTP 500 from `/v1/chat/completions`. 4. Send a message in the Conversation chat. 5. Observe the chat after the request fails. ## Impact area - [x] Chat mode - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [x] Shared API wrapper or remote runtime routing - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `refactor` / `02eb5841` - Run mode: web shell + remote runtime - OS + version: Windows - Node + pnpm versions: Node `v24.13.0`, pnpm `10.33.2` - Rust version, if relevant: `rustc 1.95.0` - Remote Runtime URL configured? yes, `http://127.0.0.1:8787` - Provider, model, or integration, if relevant: scratch fake OpenAI-compatible provider, model `marinara-fake-500` ## Logs, screenshots, or video QA evidence was captured locally under: `scratch/conversation-qa-2026-05-27T18-34-03-825Z/` Relevant files: - `provider-500-no-specific-error.png` - `ledger.json` The screenshot shows the failed user message `trigger provider failure` in the conversation with no visible `fake provider 500` error text. ## Regression notes Not specified. ## Additional context The fake provider returned HTTP 500 with JSON body: ```json { "error": { "message": "fake provider 500" } } ``` ## 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:32:10 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

On it.

<!-- gh-comment-id:4557629966 --> @SpicyMarinara commented on GitHub (May 27, 2026): On it.
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

Implemented on refactor.

What changed:

  • Generation failures now persist a visible system notice into the chat with the provider error text.
  • The notice is marked hiddenFromAi/hiddenFromAI, so it informs the user without being injected back into future prompts.
  • The existing toast remains for immediate feedback.

Verification:

  • git diff --check
  • pnpm typecheck
  • pnpm lint
  • pnpm check:architecture
  • pnpm build
  • graphify update .
<!-- gh-comment-id:4557653722 --> @SpicyMarinara commented on GitHub (May 27, 2026): Implemented on `refactor`. What changed: - Generation failures now persist a visible system notice into the chat with the provider error text. - The notice is marked `hiddenFromAi`/`hiddenFromAI`, so it informs the user without being injected back into future prompts. - The existing toast remains for immediate feedback. Verification: - `git diff --check` - `pnpm typecheck` - `pnpm lint` - `pnpm check:architecture` - `pnpm build` - `graphify update .`
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#709
No description provided.