mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8358] [MERGED] fix(connections): identify model discovery requests #8317
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8317
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
30b650fchore: start model discovery compatibility work for #835305c739bfix(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/modelsendpoint. 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
MarinaraEngine/${APP_VERSION}user-agent convention in both model discovery and Test Connection.404: Gonewithout that identity. Assert the existing/v1/modelspath 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.Provider returned 404: Gone. After the fix, both routes passed with exact path, authorization and identity assertions.105a707a171c3494a90abaf122127fb65682fafc: completed with zero findings.Human verification tasks remain unchecked.
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.