[PR #3639] [MERGED] Honor Conversation selfie prompt model overrides #6027

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

📋 Pull Request Information

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

Base: staging ← Head: agent/fix-3638-selfie-prompt-model


📝 Commits (2)

  • f637c1e fix conversation selfie prompt model routing
  • 692e2f1 add selfie prompt debug observability

📊 Changes

6 files changed (+269 additions, -81 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/server/src/routes/gallery.routes.ts (+24 -37)
📝 packages/server/src/routes/generate.routes.ts (+1 -2)
📝 packages/server/src/services/generation/conversation-selfie-command-runtime.ts (+37 -42)
➕ packages/server/src/services/generation/illustrator-prompt-runtime.ts (+127 -0)
📝 scripts/regressions/open-issues.regression.ts (+79 -0)

📄 Description

Why

Conversation selfie prompt generation ignored the chat's Prompt Model selection and reused the main chat connection. That made the setting ineffective and could charge the wrong provider for both automatic character selfies and Gallery selfies.

Closes #3638

What changed

  • resolve the per-chat Illustrator prompt connection through one shared server runtime
  • use the selected provider, model, Base URL, caching flags, model-access policy, and local sidecar support in both Conversation selfie entry points
  • retain the main chat connection as the default only when no Prompt Model override is selected
  • return a clear error for a deleted or invalid selected prompt connection instead of silently falling back to the main model
  • add issue regression coverage and a v2.3.0 changelog entry

Test plan

  • Manually verify an automatic Conversation [selfie] request records one chat-model request and one request against the separately selected selfie Prompt Model.
  • Manually verify a Gallery selfie uses the separately selected selfie Prompt Model.
  • Manually verify Main chat model continues to work when no override is selected.
  • Manually verify a local-sidecar Prompt Model selection works when the local model is installed.

Automated validation

  • pnpm --filter @marinara-engine/server lint
  • pnpm regression:issues

Summary by CodeRabbit

  • New Features
    • Conversation and Gallery selfies now use the selected per-chat Prompt Model for prompt generation.
    • Supports configured provider behavior, caching, and local-sidecar connections.
  • Bug Fixes
    • Fixed an issue where the selected Prompt Model was ignored when generating automatic character or Gallery selfies.
    • Added clearer error handling when the selected prompt runtime is unavailable.

🔄 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/3639 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/15/2026 **Status:** ✅ Merged **Merged:** 7/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/fix-3638-selfie-prompt-model` --- ### 📝 Commits (2) - [`f637c1e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f637c1e5c475a9d95361d834e5f0f3e1d2654dc2) fix conversation selfie prompt model routing - [`692e2f1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/692e2f108d10331b0ab4c32bb7117d52c129753b) add selfie prompt debug observability ### 📊 Changes **6 files changed** (+269 additions, -81 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/server/src/routes/gallery.routes.ts` (+24 -37) 📝 `packages/server/src/routes/generate.routes.ts` (+1 -2) 📝 `packages/server/src/services/generation/conversation-selfie-command-runtime.ts` (+37 -42) ➕ `packages/server/src/services/generation/illustrator-prompt-runtime.ts` (+127 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+79 -0) </details> ### 📄 Description ## Why Conversation selfie prompt generation ignored the chat's **Prompt Model** selection and reused the main chat connection. That made the setting ineffective and could charge the wrong provider for both automatic character selfies and Gallery selfies. Closes #3638 ## What changed - resolve the per-chat Illustrator prompt connection through one shared server runtime - use the selected provider, model, Base URL, caching flags, model-access policy, and local sidecar support in both Conversation selfie entry points - retain the main chat connection as the default only when no Prompt Model override is selected - return a clear error for a deleted or invalid selected prompt connection instead of silently falling back to the main model - add issue regression coverage and a v2.3.0 changelog entry ## Test plan - [ ] Manually verify an automatic Conversation `[selfie]` request records one chat-model request and one request against the separately selected selfie Prompt Model. - [ ] Manually verify a Gallery selfie uses the separately selected selfie Prompt Model. - [ ] Manually verify **Main chat model** continues to work when no override is selected. - [ ] Manually verify a local-sidecar Prompt Model selection works when the local model is installed. ## Automated validation - `pnpm --filter @marinara-engine/server lint` - `pnpm regression:issues` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Conversation and Gallery selfies now use the selected per-chat **Prompt Model** for prompt generation. * Supports configured provider behavior, caching, and local-sidecar connections. * **Bug Fixes** * Fixed an issue where the selected Prompt Model was ignored when generating automatic character or Gallery selfies. * Added clearer error handling when the selected prompt runtime is unavailable. <!-- 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:06:22 +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#6027
No description provided.