[PR #7656] [MERGED] feat(mari): connection and model picker in Professor Mari's composer #7859

Closed
opened 2026-10-24 04:08:13 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: feat/mari-connection-model-picker


📝 Commits (2)

  • 0d689b5 feat(mari): connection and model picker in Professor Mari's composer
  • 3b6ded3 fix(mari): retry with another model waits for the menu to close

📊 Changes

3 files changed (+174 additions, -40 deletions)

View changed files

📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+10 -9)
📝 packages/client/src/components/chat/mari/MariComposer.tsx (+86 -31)
📝 packages/client/src/styles/mari.css (+78 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.

Linked issue

No linked issue. This is a maintainer request (planned UX parity work), so no issue was opened.

Why this change

Normal chats got a large connection picker in the input box: the connections on the left, the chosen connection's models on the right, with search and pins. Professor Mari's composer still had a short list of connections only, so changing her model meant leaving her chat. This brings the same picker to her composer.

What changed

  • Mari's composer connection menu now shows the shared ConnectionModelPicker beside the connection list. The menu spans her composer.
  • A narrow composer (container width < 34rem, for example on a phone) shows one step at a time: the connection list, then the chosen connection's models with a Back button.
  • Clicking a connection switches her to it and keeps the menu open for a model pick. Picking a model saves it to the connection (same as normal chats) and closes the menu. The built-in Local Model closes the menu at once, as it has no model list.
  • Enter in the model search no longer submits her composer form.
  • "Retry with another model" now also retries after a model change on the same connection, not only after a connection change.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Agent-run: client tsc --noEmit, ESLint and Prettier on the changed files; pnpm build. Full pnpm check was not run locally; GitHub CI covers it.

Manual verification notes

Agent checked in Chromium on a copy of real data at 1440 px (two columns) and 390 px (list step, then models step with Back). Still to verify by hand:

  • Manually verify the picker in light mode.
  • Manually verify picking a model in Mari's composer saves it and the next message uses it.
  • Manually verify "Retry with another model" on a failed run retries after a model pick.
  • Manually verify Escape closes the menu and does not close the omnibar dialog.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Screenshots taken locally at 1440 px and 390 px; attach before/after when verifying by hand.

Summary by CodeRabbit

  • New Features
    • Added a two-step connection and model picker in the composer. Selecting a connection opens its model list, and a back control is available on narrow screens.
    • Selecting a connection with no available options still opens the create-connection dialog.
  • Bug Fixes
    • Retrying with another model now responds to changes in the effective connection and model.
    • Pressing Enter in the picker’s search field no longer submits the composer.

🔄 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/7656 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/mari-connection-model-picker` --- ### 📝 Commits (2) - [`0d689b5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0d689b506d91d580355922afe90eaab00a2501d2) feat(mari): connection and model picker in Professor Mari's composer - [`3b6ded3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3b6ded3509d781583524859d42485e2b099d0b2a) fix(mari): retry with another model waits for the menu to close ### 📊 Changes **3 files changed** (+174 additions, -40 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+10 -9) 📝 `packages/client/src/components/chat/mari/MariComposer.tsx` (+86 -31) 📝 `packages/client/src/styles/mari.css` (+78 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. ## Linked issue No linked issue. This is a maintainer request (planned UX parity work), so no issue was opened. ## Why this change Normal chats got a large connection picker in the input box: the connections on the left, the chosen connection's models on the right, with search and pins. Professor Mari's composer still had a short list of connections only, so changing her model meant leaving her chat. This brings the same picker to her composer. ## What changed - Mari's composer connection menu now shows the shared `ConnectionModelPicker` beside the connection list. The menu spans her composer. - A narrow composer (container width < 34rem, for example on a phone) shows one step at a time: the connection list, then the chosen connection's models with a Back button. - Clicking a connection switches her to it and keeps the menu open for a model pick. Picking a model saves it to the connection (same as normal chats) and closes the menu. The built-in Local Model closes the menu at once, as it has no model list. - Enter in the model search no longer submits her composer form. - "Retry with another model" now also retries after a model change on the same connection, not only after a connection change. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Agent-run: client `tsc --noEmit`, ESLint and Prettier on the changed files; `pnpm build`. Full `pnpm check` was not run locally; GitHub CI covers it. ### Manual verification notes Agent checked in Chromium on a copy of real data at 1440 px (two columns) and 390 px (list step, then models step with Back). Still to verify by hand: - Manually verify the picker in light mode. - Manually verify picking a model in Mari's composer saves it and the next message uses it. - Manually verify "Retry with another model" on a failed run retries after a model pick. - Manually verify Escape closes the menu and does not close the omnibar dialog. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Screenshots taken locally at 1440 px and 390 px; attach before/after when verifying by hand. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a two-step connection and model picker in the composer. Selecting a connection opens its model list, and a back control is available on narrow screens. * Selecting a connection with no available options still opens the create-connection dialog. * **Bug Fixes** * Retrying with another model now responds to changes in the effective connection and model. * Pressing Enter in the picker’s search field no longer submits the composer. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:08:13 +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#7859
No description provided.