[PR #5698] [MERGED] feat(client): copy impersonation guidance from stored replay #6889

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5698
Author: @Gunterlie
Created: 8/31/2026
Status: ✅ Merged
Merged: 8/31/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/impersonate-copy-button-origin


📝 Commits (3)

  • 2b79490 feat(client): copy the impersonation prompt from the stored-guidance modal
  • caeac25 fix(client): harden stored guidance copy actions
  • fd6900f fix: escape regression regex inputs

📊 Changes

4 files changed (+179 additions, -36 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/chat/GenerationReplayDetailsModal.tsx (+71 -36)
📝 packages/client/src/localization/locales/en.json (+12 -0)
➕ scripts/regressions/generation-replay-copy.regression.ts (+95 -0)

📄 Description

$## Why this change\n\nStored guidance showed impersonation directions and prompt templates, but users could not copy them for reuse.\n\n## What changed\n\n- Add copy actions to guided guidance, impersonation guidance, and impersonation prompt template blocks.\n- Copy guided and impersonation directions as replayable slash commands.\n- Copy impersonation prompt templates verbatim.\n- Reuse the shared clipboard helper and localize all visible labels and fallback text.\n- Add a source regression for all copy payloads and clipboard failure handling.\n\n## Validation\n\n- pnpm check\n- pnpm localization:check\n- Focused generation replay copy regression\n- Manual browser verification remains required for light mode, dark mode, mobile, empty guidance, and clipboard failure.\n\n## Docs and release impact\n\n- Updated CHANGELOG.md.\n\nCloses #

Summary by CodeRabbit

  • New Features

    • Added copy actions for guided commands, impersonation commands, and prompt templates.
    • Added localized labels, success messages, and error messages for copy actions.
    • Added localized statuses and fallback text when guidance is unavailable.
  • Bug Fixes

    • Improved clipboard handling and feedback when copying content.
  • Tests

    • Added regression coverage for copy payloads, localized controls, and notifications.

🔄 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/5698 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/31/2026 **Status:** ✅ Merged **Merged:** 8/31/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/impersonate-copy-button-origin` --- ### 📝 Commits (3) - [`2b79490`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2b7949083d171e71f852666fa351b5362f0b8be3) feat(client): copy the impersonation prompt from the stored-guidance modal - [`caeac25`](https://github.com/Pasta-Devs/Marinara-Engine/commit/caeac2539d00e72c56b821deea251a35585f3e1b) fix(client): harden stored guidance copy actions - [`fd6900f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fd6900f6787ded9ca31911d36bad54ec3c741713) fix: escape regression regex inputs ### 📊 Changes **4 files changed** (+179 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/chat/GenerationReplayDetailsModal.tsx` (+71 -36) 📝 `packages/client/src/localization/locales/en.json` (+12 -0) ➕ `scripts/regressions/generation-replay-copy.regression.ts` (+95 -0) </details> ### 📄 Description $## Why this change\n\nStored guidance showed impersonation directions and prompt templates, but users could not copy them for reuse.\n\n## What changed\n\n- Add copy actions to guided guidance, impersonation guidance, and impersonation prompt template blocks.\n- Copy guided and impersonation directions as replayable slash commands.\n- Copy impersonation prompt templates verbatim.\n- Reuse the shared clipboard helper and localize all visible labels and fallback text.\n- Add a source regression for all copy payloads and clipboard failure handling.\n\n## Validation\n\n- `pnpm check`\n- `pnpm localization:check`\n- Focused generation replay copy regression\n- Manual browser verification remains required for light mode, dark mode, mobile, empty guidance, and clipboard failure.\n\n## Docs and release impact\n\n- Updated `CHANGELOG.md`.\n\nCloses # <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added copy actions for guided commands, impersonation commands, and prompt templates. * Added localized labels, success messages, and error messages for copy actions. * Added localized statuses and fallback text when guidance is unavailable. * **Bug Fixes** * Improved clipboard handling and feedback when copying content. * **Tests** * Added regression coverage for copy payloads, localized controls, and notifications. <!-- 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:14:37 +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#6889
No description provided.