Skip to content

fix(vscode): keep Agent Manager PR comment headers consistent - #13879

Merged
marius-kilocode merged 2 commits into
mainfrom
fix-comment-collapse-toggle
Sep 7, 2026
Merged

marius-kilocode merged 2 commits into
mainfrom
fix-comment-collapse-toggle

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Expanded Agent Manager PR comments moved the header control into the inline diff, and the header text changed from the comment preview to the file path. This made the same thread appear to change identity and forced users to find a different collapse control.

Why This Change Was Made

Keep one header mounted above the diff. Keep the comment preview stable in that header, and show the file location separately above the code. Remove the top omitted-lines marker from comment previews.

User Impact

Users can expand and collapse a PR comment from the same header without losing context. The header remains stable for narrow sidebars and keyboard interaction.

Evidence

Before:
Before, expanded PR comment header changes to file path

After:
After, expanded PR comment keeps its comment preview in the header

Automated coverage includes focused PR comment unit tests, type checking, lint, and Playwright coverage at 420px and 200px with mouse, Enter, and Space toggling.

@kilo-code-bot

kilo-code-bot Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (8 files)
  • .changeset/stable-pr-comment-header.md
  • packages/kilo-docs/public/img/screenshot-tests/kilo-vscode/visual-regression/agentmanager/pr-panel-comments-200-chromium-linux.png
  • packages/kilo-docs/public/img/screenshot-tests/kilo-vscode/visual-regression/agentmanager/pr-panel-comments-chromium-linux.png
  • packages/kilo-vscode/tests/diff-scroll-preservation.spec.ts
  • packages/kilo-vscode/tests/fixtures/pr-comments-render.tsx
  • packages/kilo-vscode/webview-ui/agent-manager/pr/PRCommentCard.tsx
  • packages/kilo-vscode/webview-ui/agent-manager/pr/PRComments.tsx
  • packages/kilo-vscode/webview-ui/diff-viewer/PRCommentDiff.tsx

Reviewed by grok-4.6 · Input: 212.4K · Output: 17.6K · Cached: 344.2K

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit d6fbfa3 into main Sep 7, 2026
27 checks passed
@marius-kilocode
marius-kilocode deleted the fix-comment-collapse-toggle branch September 7, 2026 15:18
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.

2 participants