Skip to content

Center agent feedback widget header on start line#302176

Merged
benibenj merged 2 commits intomainfrom
copilot/supreme-parrotfish
Mar 17, 2026
Merged

Center agent feedback widget header on start line#302176
benibenj merged 2 commits intomainfrom
copilot/supreme-parrotfish

Conversation

@benibenj
Copy link
Copy Markdown
Contributor

Summary

Fixes the vertical positioning of the agent feedback editor widget so the center of the header aligns with the center of the start line, instead of placing the widget top one full line above.

Changes

agentFeedbackEditorWidgetContribution.ts — Updated layout() positioning math:

  • Old: getTopForLineNumber(startLineNumber) - lineHeight (shifted widget up by one line)
  • New: getTopForLineNumber(startLineNumber) + (lineHeight - headerHeight) / 2 (centers the header on the line)
  • Measures actual _headerNode.offsetHeight for accuracy

agentFeedbackEditorWidget.css — Adjusted the arrow pointer top from 12px9px to match the updated header alignment.

Copilot AI review requested due to automatic review settings March 16, 2026 17:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the Agent Sessions “agent feedback” editor overlay widget positioning so its header is vertically centered on the start line, improving alignment in the sessions-first editor experience.

Changes:

  • Updates layout() math to center the widget header on the start line using the measured header height.
  • Tweaks the speech-bubble arrow’s top offset to match the new vertical alignment.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/vs/sessions/contrib/agentFeedback/browser/media/agentFeedbackEditorWidget.css Adjusts arrow pointer vertical offset to align with the updated widget positioning.
src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackEditorWidgetContribution.ts Centers the overlay widget’s header on the start line by using measured header height in layout calculations.

You can also share your feedback on Copilot code review. Take the survey.

@vs-code-engineering vs-code-engineering bot added this to the 1.112.0 milestone Mar 16, 2026
@mjbvz
Copy link
Copy Markdown
Collaborator

mjbvz commented Mar 17, 2026

@benibenj I am moving this to 1.113 since it is targeting main. Please bring it in as a candidate if needed

@mjbvz mjbvz modified the milestones: 1.112.0, 1.113.0 Mar 17, 2026
@benibenj benibenj merged commit 76588d6 into main Mar 17, 2026
25 checks passed
@benibenj benibenj deleted the copilot/supreme-parrotfish branch March 17, 2026 09:16
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.

4 participants