Skip to content

Commit Composer view doesn't switch when recomposing different branches #4744

@nikolay-1986

Description

@nikolay-1986

When attempting to recompose commits from different branches in sequence, the Commit Composer view doesn't refresh to show the correct branch content.

Preconditions:

  1. Two branches with multiple commits exist
  2. AI feature enabled in the system

Steps to Reproduce:

  1. Navigate to the commit graph
  2. Select branch 1 and right-click
  3. Choose "Recompose Commits" from context menu
    • Expected: Commit Composer view for branch 1 opens
    • Actual: Commit Composer view for branch 1 opens ✓
  4. Select branch 2 and right-click
  5. Choose "Recompose commits" from context menu
    • Expected: Commit Composer view for branch 2 opens with auto-refresh
    • Actual: Commit Composer view for branch 1 is still displayed

Actual Result:

The Commit Composer view remains stuck showing the content from the first selected branch (branch 1) instead of refreshing to show the second branch (branch 2).

Expected Result:

When selecting "Recompose commits" on a different branch, the Commit Composer view should automatically refresh and display the commits from the newly selected branch.

Additional Context:

  • This prevents users from efficiently working with multiple branches in the Commit Composer
  • The issue suggests either a view caching problem or missing refresh trigger when switching between branches

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