mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#7477
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/7102
Author: @SpicyMarinara
Created: 10/5/2026
Status: ✅ Merged
Merged: 10/5/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/connection-model-switcher-7098📝 Commits (10+)
4482d3cfeat(connections): save fetched model lists and pinned models on connections306cd3dfeat(chat): pick, pin and type a connection's model from the Connections menuac5e8f0fix(chat): keep the pin toggle's name and give phone controls 44px targetsbb79878test(e2e): cover the Connections menu model picker on desktop and phonesb9ca362docs: describe picking and pinning models from the Connections menu130d74bMerge remote-tracking branch 'origin/staging' into feat/connection-model-switcher-70985060074test(e2e): match Fetch Models' refresh query in the editor accent test6a5bf17fix(connections): answer 409 when a model list goes stale while loading7e55694fix(chat): safer Enter, IME keys, dialog role and focus in the model pickerd869347Merge remote-tracking branch 'origin/staging' into feat/connection-model-switcher-7098📊 Changes
23 files changed (+1924 additions, -202 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/chats/chat-settings.md(+2 -0)📝
docs/connections/connecting-to-a-provider.md(+3 -1)📝
docs/connections/organizing-connections.md(+14 -5)➕
e2e/connection-model-switcher.e2e.ts(+369 -0)📝
e2e/core-flows.e2e.ts(+2 -1)📝
e2e/ux-feedback-sweep.e2e.ts(+5 -4)📝
packages/client/src/components/chat/QuickConnectionSwitcher.tsx(+184 -95)📝
packages/client/src/components/chat/QuickSwitcherMobile.tsx(+95 -15)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+17 -36)➕
packages/client/src/components/connections/ConnectionModelPicker.tsx(+405 -0)📝
packages/client/src/features/chat-settings/sections/ConnectionSection.tsx(+66 -1)📝
packages/client/src/hooks/use-connections.ts(+92 -28)➕
packages/client/src/lib/connection-model-selection.ts(+90 -0)📝
packages/client/src/lib/connection-transfer.ts(+6 -0)📝
packages/client/src/localization/locales/en.json(+28 -0)📝
packages/server/src/db/schema/connections.ts(+8 -0)📝
packages/server/src/routes/backup.routes.ts(+5 -1)📝
packages/server/src/routes/connections.routes.ts(+58 -12)📝
packages/server/src/services/storage/connections.storage.ts(+118 -2)...and 3 more files
📄 Description
Linked issue
Closes #7098
Why this change
What changed
connectionFieldsForModelPick, which the connection editor now shares, so context size and output limit follow the model exactly as in the editor and other model fields (vision, image, embedding) are untouched.savedModels). Reopening or reloading doesn't ask the provider again; Refresh and the editor's Fetch Models replace the list. A new API key, base URL or provider clears it, and a fetch that finishes after such a change isn't saved. Only id, name and limit fields are stored, so no credentials. Built-in lists (Claude Subscription, the Codex fallback) and media connections are answered live.pinnedModels,POST /connections/:id/pinned-models, updated in a transaction so quick clicks can't overwrite each other). They travel in connection exports and profile backups; saved lists don't, matching how the API key and derived data are handled. Old rows load with empty values.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (not a substitute for the boxes above):
pnpm checkandpnpm localization:checkpass;pnpm regression:nodeis 510/510.scripts/regressions/connection-model-list.regression.tsuses a stub provider. It covers the saved list with its fetch time, no provider call on reuse, refresh replacing it, a failed refresh keeping it, pins and their limits (100 pins, 512-character IDs), old rows loading, no secrets in the saved list, clearing on a key, URL or provider change, the stale-fetch race through the route (409), and profile and connection export and import. It fails on the base commit.e2e/connection-model-switcher.e2e.tspasses 6/6 on desktop-chromium, mobile-chromium and mobile-webkit. It counts calls to a stub provider and also covers the Enter rules, the input-method guard, focus return, pick scope (only model, context size and output limit change) and a custom endpoint's error state. It fails on the base commit.getWithKey; pinning stores IDs only and never reads the key), and clearing the saved list when the key is cleared implicitly (that only happens for Decision connections, which never save a list).Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Docs changed:
docs/connections/organizing-connections.md,docs/chats/chat-settings.md,docs/connections/connecting-to-a-provider.md,CHANGELOG.md. Translations follow in adocs-i18nPR.UI evidence (if applicable)
The e2e attaches the desktop menu (dark and light) and the phone models step (mobile-chromium and mobile-webkit, dark and light).
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.