[PR #3979] [MERGED] Fix focused conversation, gallery, and agent issues #6181

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

📋 Pull Request Information

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

Base: staging ← Head: agent/open-issues-2026-07-23


📝 Commits (4)

  • 5222626 Fix focused open issues
  • bb7fd9f Merge branch 'staging' into agent/open-issues-2026-07-23
  • 943a7d6 Merge branch 'staging' into agent/open-issues-2026-07-23
  • aecb3ed Apply CodeRabbit review fixes for avatars, thinking view, and defaults save

📊 Changes

19 files changed (+354 additions, -30 deletions)

View changed files

📝 packages/client/src/components/characters/CharacterEditor.tsx (+40 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+10 -2)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+20 -3)
📝 packages/client/src/components/chat/ConversationMessageBubble.tsx (+2 -2)
📝 packages/client/src/components/chat/ConversationView.tsx (+7 -1)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+3 -1)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+40 -0)
📝 packages/client/src/hooks/use-autonomous-messaging.ts (+40 -5)
📝 packages/client/src/hooks/use-background-autonomous.ts (+14 -3)
📝 packages/client/src/hooks/use-characters.ts (+24 -0)
📝 packages/client/src/hooks/use-connections.ts (+7 -4)
📝 packages/client/src/lib/user-status.ts (+4 -0)
📝 packages/server/src/routes/characters.routes.ts (+87 -0)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+26 -7)
📝 packages/server/src/services/agents/agent-executor.ts (+8 -0)
📝 packages/server/src/services/generation/agent-resolution.ts (+3 -2)
📝 packages/server/src/services/generation/illustrator-retry-targets.ts (+7 -0)
📝 scripts/regressions/illustrator-visual-retry.regression.ts (+4 -0)
📝 scripts/regressions/open-issues.regression.ts (+8 -0)

📄 Description

Why

Several open reports had small, well-bounded causes that could be corrected together without changing the surrounding architecture. This batch focuses on user-visible regressions in Conversation mode, galleries, connection settings, and explicit agent routing.

What changed

  • Re-check Do Not Disturb immediately before delayed foreground, exchange, and background autonomous generations.
  • Allow an agent explicitly configured for Local Sidecar to start it on demand even when the global tracker default is off.
  • Treat the Gallery Illustrate action as an explicit image request, so the Illustrator cannot decline it through shouldGenerate: false.
  • Constrain Conversation bubble flex rows to the viewport on narrow mobile layouts.
  • Keep a live Model Thoughts button available while a Conversation response is streaming.
  • Save image/video/default connection parameters before the final connection refresh to prevent stale defaults from winning a cache race.
  • Add Set as avatar to character and persona gallery cards and lightboxes, backed by path-contained, content-validated server copies.

Root causes

  • DND was checked when timers were scheduled, but not after a busy delay had elapsed.
  • Local Sidecar availability was incorrectly coupled to useForTrackers, despite explicit per-agent selection supporting on-demand startup.
  • Manual Gallery illustration retries used the same optional generation decision as automatic illustration runs.
  • Bubble flex containers lacked a full-width shrink boundary on mobile.
  • Streaming Conversation rows hid the entire message action surface.
  • Two connection mutations invalidated the same detail query in an order that allowed an older defaults snapshot to race the final state.

Validation

  • pnpm check
  • pnpm regression:issues
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/illustrator-visual-retry.regression.ts
  • pnpm smoke:ui — 84 passed, 52 intentionally skipped
  • git diff --check

Manual verification

  • Enable DND while an autonomous message is waiting on a busy delay and verify no message is sent.
  • Run an agent explicitly assigned to Local Sidecar while the global tracker-sidecar toggle is off.
  • Use Gallery → Illustrate in Conversation and Roleplay and verify an image is generated.
  • Inspect long Conversation bubbles on a narrow mobile viewport.
  • Open Model Thoughts while a Conversation response is still streaming.
  • Save image-generation defaults, leave the connection, and confirm they remain selected after reopening.
  • Set character and persona gallery images as avatars from both the grid and lightbox.

Closes #3959
Closes #3960
Closes #3963
Closes #3964
Closes #3971
Closes #3972
Closes #3974

Summary by CodeRabbit

  • New Features

    • Set character and persona gallery images as avatars directly from gallery tiles or the image viewer.
    • View model thoughts while responses are still streaming, including a waiting-state message.
    • Retry illustration generation independently from background generation.
  • Bug Fixes

    • Autonomous messages now respect all applicable suppression statuses during generation.
    • Improved connection save sequencing to prevent stale defaults.
    • Improved chat message sizing and illustration retry behavior.

