[PR #868] [MERGED] Fix image connections in language menus #4808

Closed
opened 2026-10-22 04:10:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/868
Author: @cha1latte
Created: 5/15/2026
Status: ✅ Merged
Merged: 5/15/2026
Merged by: @cha1latte

Base: staging ← Head: fix/issue-855-language-connection-filter


📝 Commits (1)

  • d5888ac Fix language connection menu filtering

📊 Changes

10 files changed (+49 additions, -20 deletions)

View changed files

➕ docs/pr-evidence/issue-855/after.png (+0 -0)
➕ docs/pr-evidence/issue-855/before.png (+0 -0)
➕ docs/pr-evidence/issue-855/mobile-after.png (+0 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+4 -1)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+6 -5)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+10 -7)
📝 packages/client/src/components/chat/NewChatConnectionGate.tsx (+8 -1)
📝 packages/client/src/components/chat/QuickConnectionSwitcher.tsx (+4 -3)
📝 packages/client/src/components/chat/QuickSwitcherMobile.tsx (+4 -3)
➕ packages/client/src/lib/connection-filters.ts (+13 -0)

📄 Description

Linked issue

Closes #855

Why this change

  • Image-generation-only connections were appearing in Conversation and RP language model connection menus, even though those menus route text generation.

What changed

  • Added a shared client-side filter for language-generation-capable connections.
  • Applied it to Conversation/RP setup, quick switchers, chat settings, translation AI connection selection, and new-chat connection gating.
  • Left image-specific connection pickers using image-generation connections.

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

Manual verification notes

  • Codex reproduced the issue in an isolated local app with Alpha Text and Zeta Image connections. Before the fix, the RP quick connection menu showed Zeta Image.
  • node scratch/issue-855-repro.mjs after passed: the RP quick connection menu and checked settings selects did not show Zeta Image.
  • node scratch/issue-855-edge.mjs passed: Conversation desktop quick switcher and mobile RP quick switcher kept Alpha Text while excluding Zeta Image.
  • pnpm check passed locally after the final diff.
  • No associated PR was found for #855 during preflight.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No docs or release metadata changes are needed for this focused UI filtering fix.

UI evidence (if applicable)

Before:

Before - image connection appears in RP quick switcher

After:

After - RP quick switcher only shows language connection

Mobile after:

Mobile after - RP quick switcher only shows language connection


🔄 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/868 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/15/2026 **Status:** ✅ Merged **Merged:** 5/15/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `fix/issue-855-language-connection-filter` --- ### 📝 Commits (1) - [`d5888ac`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d5888ac3d450403390b65b1a64da536b8fc63a4f) Fix language connection menu filtering ### 📊 Changes **10 files changed** (+49 additions, -20 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-855/after.png` (+0 -0) ➕ `docs/pr-evidence/issue-855/before.png` (+0 -0) ➕ `docs/pr-evidence/issue-855/mobile-after.png` (+0 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+4 -1) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+6 -5) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+10 -7) 📝 `packages/client/src/components/chat/NewChatConnectionGate.tsx` (+8 -1) 📝 `packages/client/src/components/chat/QuickConnectionSwitcher.tsx` (+4 -3) 📝 `packages/client/src/components/chat/QuickSwitcherMobile.tsx` (+4 -3) ➕ `packages/client/src/lib/connection-filters.ts` (+13 -0) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #855 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Image-generation-only connections were appearing in Conversation and RP language model connection menus, even though those menus route text generation. ## What changed <!-- List the key changes in this PR --> - Added a shared client-side filter for language-generation-capable connections. - Applied it to Conversation/RP setup, quick switchers, chat settings, translation AI connection selection, and new-chat connection gating. - Left image-specific connection pickers using image-generation connections. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `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` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex reproduced the issue in an isolated local app with `Alpha Text` and `Zeta Image` connections. Before the fix, the RP quick connection menu showed `Zeta Image`. - `node scratch/issue-855-repro.mjs after` passed: the RP quick connection menu and checked settings selects did not show `Zeta Image`. - `node scratch/issue-855-edge.mjs` passed: Conversation desktop quick switcher and mobile RP quick switcher kept `Alpha Text` while excluding `Zeta Image`. - `pnpm check` passed locally after the final diff. - No associated PR was found for #855 during preflight. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No docs or release metadata changes are needed for this focused UI filtering fix. ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> Before: ![Before - image connection appears in RP quick switcher](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/d5888ac/docs/pr-evidence/issue-855/before.png) After: ![After - RP quick switcher only shows language connection](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/d5888ac/docs/pr-evidence/issue-855/after.png) Mobile after: ![Mobile after - RP quick switcher only shows language connection](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/d5888ac/docs/pr-evidence/issue-855/mobile-after.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:10:49 +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#4808
No description provided.