mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4718] [Feature]: Per-chat image style override for custom image agents (follow-up to #4682/#4686) #2590
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2590
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Aug 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4718
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
Follow-up to #4682 / PR #4686 (per-chat image connection override + snapshot button for custom image agents), requested by the same user after using the shipped feature:
Today the chat-level Image Style select applies to custom-agent images — but it's chat-global: one style profile for the Illustrator and every custom image agent in that chat. There's no way to render one custom agent in a different style than the chat's default (e.g. a "polaroid snapshots" agent alongside a painterly Illustrator), and steering style through the agent's prompt template is unreliable, as the requester found.
Proposed solution
Extend the per-chat, per-agent map that #4686 introduced — the shape was designed for exactly this kind of growth:
ChatMetadata.customAgentImageSettings[agentType]gainsstyleProfileId?: string | nullalongside the existingimageConnectionId.styleProfileIdwins over the chat-wideimageStyleProfileIdfor that agent'simage_promptresults, then falls through the existing chain (chat-wide → connection's style profile → default). Both handler twins (maingenerate.routes.tsand the retry route) need the same read, mirroring how the connection override was wired.*ConnectionIdkeys there is no auto-sweeper for style ids — a stale entry is inert and falls through, same aschatMeta.imageStyleProfileIdalready does.)Scope: same shape and size as the merged #4686 connection override (map extension + one select + a read at the two style-resolution sites) — comfortably within the "keep it small-scale" guidance from the parent request.
Alternatives considered
Additional context
Requested by the original #4682 reporter after validating PR #4686 in real use ("what's here is more than enough" — this is optional polish, explicitly low-priority). Queued behind current priority work (#4703, #4707–#4709); assigning to track ownership.
Template check
@SpicyMarinara commented on GitHub (Aug 7, 2026):
SpicyMarinara/Codex is implementing this in draft PR #4736 on
agent/assigned-issues-4718-4734.