🔄 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/3979 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/23/2026 **Status:** ✅ Merged **Merged:** 7/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/open-issues-2026-07-23` --- ### 📝 Commits (4) - [`5222626`](https://github.com/Pasta-Devs/Marinara-Engine/commit/52226263112c9e0a66104a63e607d5f5e36bd886) Fix focused open issues - [`bb7fd9f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bb7fd9fff6b2d84d75f814759a190d4e338edf10) Merge branch 'staging' into agent/open-issues-2026-07-23 - [`943a7d6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/943a7d647f0a6ad17e5f92fafe156aef9390e0b8) Merge branch 'staging' into agent/open-issues-2026-07-23 - [`aecb3ed`](https://github.com/Pasta-Devs/Marinara-Engine/commit/aecb3ed29e15db0bdf1da4be4dfa809e7371220c) Apply CodeRabbit review fixes for avatars, thinking view, and defaults save ### 📊 Changes **19 files changed** (+354 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+40 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+10 -2) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+20 -3) 📝 `packages/client/src/components/chat/ConversationMessageBubble.tsx` (+2 -2) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+7 -1) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+3 -1) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+40 -0) 📝 `packages/client/src/hooks/use-autonomous-messaging.ts` (+40 -5) 📝 `packages/client/src/hooks/use-background-autonomous.ts` (+14 -3) 📝 `packages/client/src/hooks/use-characters.ts` (+24 -0) 📝 `packages/client/src/hooks/use-connections.ts` (+7 -4) 📝 `packages/client/src/lib/user-status.ts` (+4 -0) 📝 `packages/server/src/routes/characters.routes.ts` (+87 -0) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+26 -7) 📝 `packages/server/src/services/agents/agent-executor.ts` (+8 -0) 📝 `packages/server/src/services/generation/agent-resolution.ts` (+3 -2) 📝 `packages/server/src/services/generation/illustrator-retry-targets.ts` (+7 -0) 📝 `scripts/regressions/illustrator-visual-retry.regression.ts` (+4 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+8 -0) </details> ### 📄 Description ## Why Several open reports had small, well-bounded causes that could be corrected together without changing the surrounding architecture. This batch focuses on user-visible regressions in Conversation mode, galleries, connection settings, and explicit agent routing. ## What changed - Re-check Do Not Disturb immediately before delayed foreground, exchange, and background autonomous generations. - Allow an agent explicitly configured for Local Sidecar to start it on demand even when the global tracker default is off. - Treat the Gallery **Illustrate** action as an explicit image request, so the Illustrator cannot decline it through `shouldGenerate: false`. - Constrain Conversation bubble flex rows to the viewport on narrow mobile layouts. - Keep a live Model Thoughts button available while a Conversation response is streaming. - Save image/video/default connection parameters before the final connection refresh to prevent stale defaults from winning a cache race. - Add **Set as avatar** to character and persona gallery cards and lightboxes, backed by path-contained, content-validated server copies. ## Root causes - DND was checked when timers were scheduled, but not after a busy delay had elapsed. - Local Sidecar availability was incorrectly coupled to `useForTrackers`, despite explicit per-agent selection supporting on-demand startup. - Manual Gallery illustration retries used the same optional generation decision as automatic illustration runs. - Bubble flex containers lacked a full-width shrink boundary on mobile. - Streaming Conversation rows hid the entire message action surface. - Two connection mutations invalidated the same detail query in an order that allowed an older defaults snapshot to race the final state. ## Validation - `pnpm check` - `pnpm regression:issues` - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/illustrator-visual-retry.regression.ts` - `pnpm smoke:ui` — 84 passed, 52 intentionally skipped - `git diff --check` ## Manual verification - [ ] Enable DND while an autonomous message is waiting on a busy delay and verify no message is sent. - [ ] Run an agent explicitly assigned to Local Sidecar while the global tracker-sidecar toggle is off. - [ ] Use Gallery → Illustrate in Conversation and Roleplay and verify an image is generated. - [ ] Inspect long Conversation bubbles on a narrow mobile viewport. - [ ] Open Model Thoughts while a Conversation response is still streaming. - [ ] Save image-generation defaults, leave the connection, and confirm they remain selected after reopening. - [ ] Set character and persona gallery images as avatars from both the grid and lightbox. Closes #3959 Closes #3960 Closes #3963 Closes #3964 Closes #3971 Closes #3972 Closes #3974 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Set character and persona gallery images as avatars directly from gallery tiles or the image viewer. * View model thoughts while responses are still streaming, including a waiting-state message. * Retry illustration generation independently from background generation. * **Bug Fixes** * Autonomous messages now respect all applicable suppression statuses during generation. * Improved connection save sequencing to prevent stale defaults. * Improved chat message sizing and illustration retry behavior. <!-- 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:07:53 +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#6181
No description provided.