mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7750] [MERGED] feat(roleplay): render illustrate command images in-line #7912
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#7912
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7750
Author: @ylli-selmani
Created: 10/16/2026
Status: ✅ Merged
Merged: 10/16/2026
Merged by: @ylli-selmani
Base:
staging← Head:feat/inline-illustrations📝 Commits (3)
6b9b155feat(roleplay): render illustrate command images in-line (#7748)63a9834fix(roleplay): keep the Render in-line switch from being squeezeda1dd54efix(roleplay): keep image remove button on touch, distinct prompts in test📊 Changes
10 files changed (+407 additions, -54 deletions)
View changed files
📝
docs/roleplay/getting-started.md(+6 -0)📝
e2e/roleplay-commands.e2e.ts(+220 -0)📝
packages/client/src/components/chat/ChatMessage.tsx(+119 -48)📝
packages/client/src/components/chat/RoleplayCommandsSettings.tsx(+16 -0)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/server/src/routes/generate.routes.ts(+25 -5)📝
packages/server/src/services/generation/roleplay-commands.ts(+4 -1)📝
packages/shared/src/types/chat-preset.ts(+1 -0)📝
packages/shared/src/types/chat.ts(+2 -0)📝
scripts/regressions/roleplay-commands.regression.ts(+12 -0)📄 Description
Linked issue
Closes #7748
Docs translation follow-up: #7749
Why this change
[illustrate: ...]between paragraphs, right where a moment happens, but every image lands below the message. A reply with three illustrations shows all three stacked at the bottom, away from the moments they show.What changed
roleplayIllustrateInlineand kept in chat setting profiles. Off keeps today's behaviour.[illustrate]command saves its place in the reply the same way whispers do (contentOffset+contentAnchor), so edits and split replies keep it next to the same text through the existing reanchoring.roleplayCommandIndex, the index of the command that made it, so a failed command or several variants can't mismatch images.docs/roleplay/getting-started.md.roleplay-commands.regression.ts, and a new e2e test inroleplay-commands.e2e.tscovers placement, each image's own prompt in the viewer, remove, and the setting.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run in the cloud container:
tsc --noEmit, ESLint on the changed client files,pnpm localization:check,pnpm format:checkandpnpm impeccable:checkpass.Still to verify by hand:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Images from the e2e fixture (solid colours stand in for illustrations); screenshots to be added to the PR.
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.