mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8674] [MERGED] fix(connections): keep NanoGPT rows with an api.nano-gpt.com embedding endpoint in their account #8740
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#8740
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/8674
Author: @Gunterlie
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @Gunterlie
Base:
staging← Head:fix/nanogpt-embedding-subdomain-account📝 Commits (2)
2ed21bffix(connections): keep NanoGPT rows with an api.nano-gpt.com embedding endpoint in their account69d21d7docs(connections): describe the subdomain rule on the embedding host checks📊 Changes
2 files changed (+49 additions, -4 deletions)
View changed files
📝
packages/server/src/services/storage/connection-accounts.storage.ts(+24 -4)📝
scripts/regressions/connection-accounts-write-through.regression.ts(+25 -0)📄 Description
Linked issue
No GitHub issue. Reported by a tester on Discord (#me-bugs-features-feedback: "NanoGPT connections are excluded from account migration because of their embedding endpoint").
Why this change
After #8456, existing NanoGPT connections stay standalone (
accountId: null). NanoGPT chat runs onnano-gpt.com, embeddings onapi.nano-gpt.com.hasForeignEmbeddingHost()compared full origins, saw two hosts, and kept these rows out of the account so their key would never reach "another host". As standalone rows they also lose the account's model catalog, so the new picker shows NanoGPT without any models.A subdomain of the key's own host belongs to the same vendor, so it should not block account linking.
What changed
isForeignEmbeddingUrl()inconnection-accounts.storage.ts: an embedding URL on the same origin, or on a subdomain of the key's host with the same scheme and port, is not foreign.hasForeignEmbeddingHost) and the key write-through on account edit.nano-gpt.com.evil.example) and scheme changes (http://api.nano-gpt.com) stay foreign, so the key-leak guard is unchanged for them.Validation
connection-accounts-*regressions: 4/4 pass. The new NanoGPT case inconnection-accounts-write-through.regression.tsfails without the fix.tsc --noEmitonpackages/serverpasses. Fullpnpm checkleft to CI.pnpm checkpasses locallyContainer (Docker / Podman) built and ran without issue
Ran the app, clicked through the changes manually
Checked edge cases
Above manual verification completed
Read and followed
CONTRIBUTING.mdManual verification notes
https://api.nano-gpt.com/...shows that connection under a NanoGPT account after restart.Docs and release impact
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.