Skip to content

Open in code review button remains after a PR comment is added to the code review panel #9627

@captainsafia

Description

@captainsafia

Summary

The PR comments view continues to show the per-comment “Open in code review” button after that comment has already been added to the code review panel.

Problem

After a PR comment is added to the code review panel, the source comment in the PR comments view still appears actionable via “Open in code review.” This makes it look like the comment has not been added yet and may invite users to repeat the action.

Expected behavior

Once a PR comment has been added to the code review panel, the corresponding “Open in code review” button should no longer appear as an available action for that comment. It should be hidden, disabled, or replaced with an already-added state so the user can tell the comment is already in the review panel.

Actual behavior

The “Open in code review” button remains visible in the PR comments view even after the comment has been added to the code review panel.

Reproduction steps or desired workflow

  1. Open a PR comments view that contains at least one comment with an “Open in code review” button.
  2. Click “Open in code review” for a comment.
  3. Confirm that the comment appears in the code review panel.
  4. Return to or observe the PR comments view for the same comment.
  5. Notice that the “Open in code review” button is still shown for the already-added comment.

Artifacts

None attached.

Warp version

v0.2026.04.25.08.29.dev_00

Operating system

macOS 26.4 (build 25E246)

Possible source references

  • app/src/ai/blocklist/block.rs:557: creates the per-comment ActionButton::new("Open in code review", SecondaryTheme) that dispatches AIBlockAction::OpenImportedCommentInCodeReview.
  • app/src/ai/blocklist/block/view_impl/imported_comments.rs:12: renders each imported comment card’s open_in_code_review_button in the PR/imported-comments UI.
  • app/src/ai/blocklist/block.rs:5284: contains update_imported_comments_disabled_state, the existing disabled-state path for imported-comments code review buttons.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:code-reviewGit diff views, review UI, review comments, and PR-focused agent flows.bugSomething isn't working.in-app-feedbackFeedback items sourced from in-app feedback flows.ready-to-implementThe issue is ready for implementation work.repro:highThe report includes enough evidence that the issue appears highly reproducible.triagedIssue has received an initial automated triage pass.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions