[PR #3556] [MERGED] Add connection defaults and fallbacks, plus resolve open issues #5990

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

📋 Pull Request Information

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

Base: staging ← Head: agent/fix-open-issues-3540-3555


📝 Commits (6)

  • 3269c5f fix(termux): avoid forced dependency reinstall loops
  • 710ca86 fix: resolve Noodle and conversation issue sweep
  • 4df2ce2 feat: add connection fallbacks and editor metadata
  • 47f7937 Merge branch 'staging' into agent/fix-open-issues-3540-3555
  • dd71190 Merge remote-tracking branch 'origin/staging' into agent/fix-open-issues-3540-3555
  • 054622e Address CodeRabbit fallback review

📊 Changes

75 files changed (+2442 additions, -839 deletions)

View changed files

📝 CHANGELOG.md (+22 -0)
📝 docs/TROUBLESHOOTING.md (+15 -0)
📝 docs/installation/android-termux.md (+3 -1)
📝 docs/installation/macos-linux.md (+2 -2)
📝 docs/installation/windows.md (+3 -3)
📝 e2e/core-flows.e2e.ts (+50 -0)
📝 package.json (+1 -1)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+26 -6)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+8 -10)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+19 -25)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+11 -4)
📝 packages/client/src/components/chat/ConversationMessageBubble.tsx (+1 -1)
📝 packages/client/src/components/chat/ConversationMessageGrouped.tsx (+1 -1)
📝 packages/client/src/components/chat/ConversationView.tsx (+8 -5)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+9 -47)
📝 packages/client/src/components/noodle/NoodleView.tsx (+39 -34)
📝 packages/client/src/components/panels/ConnectionsPanel.tsx (+196 -195)
📝 packages/client/src/components/panels/settings/TTSConfigCard.tsx (+6 -7)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+14 -14)
📝 packages/client/src/hooks/use-connections.ts (+2 -0)

...and 55 more files

📄 Description

Why

This PR combines the current open-issue sweep with the maintainer-requested Connections overhaul and Character/Persona metadata improvement.

The Connections work gives every generation category an explicit default and optional fallback. When a primary connection fails before producing usable output, Marinara can retry once through the selected fallback and clearly tell the user which connection/model took over. Cancellation and already-visible partial streams remain protected from accidental duplicate generation.

The Android report was not caused by Noodle downloading or retaining gigabytes of runtime data. The launcher was repeatedly forcing full workspace dependency reinstalls while a repository-local pnpm store accumulated old packages. The update path now rebuilds once without --force, prunes unreferenced store packages, and accepts the current Node 26 Termux runtime.

The Defaults/fallback and editor-metadata portions were requested directly by the maintainer and do not have a separate linked issue. If separate project tracking is required, an issue should be opened before this draft is marked ready.

Connections and editor changes

  • Add a compact, expandable Defaults section for Main, Agents, Illustrator, and Videos.
  • Place each default and fallback selector vertically, with None available for fallbacks and direct access to the selected connection settings.
  • Align Connections cards, blue icon treatments, control sizes, Local Model, Local Speech Model, and Text to Speech styling with the current UI system.
  • Persist and transfer Main/Agents/Illustrator/Video default and fallback roles.
  • Retry text, agent, image, and video generation through the configured category fallback when the primary fails before usable output.
  • Preserve user cancellations and partial streamed output instead of retrying and duplicating content.
  • Show an informational toast naming the fallback connection and model through response headers or SSE events.
  • Add Title / comment directly below Name in Character and Persona Metadata while keeping the editor-header value synchronized.

Issue fixes

  • Validate generated Noodle collections row by row and retry malformed or invented-actor batches once with exact allowed IDs.
  • Keep invited characters primary and random users occasional during Noodle refreshes.
  • Send image providers a normalized visual prompt rather than the full post/meta prompt.
  • Allow directly invited character profiles to be edited without later sync overwriting them.
  • Honor Conversation-specific character names throughout prompts, parsing, presence events, and message labels.
  • Search character tags, descriptions, creator metadata, and title aliases in chat pickers.
  • Preserve literal XML output-contract tags while escaping interpolated macro values.
  • Prevent repeated forced dependency installs and document Android storage recovery.

Closes #3540
Closes #3547
Closes #3548
Closes #3550
Closes #3551
Closes #3553
Closes #3554
Closes #3555

Issue #3549 is implemented in the existing contributor PR #3542 and was deliberately not duplicated here. Issue #3552 was closed as not planned: matching characters inside folders are already surfaced and relevant folders auto-expand, while always displaying every folder during search would defeat search for large libraries.

Automated validation completed locally

  • bash -n start-termux.sh
  • pnpm check
  • pnpm regression:providers
  • pnpm regression:prompt
  • pnpm regression:issues
  • pnpm regression:noodle
  • pnpm version:check
  • pnpm smoke:ui (36 passed, 24 intentionally skipped)

Manual validation to perform

  • Manually verify default and fallback selectors for all four generation categories.
  • Manually force each fallback category and verify its toast identifies the replacement connection/model.
  • Manually verify connection export/import preserves default and fallback roles.
  • Manually verify Character and Persona Title / comment synchronization.
  • Manually verify editing a directly invited character Noodle profile in the browser.
  • Manually verify grouped Conversation labels and presence events with a custom Convo name.
  • Manually verify an Android/Termux update on a constrained device.

Summary by CodeRabbit

  • New Features

    • Added expandable connection Defaults settings with configurable fallbacks for main, agent, illustrator, and video generation.
    • Generation now retries with configured fallbacks and identifies the replacement connection and model.
    • Character and Persona metadata now prioritize Title / comment fields.
    • Character search now includes tags, titles, descriptions, and aliases.
    • Noodle profiles support editing directly invited characters, with improved participant selection and image prompts.
  • Bug Fixes

    • Improved malformed Noodle data recovery, conversation display names, XML prompt handling, and Android dependency updates.
    • Prevented fallback retries after partial output or user cancellation.
  • Documentation

    • Added Android storage troubleshooting and dependency-cache guidance.

🔄 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/3556 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/13/2026 **Status:** ✅ Merged **Merged:** 7/13/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/fix-open-issues-3540-3555` --- ### 📝 Commits (6) - [`3269c5f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3269c5f2b4d19803b1e78baca8001a577295d781) fix(termux): avoid forced dependency reinstall loops - [`710ca86`](https://github.com/Pasta-Devs/Marinara-Engine/commit/710ca865673b7f07c43ef9497cf5ac90804fc9d5) fix: resolve Noodle and conversation issue sweep - [`4df2ce2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4df2ce23006ec5845c34ebb58bcab3a2c6c43a42) feat: add connection fallbacks and editor metadata - [`47f7937`](https://github.com/Pasta-Devs/Marinara-Engine/commit/47f793745549c6c5041c5536dce6a374e7c72d0a) Merge branch 'staging' into agent/fix-open-issues-3540-3555 - [`dd71190`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dd71190d8537abd86882cfa4c7b8e6f70aed1e7f) Merge remote-tracking branch 'origin/staging' into agent/fix-open-issues-3540-3555 - [`054622e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/054622e7bf3603884028fb0633e8d1fe64b9090e) Address CodeRabbit fallback review ### 📊 Changes **75 files changed** (+2442 additions, -839 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+22 -0) 📝 `docs/TROUBLESHOOTING.md` (+15 -0) 📝 `docs/installation/android-termux.md` (+3 -1) 📝 `docs/installation/macos-linux.md` (+2 -2) 📝 `docs/installation/windows.md` (+3 -3) 📝 `e2e/core-flows.e2e.ts` (+50 -0) 📝 `package.json` (+1 -1) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+26 -6) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+8 -10) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+19 -25) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+11 -4) 📝 `packages/client/src/components/chat/ConversationMessageBubble.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ConversationMessageGrouped.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+8 -5) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+9 -47) 📝 `packages/client/src/components/noodle/NoodleView.tsx` (+39 -34) 📝 `packages/client/src/components/panels/ConnectionsPanel.tsx` (+196 -195) 📝 `packages/client/src/components/panels/settings/TTSConfigCard.tsx` (+6 -7) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+14 -14) 📝 `packages/client/src/hooks/use-connections.ts` (+2 -0) _...and 55 more files_ </details> ### 📄 Description ## Why This PR combines the current open-issue sweep with the maintainer-requested Connections overhaul and Character/Persona metadata improvement. The Connections work gives every generation category an explicit default and optional fallback. When a primary connection fails before producing usable output, Marinara can retry once through the selected fallback and clearly tell the user which connection/model took over. Cancellation and already-visible partial streams remain protected from accidental duplicate generation. The Android report was not caused by Noodle downloading or retaining gigabytes of runtime data. The launcher was repeatedly forcing full workspace dependency reinstalls while a repository-local pnpm store accumulated old packages. The update path now rebuilds once without `--force`, prunes unreferenced store packages, and accepts the current Node 26 Termux runtime. The Defaults/fallback and editor-metadata portions were requested directly by the maintainer and do not have a separate linked issue. If separate project tracking is required, an issue should be opened before this draft is marked ready. ## Connections and editor changes - Add a compact, expandable **Defaults** section for Main, Agents, Illustrator, and Videos. - Place each default and fallback selector vertically, with **None** available for fallbacks and direct access to the selected connection settings. - Align Connections cards, blue icon treatments, control sizes, Local Model, Local Speech Model, and Text to Speech styling with the current UI system. - Persist and transfer Main/Agents/Illustrator/Video default and fallback roles. - Retry text, agent, image, and video generation through the configured category fallback when the primary fails before usable output. - Preserve user cancellations and partial streamed output instead of retrying and duplicating content. - Show an informational toast naming the fallback connection and model through response headers or SSE events. - Add **Title / comment** directly below **Name** in Character and Persona Metadata while keeping the editor-header value synchronized. ## Issue fixes - Validate generated Noodle collections row by row and retry malformed or invented-actor batches once with exact allowed IDs. - Keep invited characters primary and random users occasional during Noodle refreshes. - Send image providers a normalized visual prompt rather than the full post/meta prompt. - Allow directly invited character profiles to be edited without later sync overwriting them. - Honor Conversation-specific character names throughout prompts, parsing, presence events, and message labels. - Search character tags, descriptions, creator metadata, and title aliases in chat pickers. - Preserve literal XML output-contract tags while escaping interpolated macro values. - Prevent repeated forced dependency installs and document Android storage recovery. Closes #3540 Closes #3547 Closes #3548 Closes #3550 Closes #3551 Closes #3553 Closes #3554 Closes #3555 Issue #3549 is implemented in the existing contributor PR #3542 and was deliberately not duplicated here. Issue #3552 was closed as not planned: matching characters inside folders are already surfaced and relevant folders auto-expand, while always displaying every folder during search would defeat search for large libraries. ## Automated validation completed locally - `bash -n start-termux.sh` - `pnpm check` - `pnpm regression:providers` - `pnpm regression:prompt` - `pnpm regression:issues` - `pnpm regression:noodle` - `pnpm version:check` - `pnpm smoke:ui` (36 passed, 24 intentionally skipped) ## Manual validation to perform - [ ] Manually verify default and fallback selectors for all four generation categories. - [ ] Manually force each fallback category and verify its toast identifies the replacement connection/model. - [ ] Manually verify connection export/import preserves default and fallback roles. - [ ] Manually verify Character and Persona Title / comment synchronization. - [ ] Manually verify editing a directly invited character Noodle profile in the browser. - [ ] Manually verify grouped Conversation labels and presence events with a custom Convo name. - [ ] Manually verify an Android/Termux update on a constrained device. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added expandable connection Defaults settings with configurable fallbacks for main, agent, illustrator, and video generation. * Generation now retries with configured fallbacks and identifies the replacement connection and model. * Character and Persona metadata now prioritize Title / comment fields. * Character search now includes tags, titles, descriptions, and aliases. * Noodle profiles support editing directly invited characters, with improved participant selection and image prompts. * **Bug Fixes** * Improved malformed Noodle data recovery, conversation display names, XML prompt handling, and Android dependency updates. * Prevented fallback retries after partial output or user cancellation. * **Documentation** * Added Android storage troubleshooting and dependency-cache guidance. <!-- 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-23 04:05:57 +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#5990
No description provided.