complexity icon indicating copy to clipboard operation
complexity copied to clipboard

[Feature Request]: Message Quick Duplication, with Format Options

Open HumanistAtypik opened this issue 11 months ago • 0 comments

Feature Description

Currently, users can copy messages but cannot easily duplicate them into a new query box. This requires multiple manual steps:

  1. Click copy button
  2. Paste content
  3. Edit as needed

Why not implement a "Duplicate Message" feature that would:

  • Add a duplicate button next to the existing copy button in message blocks
  • Allow direct duplication into a new query box
  • Provide format options on hover (plain text/markdown citation)
  • Integrate with the existing message block UI

The feature would:

  • Create a new query box with the duplicated content
  • Preserve formatting options based on user choice
  • Support both Question and Answer blocks
  • Use the existing UI patterns and components

Technical Implementation

The feature should:

  1. UI Component:

    • Add a new button with duplicate icon
    • Use existing dropdown pattern for format options
    • Follow current styling (tw-* classes)
  2. Format Options:

    type DuplicateFormat = 'plain' | 'markdown';
    
    

Use Case

  1. Iterative Queries:

    • User gets a good answer but wants to refine it
    • Clicks duplicate on the question
    • Modifies the duplicated query
    • Gets an improved answer
  2. Answer Comparison:

    • User wants to compare model responses
    • Duplicates an answer with citation
    • Changes model or focus
    • Compares the results
  3. Question Building:

    • User wants to build on previous questions
    • Duplicates relevant parts from multiple messages
    • Combines them into a new query
    • Gets a comprehensive answer

This would significantly improve the workflow for users who:

  • Iterate on their queries
  • Compare different approaches
  • Build complex questions from parts of previous interactions

Alternatives Considered

  1. Enhanced Copy Button
  2. Context Menu Option
  3. Drag and Drop

HumanistAtypik avatar Jan 13 '25 14:01 HumanistAtypik