[GH-ISSUE #1481] Smoke test: Connections / Runtime Behavior #737

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

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

Originally assigned to: @cha1latte on GitHub.

ASSIGNED TO JAKE9000
Please take Smoke test: Connections / Runtime Behavior.

Assign one person per provider/config. Do not expose secrets in screenshots.

Setup:

  • Tester:
  • Branch/commit:
  • OS:
  • Run mode: Tauri desktop / Web-Vite
  • Provider/model:
  • Dataset/setup:

Checks:

  • PASS / [ ] FAIL - I can create or edit a disposable connection.
  • PASS / [ ] FAIL - I can select the intended active connection/model.
  • PASS / [ ] FAIL - I can send a normal chat request with a valid connection.
  • PASS / [ ] FAIL - I can intentionally use a bad/missing auth setup and get a clear error without leaking keys.
  • PASS / [ ] FAIL - I can switch back to the working connection and recover without restarting the app.

If something fails, file one GitHub issue per distinct failure and link it back to the project card.

Originally created by @cha1latte on GitHub (May 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1481 Originally assigned to: @cha1latte on GitHub. ASSIGNED TO JAKE9000 Please take **Smoke test: Connections / Runtime Behavior**. Assign one person per provider/config. Do not expose secrets in screenshots. Setup: - Tester: - Branch/commit: - OS: - Run mode: Tauri desktop / Web-Vite - Provider/model: - Dataset/setup: Checks: - [ ] PASS / [ ] FAIL - I can create or edit a disposable connection. - [ ] PASS / [ ] FAIL - I can select the intended active connection/model. - [ ] PASS / [ ] FAIL - I can send a normal chat request with a valid connection. - [ ] PASS / [ ] FAIL - I can intentionally use a bad/missing auth setup and get a clear error without leaking keys. - [ ] PASS / [ ] FAIL - I can switch back to the working connection and recover without restarting the app. If something fails, file one GitHub issue per distinct failure and link it back to the project card.
Author
Owner

@jake9000 commented on GitHub (May 29, 2026):

Tester: me
Branch: refactor/ 390990e
OS: Alma Linux
Run Mode: podman using the provided manifest + vite

  1. I can create a disposable connection: yes
  2. I can select the intended active model:Yes. It seems fine when selected either in chat settings or from the quick switcher on the input bar.
  3. I can send a normal chat request with a valid connection:
    Yes
  4. I can intentionally use a bad/missing auth setup and get a clear error without leaking keys:
    Partial:
    Some services output a partial of the key. When I investigated the source code, ME does not redact messages. We are relying on the services to not include keys in their errors. For some of them, I found that if the key is very short such as 'MyKey' then that will be completely in the clear because they are set to show the first x and last y of the string.
  5. I can switch back to the working connection and recover without restarting the app: yes. Again, that works fine with both the quick switcher and the chat settings menu.

junk key: "this is my super secret key"

Connection: OpenAI
Null key connection test: Provider returned HTTP 401 Unauthorized: { "error": { "message": "Missing bearer authentication in header", "type": "invalid_request_error", "param": null, "code": null } }
Null key send message: connection model is required
Junk key connection test: Provider returned HTTP 401 Unauthorized: { "error": { "message": "Incorrect API key provided: this is *************** key. You can find your API key at https://platform.openai.com/account/api-keys.", "type": "invalid_request_error", "param": null, "code": "invalid_api_key" } }
Junk key message: connection model is required

Connection: OpenAI (ChatGPT)
Behavior is inconsistent.
In MAIN, the api key and connection url is locked out, a helptext is displayed explaining that ME will aquire a .json file from the filesystem.
In REFACTOR, this helptext is missing. The engine does report in error messages that it could not find the .json file however.

Connection: Anthropic
Null key connection test: Provider returned HTTP 401 Unauthorized: {"type":"error","error":{"type":"authentication_error","message":"x-api-key header is required"},"request_id":"req_011CbW6xZiDnvwbtSbbZi9ep"}
Null key message: same
Junk key connection test: Provider returned HTTP 401 Unauthorized: {"type":"error","error":{"type":"authentication_error","message":"invalid x-api-key"},"request_id":"req_011CbW71tTRntKxP8TdHaYLK"}
Junk key message: same

gemini:
null key: API returned 403: Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API.
junk key: API returned 400: API key not valid. Please pass a valid API key.
Messages are the same in both connection test and messages

Vertex
I don't have a vertex project to test this with, and one is required to have a valid personalized url.

Mistral:
junk: API returned 401: Unauthorized
null: API returned 401: Unauthorized

Cohere:
Null: Provider returned HTTP 401 Unauthorized: {"id":"1ffa5168-32e5-4393-85af-acc632af5853","message":"no api key supplied"}
Junk: Provider returned HTTP 401 Unauthorized: {"id":"8d38677b-437b-441c-9021-7fe3f3148215","message":"Incorrect API key provided: ****. You can find your API key at https://dashboard.cohere.com/api-keys."}

Openrouter:
Null: API key is required for this provider.
Junk: OpenRouter returned HTTP 401 Unauthorized: {"error":{"message":"Missing Authentication header","code":401}}
Note: this connection does work when a valid key is provided.

NanoGPT
Junk key
Connection test: (green text)Connection successful. 613 models available.
Send test message: Provider returned HTTP 401 Unauthorized: Invalid session
(the success message is misleading but this technically has parity with MAIN. nano must not be evaluating the key on connection test.)
Null key:
connection test: (green text) Connection successful. 613 models available.
send test emssage: Provider returned HTTP 402 Payment Required: Insufficient balance. Multiple payment options available. [an x402 payment address and retrieval url is in this message; someone with access to this message can make a payment and retrieve the output.

xGrok
Null key: Provider returned HTTP 401 Unauthorized: {"code":"The request does not have valid authentication credentials","error":"No credentials presented. [WKE=unauthenticated:no-credentials]"}
Junk key: Provider returned HTTP 400 Bad Request: {"code":"Client specified an invalid argument","error":"Incorrect API key provided: th***ey. You can obtain an API key from https://console.x.ai."}
both messages and connection test showed this message

custom oai-compatible:
I attempted it with fireworks and received normal errors both times.

<!-- gh-comment-id:4571022024 --> @jake9000 commented on GitHub (May 29, 2026): Tester: me Branch: refactor/ 390990e OS: Alma Linux Run Mode: podman using the provided manifest + vite 1. I can create a disposable connection: yes 2. I can select the intended active model:Yes. It seems fine when selected either in chat settings or from the quick switcher on the input bar. 3. I can send a normal chat request with a valid connection: Yes 4. I can intentionally use a bad/missing auth setup and get a clear error without leaking keys: Partial: Some services output a partial of the key. When I investigated the source code, ME does not redact messages. We are relying on the services to not include keys in their errors. For some of them, I found that if the key is very short such as 'MyKey' then that will be completely in the clear because they are set to show the first x and last y of the string. 5. I can switch back to the working connection and recover without restarting the app: yes. Again, that works fine with both the quick switcher and the chat settings menu. ----- junk key: "this is my super secret key" Connection: OpenAI Null key connection test: Provider returned HTTP 401 Unauthorized: { "error": { "message": "Missing bearer authentication in header", "type": "invalid_request_error", "param": null, "code": null } } Null key send message: connection model is required Junk key connection test: Provider returned HTTP 401 Unauthorized: { "error": { "message": "Incorrect API key provided: this is *************** key. You can find your API key at https://platform.openai.com/account/api-keys.", "type": "invalid_request_error", "param": null, "code": "invalid_api_key" } } Junk key message: connection model is required Connection: OpenAI (ChatGPT) Behavior is inconsistent. In MAIN, the api key and connection url is locked out, a helptext is displayed explaining that ME will aquire a .json file from the filesystem. In REFACTOR, this helptext is missing. The engine does report in error messages that it could not find the .json file however. Connection: Anthropic Null key connection test: Provider returned HTTP 401 Unauthorized: {"type":"error","error":{"type":"authentication_error","message":"x-api-key header is required"},"request_id":"req_011CbW6xZiDnvwbtSbbZi9ep"} Null key message: same Junk key connection test: Provider returned HTTP 401 Unauthorized: {"type":"error","error":{"type":"authentication_error","message":"invalid x-api-key"},"request_id":"req_011CbW71tTRntKxP8TdHaYLK"} Junk key message: same gemini: null key: API returned 403: Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API. junk key: API returned 400: API key not valid. Please pass a valid API key. Messages are the same in both connection test and messages Vertex I don't have a vertex project to test this with, and one is required to have a valid personalized url. Mistral: junk: API returned 401: Unauthorized null: API returned 401: Unauthorized Cohere: Null: Provider returned HTTP 401 Unauthorized: {"id":"1ffa5168-32e5-4393-85af-acc632af5853","message":"no api key supplied"} Junk: Provider returned HTTP 401 Unauthorized: {"id":"8d38677b-437b-441c-9021-7fe3f3148215","message":"Incorrect API key provided: ****. You can find your API key at https://dashboard.cohere.com/api-keys."} Openrouter: Null: API key is required for this provider. Junk: OpenRouter returned HTTP 401 Unauthorized: {"error":{"message":"Missing Authentication header","code":401}} Note: this connection does work when a valid key is provided. NanoGPT Junk key Connection test: (green text)Connection successful. 613 models available. Send test message: Provider returned HTTP 401 Unauthorized: Invalid session (the success message is misleading but this technically has parity with MAIN. nano must not be evaluating the key on connection test.) Null key: connection test: (green text) Connection successful. 613 models available. send test emssage: Provider returned HTTP 402 Payment Required: Insufficient balance. Multiple payment options available. [an x402 payment address and retrieval url is in this message; someone with access to this message can make a payment and retrieve the output. xGrok Null key: Provider returned HTTP 401 Unauthorized: {"code":"The request does not have valid authentication credentials","error":"No credentials presented. [WKE=unauthenticated:no-credentials]"} Junk key: Provider returned HTTP 400 Bad Request: {"code":"Client specified an invalid argument","error":"Incorrect API key provided: th***ey. You can obtain an API key from https://console.x.ai."} both messages and connection test showed this message custom oai-compatible: I attempted it with fireworks and received normal errors both times.
Author
Owner

@cha1latte commented on GitHub (May 29, 2026):

Follow-up issues filed from Jake's smoke-test notes:

  • #1567 - Provider error messages need Marinara-owned secret redaction.
  • #1568 - NanoGPT connection test reports success before generation auth is actually usable.
  • #1569 - OpenAI ChatGPT connection is missing credential-file helper text in refactor.

I did not file separate issues for providers that returned clear normal auth failures without additional behavior beyond the broader redaction/connection-test contract findings.

<!-- gh-comment-id:4576065664 --> @cha1latte commented on GitHub (May 29, 2026): Follow-up issues filed from Jake's smoke-test notes: - #1567 - Provider error messages need Marinara-owned secret redaction. - #1568 - NanoGPT connection test reports success before generation auth is actually usable. - #1569 - OpenAI ChatGPT connection is missing credential-file helper text in refactor. I did not file separate issues for providers that returned clear normal auth failures without additional behavior beyond the broader redaction/connection-test contract findings.
Author
Owner

@cha1latte commented on GitHub (May 29, 2026):

Closing, thank you @jake9000 !

<!-- gh-comment-id:4578147754 --> @cha1latte commented on GitHub (May 29, 2026): Closing, thank you @jake9000 !
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#737
No description provided.