Skip to content

feat(conversation): Add prompt selection and branching feature #1972

@dariuszkowalski-com

Description

@dariuszkowalski-com

Description

Enable users to interact with individual prompts within a conversation by viewing a list of all prompts (sorted oldest to newest), selecting a specific prompt, and branching the conversation from that point.

Current Behavior

Currently, users can only load and continue the entire conversation or clone it to continue elsewhere. There is no prompt-specific access or multi-branch conversation workflow.

Proposed Changes

  • Provide a view listing all prompts in the session, sorted chronologically.
  • Allow selection of any prompt:
    • Load the conversation from the start up to the selected prompt.
    • Enable submitting a new prompt at that point; this action creates a new conversation branch containing all previous prompts and Forge responses up to the selected prompt.
  • Support working with multiple branches and comparing alternative conversation paths.

Benefits

  • Streamlines workflow for analyzing or refining previous results.
  • Facilitates exploration of multiple solution variants from earlier session points.
  • Reduces repetitive cloning or manual conversation management.

Implementation Notes

  • Ensure clear UI/UX for prompt selection and branch creation (interactive, zsh)
  • Retain full conversation integrity in each branch for audit and comparison.

Additional Context

This feature will help users analyze code, refine results, and efficiently work with alternative solutions based on earlier session prompts and responses. If specific technical limitations exist regarding session storage or branching logic, please specify.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions