[PR #8456] [MERGED] Connections: account-first redesign #8613

Closed
opened 2026-11-07 16:45:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8456
Author: @Gunterlie
Created: 10/29/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @Gunterlie

Base: staging ← Head: feat/connections-accounts


📝 Commits (10+)

  • ee53990 Cost badges: each card loads its saved model list once, and proxy nanogpt/ models get NanoGPT plan badges after the user allows reading NanoGPT's public list
  • 4035e28 Folders come back as a Group by view: ••• › Group by folder shows one card per folder (rename, colour, delete, fold) with Not in a folder last; rows and multi-select get Folder › to move models; the quick picker follows the same choice
  • d89bfb1 Folder rows: via first, then the Connection, so a cut line keeps the route
  • 7e3bf77 Model rows: one badge column (role on line 1, cost on line 2); NanoGPT plan matches an unlisted id by its last part when unique; LinkAPI joins Most people start here as Recommended, our sponsor
  • 63db633 Connections: a straight blue rail on the left edge of every model well (Defaults box excepted)
  • b3cefb5 Folder view: role and cost badges on a third line, folder rows get their cost badges, and folders wear an icon (12 to choose from, in the folder's colour)
  • 6305aed Add connection copy: Sponsor and Plan or pay per use badges, one network-error sentence, a key link for every key service, and a no-result row that leads to any OpenAI-compatible address
  • 592a950 Model picker: adding shows + and an Added check instead of a star, and the Add window never says favorite
  • 665d86b Add connection list: Recommended (LinkAPI first, Sponsor), plan, Services A–Z with Show all N, Your own server (with self-hosted image tools), On this device and a folded Other; kind chips filter it, tiles show their kinds as icons, ChatGPT takes the Codex image tile (search: codex) and LinkAPI adds Image
  • 7f56d3f Connections: balance per Connection (LinkAPI, OpenRouter, DeepSeek, Moonshot) and a price catalog for models without a price

📊 Changes

411 files changed (+39401 additions, -12457 deletions)

View changed files

📝 README.md (+13 -11)
📝 docs/FAQ.md (+4 -4)
📝 docs/chats/chat-settings.md (+3 -3)
📝 docs/chats/managing-chats.md (+1 -1)
📝 docs/connections/connecting-to-a-provider.md (+54 -43)
📝 docs/connections/decision-models.md (+27 -26)
📝 docs/connections/local-self-hosted.md (+19 -21)
📝 docs/connections/organizing-connections.md (+46 -55)
📝 docs/connections/providers-reference.md (+14 -13)
📝 docs/connections/subscription-clis.md (+14 -15)
📝 docs/development/optional-agent-packages.md (+15 -0)
📝 docs/home/welcome.md (+1 -1)
📝 docs/lorebooks/semantic-search.md (+1 -1)
📝 docs/media/image-providers.md (+7 -5)
📝 docs/settings/settings-overview.md (+1 -1)
➕ e2e/add-connection-media.e2e.ts (+600 -0)
➕ e2e/add-connection.e2e.ts (+564 -0)
📝 e2e/advanced-memory.e2e.ts (+8 -6)
📝 e2e/agent-activation-questions.e2e.ts (+23 -8)
📝 e2e/avatar-generation.e2e.ts (+6 -1)

...and 80 more files

📄 Description

Why

Connections was built around single connections. Users think in accounts. This change makes the Connections panel account-first and improves the setup and job-selection flows.

What changed

The account-first chooser no longer has a Models toggle. Its saved quickSwitcherShowModels preference no longer hides catalogs. This is part of the agreed account-first chooser change. The replacement browser tests prove that legacy disabled preferences cannot hide the current catalog controls.

  • Group models under account rows, including linked and standalone models.
  • Add first-run provider tiles without an unnecessary promotion.
  • Add account, model, folder, starred, bulk-move, and account-action polish.
  • Move job settings into expandable rows with model, fallback, and decision controls.
  • Preserve followed Main state across account, folder, and starred groups.
  • Offer Main selection during first-account setup when no effective Main exists.
  • Handle hosted test failures with typed AUTH_REJECTED errors and a Continue anyway path when required fields are complete.
  • Clean up failed account creation safely and restore a missing placeholder on retry.
  • Improve chat setup readiness, keyboard help behavior, scene-effects selection, rewrite selection, and schedule generation locking.
  • Update account-first terminology and navigation in the English documentation.
  • Add browser and regression coverage for setup, retry, selection state, keyboard behavior, and Connections layout.
  • Keep chat and Professor Mari picker lists scrollable within the visible viewport, with fixed headers and footer controls.
  • Raise the storage format from 8 to 9. Older builds must refuse account-backed data because they discard account links when rewriting model rows. Existing rows require no conversion.
  • Use server-generated image filenames, limit connection probes to 30 requests per minute, and use process-local HMAC identities for concurrent audio probes.
  • Align picker tests with the account-first chooser: catalogs are always available, catalogs of up to 20 models appear inline, and larger catalogs use Browse. The removed Models toggle and its preference no longer control this chooser.

Local review notes

CodeRabbit found no defects in the nine-file server/storage repair. Its later reviews questioned removed browser assertions and a potentially ambiguous search locator. The old “Applies to this chat only” copy and Models toggle do not exist in the current chooser. The tests now check the dialog name, persisted chat-only model overrides, unchanged saved model rows, and catalog access with a legacy disabled preference. The Chat Settings assertion uses its current “Only this chat. Main stays …” help text. The browser test retains the mobile 44px target checks for catalog controls. The search-locator concern does not reproduce: ConnectionSwitcherBody renders either the catalog or the account list, and the desktop/mobile reload tests pass with the shared close helper. These findings were traced and dismissed; they were not reported as zero findings.

Validation

  • heavy pnpm check passed on the final source revision 7eac418a35.
  • pnpm localization:check passed.
  • Picker scrolling regression passed on desktop Chromium and mobile Chromium, including the later browser runs.
  • pnpm smoke:ui passed (7/7).
  • Local CodeRabbit reviewed the final audio identity fix with no findings. Earlier browser review findings and their dispositions appear above.
  • The full picker spec passed on desktop Chromium and mobile Chromium: 16/16 tests.
  • Reviewed generated screenshots at 390px and 1440px. Tablet, light mode, and a real phone keyboard remain unverified for this follow-up.
  • Server/storage repair revision: cf75e02a9c. The three CodeQL alert sites use server-generated image filenames, explicit connection-test limits, and HMAC probe identities. The follow-up audio identity fix is 7eac418a35; CodeQL is now neutral because the staging workflow configuration is unavailable, with no new alert reported.
  • Focused Connections regressions passed:
    • connections-account-safety
    • open-issues
    • agent-activation-questions
    • connection-auth-error-code
  • All three complete Node regression shards passed on the prior pushed head. Nine focused review regression files pass locally on the repair, including private-address classification, typed PocketTTS addresses, save retry, audio concurrency, and rate limits.
  • Launcher format guard and message-sharding regressions pass. pnpm version:check passes.
  • Mobile WebKit verification is blocked on this host because required system libraries are unavailable.

Translation follow-up: #8464 covers README and every changed guide under docs/, for all language packs on docs-i18n.

Manual verification

  • Add an account and choose a model for Main.
  • Change a job model, fallback, and settings.
  • Check the Connections panel at phone width.
  • Manually verify chat and Professor Mari picker scrolling with the phone keyboard open.
  • Verify account creation retry after a cleanup failure.

🔄 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/8456 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/connections-accounts` --- ### 📝 Commits (10+) - [`ee53990`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ee5399063fe8d46b2fe4366732d40b8dce1d2674) Cost badges: each card loads its saved model list once, and proxy nanogpt/ models get NanoGPT plan badges after the user allows reading NanoGPT's public list - [`4035e28`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4035e28bdf951bbbea6e938591dad89635dcf545) Folders come back as a Group by view: ••• › Group by folder shows one card per folder (rename, colour, delete, fold) with Not in a folder last; rows and multi-select get Folder › to move models; the quick picker follows the same choice - [`d89bfb1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d89bfb11de9c1330008e1373180c8222b80167a8) Folder rows: via <upstream> first, then the Connection, so a cut line keeps the route - [`7e3bf77`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7e3bf777e7e7ad8cf4df57ec392b6445d7f44bc6) Model rows: one badge column (role on line 1, cost on line 2); NanoGPT plan matches an unlisted id by its last part when unique; LinkAPI joins Most people start here as Recommended, our sponsor - [`63db633`](https://github.com/Pasta-Devs/Marinara-Engine/commit/63db6339bb3235e8c1c694085775399baba738a9) Connections: a straight blue rail on the left edge of every model well (Defaults box excepted) - [`b3cefb5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b3cefb5b2879e8c5527f2f4aabbdc56e107c7cce) Folder view: role and cost badges on a third line, folder rows get their cost badges, and folders wear an icon (12 to choose from, in the folder's colour) - [`6305aed`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6305aed9a4a2f9f44ed217df53336748bce3fe4c) Add connection copy: Sponsor and Plan or pay per use badges, one network-error sentence, a key link for every key service, and a no-result row that leads to any OpenAI-compatible address - [`592a950`](https://github.com/Pasta-Devs/Marinara-Engine/commit/592a950f2ad7fb6ba7365ef18b195bd66b432d4a) Model picker: adding shows + and an Added check instead of a star, and the Add window never says favorite - [`665d86b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/665d86b5dee1f542e123a299bc1464174bad5c1f) Add connection list: Recommended (LinkAPI first, Sponsor), plan, Services A–Z with Show all N, Your own server (with self-hosted image tools), On this device and a folded Other; kind chips filter it, tiles show their kinds as icons, ChatGPT takes the Codex image tile (search: codex) and LinkAPI adds Image - [`7f56d3f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7f56d3f9bcb5309ba1e3656e830368539a9255a7) Connections: balance per Connection (LinkAPI, OpenRouter, DeepSeek, Moonshot) and a price catalog for models without a price ### 📊 Changes **411 files changed** (+39401 additions, -12457 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+13 -11) 📝 `docs/FAQ.md` (+4 -4) 📝 `docs/chats/chat-settings.md` (+3 -3) 📝 `docs/chats/managing-chats.md` (+1 -1) 📝 `docs/connections/connecting-to-a-provider.md` (+54 -43) 📝 `docs/connections/decision-models.md` (+27 -26) 📝 `docs/connections/local-self-hosted.md` (+19 -21) 📝 `docs/connections/organizing-connections.md` (+46 -55) 📝 `docs/connections/providers-reference.md` (+14 -13) 📝 `docs/connections/subscription-clis.md` (+14 -15) 📝 `docs/development/optional-agent-packages.md` (+15 -0) 📝 `docs/home/welcome.md` (+1 -1) 📝 `docs/lorebooks/semantic-search.md` (+1 -1) 📝 `docs/media/image-providers.md` (+7 -5) 📝 `docs/settings/settings-overview.md` (+1 -1) ➕ `e2e/add-connection-media.e2e.ts` (+600 -0) ➕ `e2e/add-connection.e2e.ts` (+564 -0) 📝 `e2e/advanced-memory.e2e.ts` (+8 -6) 📝 `e2e/agent-activation-questions.e2e.ts` (+23 -8) 📝 `e2e/avatar-generation.e2e.ts` (+6 -1) _...and 80 more files_ </details> ### 📄 Description ## Why Connections was built around single connections. Users think in accounts. This change makes the Connections panel account-first and improves the setup and job-selection flows. ## What changed The account-first chooser no longer has a Models toggle. Its saved `quickSwitcherShowModels` preference no longer hides catalogs. This is part of the agreed account-first chooser change. The replacement browser tests prove that legacy disabled preferences cannot hide the current catalog controls. - Group models under account rows, including linked and standalone models. - Add first-run provider tiles without an unnecessary promotion. - Add account, model, folder, starred, bulk-move, and account-action polish. - Move job settings into expandable rows with model, fallback, and decision controls. - Preserve followed Main state across account, folder, and starred groups. - Offer Main selection during first-account setup when no effective Main exists. - Handle hosted test failures with typed `AUTH_REJECTED` errors and a Continue anyway path when required fields are complete. - Clean up failed account creation safely and restore a missing placeholder on retry. - Improve chat setup readiness, keyboard help behavior, scene-effects selection, rewrite selection, and schedule generation locking. - Update account-first terminology and navigation in the English documentation. - Add browser and regression coverage for setup, retry, selection state, keyboard behavior, and Connections layout. - Keep chat and Professor Mari picker lists scrollable within the visible viewport, with fixed headers and footer controls. - Raise the storage format from 8 to 9. Older builds must refuse account-backed data because they discard account links when rewriting model rows. Existing rows require no conversion. - Use server-generated image filenames, limit connection probes to 30 requests per minute, and use process-local HMAC identities for concurrent audio probes. - Align picker tests with the account-first chooser: catalogs are always available, catalogs of up to 20 models appear inline, and larger catalogs use Browse. The removed Models toggle and its preference no longer control this chooser. ### Local review notes CodeRabbit found no defects in the nine-file server/storage repair. Its later reviews questioned removed browser assertions and a potentially ambiguous search locator. The old “Applies to this chat only” copy and Models toggle do not exist in the current chooser. The tests now check the dialog name, persisted chat-only model overrides, unchanged saved model rows, and catalog access with a legacy disabled preference. The Chat Settings assertion uses its current “Only this chat. Main stays …” help text. The browser test retains the mobile 44px target checks for catalog controls. The search-locator concern does not reproduce: `ConnectionSwitcherBody` renders either the catalog or the account list, and the desktop/mobile reload tests pass with the shared close helper. These findings were traced and dismissed; they were not reported as zero findings. ## Validation - `heavy pnpm check` passed on the final source revision `7eac418a35`. - `pnpm localization:check` passed. - Picker scrolling regression passed on desktop Chromium and mobile Chromium, including the later browser runs. - `pnpm smoke:ui` passed (7/7). - Local CodeRabbit reviewed the final audio identity fix with no findings. Earlier browser review findings and their dispositions appear above. - The full picker spec passed on desktop Chromium and mobile Chromium: 16/16 tests. - Reviewed generated screenshots at 390px and 1440px. Tablet, light mode, and a real phone keyboard remain unverified for this follow-up. - Server/storage repair revision: `cf75e02a9c`. The three CodeQL alert sites use server-generated image filenames, explicit connection-test limits, and HMAC probe identities. The follow-up audio identity fix is `7eac418a35`; CodeQL is now neutral because the staging workflow configuration is unavailable, with no new alert reported. - Focused Connections regressions passed: - `connections-account-safety` - `open-issues` - `agent-activation-questions` - `connection-auth-error-code` - All three complete Node regression shards passed on the prior pushed head. Nine focused review regression files pass locally on the repair, including private-address classification, typed PocketTTS addresses, save retry, audio concurrency, and rate limits. - Launcher format guard and message-sharding regressions pass. `pnpm version:check` passes. - Mobile WebKit verification is blocked on this host because required system libraries are unavailable. Translation follow-up: #8464 covers README and every changed guide under `docs/`, for all language packs on `docs-i18n`. ## Manual verification - [ ] Add an account and choose a model for Main. - [ ] Change a job model, fallback, and settings. - [ ] Check the Connections panel at phone width. - [ ] Manually verify chat and Professor Mari picker scrolling with the phone keyboard open. - [ ] Verify account creation retry after a cleanup failure. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:45:58 +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#8613
No description provided.