Skip to content

fix(code-review): keep expanded review open for comments#3519

Closed
MattPua wants to merge 1 commit into
mainfrom
posthog-code/keep-expanded-review-comments
Closed

fix(code-review): keep expanded review open for comments#3519
MattPua wants to merge 1 commit into
mainfrom
posthog-code/keep-expanded-review-comments

Conversation

@MattPua

@MattPua MattPua commented Jul 16, 2026

Copy link
Copy Markdown
Member

Problem

Submitting comments while code review is expanded closes the expanded review and returns to the chat panel.

Changes

  • Keep expanded review open for inline, batched, and PR-thread chat comments
  • Preserve existing focus behavior for other agent prompts
  • Add regression coverage for each comment flow

No screenshot included because this is a behavior-only fix.

How did you test this?

  • pnpm --filter @posthog/ui exec vitest run src/features/code-review/components/CommentAnnotation.test.tsx src/features/code-review/components/PendingReviewBar.test.tsx src/features/code-review/components/PrCommentThread.test.tsx src/features/sessions/sendPromptToAgent.test.ts
  • pnpm --filter @posthog/ui typecheck
  • pnpm exec biome check packages/ui/src/features/code-review/components/CommentAnnotation.test.tsx packages/ui/src/features/code-review/components/PendingReviewBar.test.tsx packages/ui/src/features/code-review/components/CommentAnnotation.tsx packages/ui/src/features/code-review/components/PendingReviewBar.tsx packages/ui/src/features/code-review/components/PrCommentThread.tsx packages/ui/src/features/code-review/components/PrCommentThread.test.tsx packages/ui/src/features/sessions/sendPromptToAgent.ts packages/ui/src/features/sessions/sendPromptToAgent.test.ts

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

Generated-By: PostHog Code
Task-Id: 3606bffb-74c3-41e4-9026-2b01798f4110
@trunk-io

trunk-io Bot commented Jul 16, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 159bf82.

@MattPua MattPua closed this Jul 16, 2026
@MattPua
MattPua deleted the posthog-code/keep-expanded-review-comments branch July 16, 2026 16:42
@posthog

posthog Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

👋 Visual changes detected for this PR.

Review and approve in PostHog Visual Review

If these changes are unexpected, they may be caused by a flaky test or a broken snapshot on master. Don't approve — rerun the job or wait for a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant