mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7807] [MERGED] feat(peek-prompt): copy the assembled prompt in one click #7936
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#7936
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/7807
Author: @SpicyMarinara
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/7798-copy-assembled-prompt📝 Commits (1)
6581506feat(peek-prompt): copy the assembled prompt in one click📊 Changes
4 files changed (+56 additions, -9 deletions)
View changed files
📝
docs/chats/peek-prompt.md(+2 -0)📝
e2e/core-flows.e2e.ts(+18 -0)📝
packages/client/src/components/chat/PeekPromptModal.tsx(+32 -9)📝
packages/client/src/localization/locales/en.json(+4 -0)📄 Description
Linked issue
Closes #7798
Why this change
What changed
PeekPromptModal.tsx: a small icon button next to the close button in the Assembled Prompt header. One click copies every message the viewer holds, in send order, as plain text. Each message sits under a[system]/[user]/[assistant]line, with a blank line between messages and the content left exactly as it is. Collapsed sections and chat history are included because the copy is built from the messages, not from the opened sections.copyToClipboardhelper (with its HTTP fallback) and the existing sonner toast pattern. The control is a nativetype="button"with anaria-labeland a tooltip, so it works from the keyboard and with screen readers.en.json: four new keys, sorted:ui.chat.peekpromptmodal.copyPrompt,copyPromptHint,promptCopiedandpromptCopyFailed. Community locales fall back to English.e2e/core-flows.e2e.ts: the existing mobile Peek Prompt test, which opens an exact saved two-message request, now taps Copy assembled prompt and checks the toast and the exact clipboard text:"[system]\nStay in character.\n\n[user]\nContinue the scene.".docs/chats/peek-prompt.md: one paragraph describing the copy button.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands the agent ran (results as reported, not ticked):
pnpm check: exit 0. This includes localization:check, format:check, lint, check:e2e-types and build.pnpm exec prettier --check e2e/core-flows.e2e.ts docs/chats/peek-prompt.md: clean.PLAYWRIGHT_ONLY_PROJECT=mobile pnpm exec playwright test e2e/core-flows.e2e.ts -g "Peek prompt keeps its tapped action visible" --project mobile-chromium --project mobile-webkit(on custom ports): 12/12 passed, covering Roleplay, Classic Conversation and Bubble Conversation in dark and light.pnpm build:shared && node ./scripts/run-regressions.mjs --filter roleplay-streaming: passed. This regression readsPeekPromptModal.tsxsource.Manual verification notes
[role]line before each message, and that a "Prompt copied." toast appears.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)English docs changed:
docs/chats/peek-prompt.md. Translations will be handled in the release docs-i18n sweep, so no separate[docs-i18n]issue was opened.UI evidence (if applicable)
mobile-roleplay-peek-prompt-*.pngscreenshots that show the header with the new button and the copy toast.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.