[PR #8358] [MERGED] fix(connections): identify model discovery requests #8317

Closed
opened 2026-10-27 06:07:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8358
Author: @SpicyMarinara
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/8353-model-discovery-user-agent


📝 Commits (2)

  • 30b650f chore: start model discovery compatibility work for #8353
  • 05c739b fix(connections): identify model catalog requests

📊 Changes

2 files changed (+39 additions, -2 deletions)

View changed files

📝 packages/server/src/routes/connections.routes.ts (+9 -2)
📝 scripts/regressions/connection-model-list.regression.ts (+30 -0)

📄 Description

Linked issue

Closes #8353

Why this change

Featherless returns 404: Gone. for Node's default fetch user agent at its valid /v1/models endpoint. This prevents Fetch Models from API and Test Connection from succeeding for a Custom (OAI-Compatible) connection. The same public request succeeds when only an identifying User-Agent is supplied; Featherless documents this Node behavior.

What changed

  • Identify connection catalog requests with the existing MarinaraEngine/${APP_VERSION} user-agent convention in both model discovery and Test Connection.
  • Extend the real HTTP connection-route regression with a provider that returns 404: Gone without that identity. Assert the existing /v1/models path and Bearer authentication for both routes while retaining cache, refresh, error and credential-race coverage.

Validation

Tested source: 05c739b6cabc13bc560934f10fff3d410b61f976 (same two-file diff reviewed locally).

  • pnpm install --frozen-lockfile: passed; no lockfile changes.
  • pnpm check: passed (existing unrelated HomeProfessorMariChat hook warning, zero lint errors).
  • node scripts/run-regressions.mjs --filter connection --concurrency 2: 10/10 passed.
  • node scripts/run-regressions.mjs --filter safe-fetch-response-activity --concurrency 1: 1/1 passed.
  • PLAYWRIGHT_CLIENT_PORT=7862 PLAYWRIGHT_SERVER_PORT=7861 PLAYWRIGHT_MOBILE_CLIENT_PORT=7864 PLAYWRIGHT_MOBILE_SERVER_PORT=7863 PLAYWRIGHT_ONLY_PROJECT=desktop pnpm smoke:ui: 7/7 desktop Chromium passed with disposable data.
  • Before the fix, the updated real-route regression failed with HTTP502 / Provider returned 404: Gone. After the fix, both routes passed with exact path, authorization and identity assertions.
  • Local CodeRabbit reviewed both changed files against staging 105a707a171c3494a90abaf122127fb65682fafc: completed with zero findings.

Human verification tasks remain unchecked.

  • Manually verify Fetch Models from API and Test Connection with a Featherless account on the reporter's Windows/Floorp setup.
  • Manually verify another saved OpenAI-compatible connection.

Claim boundaries

The fix changes request identification only. Endpoint construction, authentication, URL safety policy, response limits, error wrapping and saved-model handling are unchanged. The public no-credential probe and local route fixture establish the reported rejection and its repair; they do not establish authenticated account behavior, native Windows/Floorp behavior or paid generation. Featherless-specific pagination is outside this patch; successful discovery here does not claim enumeration of its entire catalog.

Docs and release impact

No UI copy, user-facing documentation, dependencies, release metadata or storage format changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8358 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/8353-model-discovery-user-agent` --- ### 📝 Commits (2) - [`30b650f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/30b650fbf29de41bdd0bcae93f553d334a8f9acb) chore: start model discovery compatibility work for #8353 - [`05c739b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/05c739b6cabc13bc560934f10fff3d410b61f976) fix(connections): identify model catalog requests ### 📊 Changes **2 files changed** (+39 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/connections.routes.ts` (+9 -2) 📝 `scripts/regressions/connection-model-list.regression.ts` (+30 -0) </details> ### 📄 Description ## Linked issue Closes #8353 ## Why this change Featherless returns `404: Gone.` for Node's default fetch user agent at its valid `/v1/models` endpoint. This prevents Fetch Models from API and Test Connection from succeeding for a Custom (OAI-Compatible) connection. The same public request succeeds when only an identifying User-Agent is supplied; [Featherless documents this Node behavior](https://featherless.ai/docs/audio-speech-quickstart). ## What changed - Identify connection catalog requests with the existing `MarinaraEngine/${APP_VERSION}` user-agent convention in both model discovery and Test Connection. - Extend the real HTTP connection-route regression with a provider that returns `404: Gone` without that identity. Assert the existing `/v1/models` path and Bearer authentication for both routes while retaining cache, refresh, error and credential-race coverage. ## Validation Tested source: `05c739b6cabc13bc560934f10fff3d410b61f976` (same two-file diff reviewed locally). - `pnpm install --frozen-lockfile`: passed; no lockfile changes. - `pnpm check`: passed (existing unrelated HomeProfessorMariChat hook warning, zero lint errors). - `node scripts/run-regressions.mjs --filter connection --concurrency 2`: 10/10 passed. - `node scripts/run-regressions.mjs --filter safe-fetch-response-activity --concurrency 1`: 1/1 passed. - `PLAYWRIGHT_CLIENT_PORT=7862 PLAYWRIGHT_SERVER_PORT=7861 PLAYWRIGHT_MOBILE_CLIENT_PORT=7864 PLAYWRIGHT_MOBILE_SERVER_PORT=7863 PLAYWRIGHT_ONLY_PROJECT=desktop pnpm smoke:ui`: 7/7 desktop Chromium passed with disposable data. - Before the fix, the updated real-route regression failed with HTTP502 / `Provider returned 404: Gone`. After the fix, both routes passed with exact path, authorization and identity assertions. - Local CodeRabbit reviewed both changed files against staging `105a707a171c3494a90abaf122127fb65682fafc`: completed with zero findings. Human verification tasks remain unchecked. - [ ] Manually verify Fetch Models from API and Test Connection with a Featherless account on the reporter's Windows/Floorp setup. - [ ] Manually verify another saved OpenAI-compatible connection. ### Claim boundaries The fix changes request identification only. Endpoint construction, authentication, URL safety policy, response limits, error wrapping and saved-model handling are unchanged. The public no-credential probe and local route fixture establish the reported rejection and its repair; they do not establish authenticated account behavior, native Windows/Floorp behavior or paid generation. Featherless-specific pagination is outside this patch; successful discovery here does not claim enumeration of its entire catalog. ## Docs and release impact No UI copy, user-facing documentation, dependencies, release metadata or storage format changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 06:07:39 +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#8317
No description provided.