[GH-ISSUE #1568] [Issue]: NanoGPT connection test reports success before generation auth is actually usable #808

Closed
opened 2026-10-21 05:21:24 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @Xelvanis on GitHub.

Summary

NanoGPT connection testing can report success even when the same connection cannot send a message because auth or payment state is invalid.

Expected behavior

The connection test should either validate the same auth/payment requirements needed for generation, or clearly say that it only confirms model-list access and does not prove the connection can send messages.

Actual behavior

Jake's Connections / Runtime Behavior smoke test found that NanoGPT returns a green success message during connection test even for invalid or missing key setups, but sending a message fails afterward:

  • Junk key: connection test shows success and reports available models; send fails with 401 Unauthorized: Invalid session.
  • Null key: connection test shows success and reports available models; send fails with a payment/balance error.

This makes the connection look usable until the user tries generation.

Steps to reproduce

  1. Open Connections settings.
  2. Create or edit a NanoGPT connection.
  3. Use a synthetic invalid key, then run the connection test.
  4. Try sending a normal chat message with that connection.
  5. Repeat with a missing/null key if the UI allows it.
  6. Compare the green connection-test result against the send failure.

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 / 390990e
  • Run mode: Podman using the provided manifest + Vite/dist served through Caddy
  • OS + version: Alma Linux
  • Node + pnpm versions: Not specified
  • Rust version, if relevant: Not specified
  • Remote Runtime URL configured? Not specified
  • Provider, model, or integration, if relevant: NanoGPT

Logs, screenshots, or video

Source smoke-test issue: #1481.

Do not paste payment retrieval URLs or real API keys into this issue.

Regression notes

Jake noted this behavior may have parity with main, so this may be an existing provider-test contract problem rather than a refactor-only regression.

Additional context

Even if NanoGPT's model-list endpoint does not validate the key, Marinara should avoid presenting that as full connection success.

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 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1568 Originally assigned to: @Xelvanis on GitHub. ## Summary NanoGPT connection testing can report success even when the same connection cannot send a message because auth or payment state is invalid. ## Expected behavior The connection test should either validate the same auth/payment requirements needed for generation, or clearly say that it only confirms model-list access and does not prove the connection can send messages. ## Actual behavior Jake's Connections / Runtime Behavior smoke test found that NanoGPT returns a green success message during connection test even for invalid or missing key setups, but sending a message fails afterward: - Junk key: connection test shows success and reports available models; send fails with `401 Unauthorized: Invalid session`. - Null key: connection test shows success and reports available models; send fails with a payment/balance error. This makes the connection look usable until the user tries generation. ## Steps to reproduce 1. Open Connections settings. 2. Create or edit a NanoGPT connection. 3. Use a synthetic invalid key, then run the connection test. 4. Try sending a normal chat message with that connection. 5. Repeat with a missing/null key if the UI allows it. 6. Compare the green connection-test result against the send failure. ## Impact area - [x] App shell, navigation, startup, or providers - [ ] Catalog resources - [x] 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 - [x] 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` / `390990e` - Run mode: Podman using the provided manifest + Vite/dist served through Caddy - OS + version: Alma Linux - Node + pnpm versions: Not specified - Rust version, if relevant: Not specified - Remote Runtime URL configured? Not specified - Provider, model, or integration, if relevant: NanoGPT ## Logs, screenshots, or video Source smoke-test issue: #1481. Do not paste payment retrieval URLs or real API keys into this issue. ## Regression notes Jake noted this behavior may have parity with main, so this may be an existing provider-test contract problem rather than a refactor-only regression. ## Additional context Even if NanoGPT's model-list endpoint does not validate the key, Marinara should avoid presenting that as full connection success. ## 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-21 05:21:24 +07:00
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#808
No description provided.