[PR #4215] [MERGED] Centralize image captioning in connection defaults #6286

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4215
Author: @SpicyMarinara
Created: 7/28/2026
Status: ✅ Merged
Merged: 7/28/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/4213-connection-image-captioning-defaults


📝 Commits (3)

  • 37ebbae Start connection image captioning defaults
  • 6184a80 Centralize image captioning connection defaults
  • fb65445 Preserve legacy Noodle captioning choices

📊 Changes

15 files changed (+427 additions, -23 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+100 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+5 -1)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+89 -3)
📝 packages/client/src/components/noodle/NoodleHome.tsx (+48 -5)
📝 packages/client/src/features/chat-settings/sections/AdvancedParametersSection.tsx (+20 -4)
📝 packages/client/src/localization/locales/en.json (+6 -0)
📝 packages/server/src/routes/connections.routes.ts (+12 -0)
📝 packages/server/src/routes/noodle.routes.ts (+6 -4)
📝 packages/server/src/services/generation/image-captioning-runtime.ts (+36 -6)
📝 packages/server/src/services/storage/noodle.storage.ts (+7 -0)
📝 packages/shared/src/schemas/connection.schema.ts (+20 -0)
📝 packages/shared/src/schemas/noodle.schema.ts (+4 -0)
📝 packages/shared/src/types/noodle.ts (+1 -0)
📝 scripts/regressions/noodle-vision.regression.ts (+9 -0)
📝 scripts/regressions/prompt-attachments.regression.ts (+64 -0)

📄 Description

Linked issue

Closes #4213

Why this change

Image captioning was configured separately in each chat or mode, so users of text-only chat models had to repeat the same setup. Connection-level custom defaults should carry both the captioning toggle and the preferred vision-capable connection alongside the existing generation defaults.

What changed

  • Added Image Captioning to Connections → Default Chat Parameters, including an optional dedicated captioning connection.
  • Made Conversation, Roleplay, and Game inherit those settings unless the chat has an explicit override.
  • Made Noodle inherit the generation connection's captioning defaults while retaining a reversible Noodle-specific override.
  • Added migration-safe Noodle state so legacy persisted false values inherit the new connection default instead of silently blocking it.
  • Validated and persisted the new connection-default fields on the server.
  • Added runtime, migration, and browser persistence regression coverage.

Validation performed

  • pnpm check
  • pnpm regression:prompt
  • pnpm regression:noodle
  • pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --project=desktop-chromium --grep "Connection image captioning defaults persist"

Manual verification requested

  • Manually verify Image Captioning can be enabled under a language Connection's Default Chat Parameters.
  • Manually verify a dedicated captioning connection can be selected, saved, and restored after reopening the editor.
  • Manually verify Conversation, Roleplay, and Game inherit the connection default and still permit chat-level overrides.
  • Manually verify Noodle inherits the selected generation connection and can switch back to “Use connection default” after an override.
  • Manually verify the controls in light and dark themes and at desktop and mobile widths.

Docs and release impact

  • No docs changes needed.
  • Updated docs as needed.
  • Translated docs on docs-i18n, or opened a follow-up issue if required.
  • Version/release files updated if required.

UI evidence

The targeted desktop Chromium flow creates two connections, enables custom defaults and Image Captioning, selects the dedicated connection, saves, checks the stored JSON, reopens the editor, and verifies that all controls retain their values.


🔄 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/4215 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/28/2026 **Status:** ✅ Merged **Merged:** 7/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/4213-connection-image-captioning-defaults` --- ### 📝 Commits (3) - [`37ebbae`](https://github.com/Pasta-Devs/Marinara-Engine/commit/37ebbaefe3f22198cbc1a1aacd3e6e7d7fd132e8) Start connection image captioning defaults - [`6184a80`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6184a80e9e887f93b09da4486a2ab3e827eb441f) Centralize image captioning connection defaults - [`fb65445`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fb65445a68e00e7ee233e93ec391028b4677be26) Preserve legacy Noodle captioning choices ### 📊 Changes **15 files changed** (+427 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+100 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+5 -1) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+89 -3) 📝 `packages/client/src/components/noodle/NoodleHome.tsx` (+48 -5) 📝 `packages/client/src/features/chat-settings/sections/AdvancedParametersSection.tsx` (+20 -4) 📝 `packages/client/src/localization/locales/en.json` (+6 -0) 📝 `packages/server/src/routes/connections.routes.ts` (+12 -0) 📝 `packages/server/src/routes/noodle.routes.ts` (+6 -4) 📝 `packages/server/src/services/generation/image-captioning-runtime.ts` (+36 -6) 📝 `packages/server/src/services/storage/noodle.storage.ts` (+7 -0) 📝 `packages/shared/src/schemas/connection.schema.ts` (+20 -0) 📝 `packages/shared/src/schemas/noodle.schema.ts` (+4 -0) 📝 `packages/shared/src/types/noodle.ts` (+1 -0) 📝 `scripts/regressions/noodle-vision.regression.ts` (+9 -0) 📝 `scripts/regressions/prompt-attachments.regression.ts` (+64 -0) </details> ### 📄 Description ## Linked issue Closes #4213 ## Why this change Image captioning was configured separately in each chat or mode, so users of text-only chat models had to repeat the same setup. Connection-level custom defaults should carry both the captioning toggle and the preferred vision-capable connection alongside the existing generation defaults. ## What changed - Added Image Captioning to Connections → Default Chat Parameters, including an optional dedicated captioning connection. - Made Conversation, Roleplay, and Game inherit those settings unless the chat has an explicit override. - Made Noodle inherit the generation connection's captioning defaults while retaining a reversible Noodle-specific override. - Added migration-safe Noodle state so legacy persisted `false` values inherit the new connection default instead of silently blocking it. - Validated and persisted the new connection-default fields on the server. - Added runtime, migration, and browser persistence regression coverage. ## Validation performed - `pnpm check` - `pnpm regression:prompt` - `pnpm regression:noodle` - `pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --project=desktop-chromium --grep "Connection image captioning defaults persist"` ## Manual verification requested - [ ] Manually verify Image Captioning can be enabled under a language Connection's Default Chat Parameters. - [ ] Manually verify a dedicated captioning connection can be selected, saved, and restored after reopening the editor. - [ ] Manually verify Conversation, Roleplay, and Game inherit the connection default and still permit chat-level overrides. - [ ] Manually verify Noodle inherits the selected generation connection and can switch back to “Use connection default” after an override. - [ ] Manually verify the controls in light and dark themes and at desktop and mobile widths. ## Docs and release impact - [ ] No docs changes needed. - [ ] Updated docs as needed. - [ ] Translated docs on `docs-i18n`, or opened a follow-up issue if required. - [ ] Version/release files updated if required. ## UI evidence The targeted desktop Chromium flow creates two connections, enables custom defaults and Image Captioning, selects the dedicated connection, saves, checks the stored JSON, reopens the editor, and verifies that all controls retain their values. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:08: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#6286
No description provided.