[GH-ISSUE #562] [Feature]: Add duplicate action for preset prompt blocks #258

Closed
opened 2026-10-20 17:26:51 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @cha1latte on GitHub (May 8, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/562

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

The preset prompt editor does not have a built-in way to copy or duplicate individual prompt blocks. Users who want to experiment with a modified version of a block while keeping the original available as a disabled rollback point currently have to manually copy, paste, and reconfigure the block by hand, which is slower and more error-prone.

Proposed solution

Add a copy or duplicate action to each prompt block in the preset editor. The duplicated block should preserve the original block's configurable content and settings so the user can quickly tweak the copy, activate/deactivate either version, and compare changes while editing a preset.

The reporter suggested placing the action near the existing prompt block controls, such as around the first four toolbar buttons or near the last two action buttons.

Alternatives considered

Manually copy, paste, and configure prompt blocks by hand, but that is slower and more prone to user error.

Additional context

Discord source: https://discord.com/channels/1417099416812392641/1502150994694373476

Reported by wiishywaashiiRole icon, 1-Star OP, in Discord on May 7, 2026 at 11:31 PM.

The reporter included a screenshot of a prompt block toolbar, using the Main Prompt block as an example placement target for the duplicate/copy control.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @cha1latte on GitHub (May 8, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/562 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? The preset prompt editor does not have a built-in way to copy or duplicate individual prompt blocks. Users who want to experiment with a modified version of a block while keeping the original available as a disabled rollback point currently have to manually copy, paste, and reconfigure the block by hand, which is slower and more error-prone. ## Proposed solution Add a copy or duplicate action to each prompt block in the preset editor. The duplicated block should preserve the original block's configurable content and settings so the user can quickly tweak the copy, activate/deactivate either version, and compare changes while editing a preset. The reporter suggested placing the action near the existing prompt block controls, such as around the first four toolbar buttons or near the last two action buttons. ## Alternatives considered Manually copy, paste, and configure prompt blocks by hand, but that is slower and more prone to user error. ## Additional context Discord source: https://discord.com/channels/1417099416812392641/1502150994694373476 Reported by wiishywaashiiRole icon, 1-Star OP, in Discord on May 7, 2026 at 11:31 PM. The reporter included a screenshot of a prompt block toolbar, using the Main Prompt block as an example placement target for the duplicate/copy control. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:26:51 +07:00
Author
Owner

@cha1latte commented on GitHub (May 8, 2026):

Triage note: labeling this as normal-scope because it is a focused quality-of-life improvement to an existing preset editor control surface.

Keep this in the normal enhancement backlog as a small preset editing convenience, with implementation scoped to duplicating one prompt block and its current settings.

<!-- gh-comment-id:4407665503 --> @cha1latte commented on GitHub (May 8, 2026): Triage note: labeling this as `normal-scope` because it is a focused quality-of-life improvement to an existing preset editor control surface. Keep this in the normal enhancement backlog as a small preset editing convenience, with implementation scoped to duplicating one prompt block and its current settings.
Author
Owner

@SpicyMarinara commented on GitHub (May 10, 2026):

Implemented in the local v1.5.9 issue sweep.

  • Added a duplicate icon action to each prompt preset block.
  • The copy preserves the block content, role, enabled state, marker config, group assignment, injection position/depth, injection order, and override lock.
  • The duplicated block is inserted directly below the original and expanded for immediate editing.
  • Added the release note to CHANGELOG.md.

Validation: pnpm --filter @marinara-engine/client lint.

<!-- gh-comment-id:4415075187 --> @SpicyMarinara commented on GitHub (May 10, 2026): Implemented in the local v1.5.9 issue sweep. - Added a duplicate icon action to each prompt preset block. - The copy preserves the block content, role, enabled state, marker config, group assignment, injection position/depth, injection order, and override lock. - The duplicated block is inserted directly below the original and expanded for immediate editing. - Added the release note to `CHANGELOG.md`. Validation: `pnpm --filter @marinara-engine/client lint`.
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#258
No description provided.