[GH-ISSUE #7748] [Feature]: Render illustrate command images in-line where the command was written #4275

Closed
opened 2026-10-21 06:13:59 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @ylli-selmani on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7748

Originally assigned to: @ylli-selmani on GitHub.

What problem does this solve?

In Roleplay, a character can use the hidden [illustrate: ...] command anywhere in its reply, for example between paragraphs, right where a moment happens. The command is hidden from the user, but every image it produces is shown below the message box, after all the text. A reply with three illustrations shows all three at the bottom, far from the moments they depict.

Proposed solution

Add a Render in-line sub-toggle under the Illustrations command (Chat settings → Agents → Commands). When it is on:

  • Each illustration made by an [illustrate] command is shown inside the message box, at the place the command was written, scaled to fit, like an image link in the message text.
  • The image keeps its current controls: the X on hover to remove it, and clicking it opens the viewer with the prompt.
  • The illustrate line in the commands prompt gains a sentence telling the model it may write the command between paragraphs or at the start, and the image will appear exactly there.

When it is off, nothing changes: images keep showing below the message. Illustrations from automatic Illustrator runs, retries, and Visual Novel layout also keep their current placement.

The position should survive message edits the same way inline whispers and rolls already do.

Alternatives considered

  • Always render in-line with no toggle: changes current chats without asking, so it is gated for now.
  • Matching images to commands by order: breaks when a command fails or makes several variants, so each image should record which command made it.

Additional context

Example reply (from the provider log) with three [illustrate] commands between paragraphs; today all three images stack under the message.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @ylli-selmani on GitHub (Oct 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7748 Originally assigned to: @ylli-selmani on GitHub. ## What problem does this solve? In Roleplay, a character can use the hidden `[illustrate: ...]` command anywhere in its reply, for example between paragraphs, right where a moment happens. The command is hidden from the user, but every image it produces is shown below the message box, after all the text. A reply with three illustrations shows all three at the bottom, far from the moments they depict. ## Proposed solution Add a **Render in-line** sub-toggle under the Illustrations command (Chat settings → Agents → Commands). When it is on: - Each illustration made by an `[illustrate]` command is shown inside the message box, at the place the command was written, scaled to fit, like an image link in the message text. - The image keeps its current controls: the X on hover to remove it, and clicking it opens the viewer with the prompt. - The illustrate line in the commands prompt gains a sentence telling the model it may write the command between paragraphs or at the start, and the image will appear exactly there. When it is off, nothing changes: images keep showing below the message. Illustrations from automatic Illustrator runs, retries, and Visual Novel layout also keep their current placement. The position should survive message edits the same way inline whispers and rolls already do. ## Alternatives considered - Always render in-line with no toggle: changes current chats without asking, so it is gated for now. - Matching images to commands by order: breaks when a command fails or makes several variants, so each image should record which command made it. ## Additional context Example reply (from the provider log) with three `[illustrate]` commands between paragraphs; today all three images stack under the message. ## Template check - [ ] I DID NOT read this template and provide the requested details.
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#4275
No description provided.