Skip to content

Agents: refine pull request input banners - #333428

Merged
Benjamin Christopher Simmonds (benibenj) merged 3 commits into
mainfrom
benibenj/agents/input-banner-follow-up
Aug 31, 2026
Merged

Agents: refine pull request input banners#333428
Benjamin Christopher Simmonds (benibenj) merged 3 commits into
mainfrom
benibenj/agents/input-banner-follow-up

Conversation

@benibenj

Copy link
Copy Markdown
Contributor

Summary

  • simplify pull request banners to one combined split action, generic Reveal for single-condition banners, and restore Fix Checks wording
  • show PR numbers only for multi-PR sessions and preserve intrinsic action width while descriptive text ellipsizes first
  • address follow-up review feedback for PR review loading, legacy feedback attribution, unknown secondary PR state, action freshness, accessibility localization, and test coverage

Follow-up to #333189.

Test plan

  • focused Sessions input-banner, feedback, code-review, GitHub model, and provider unit suites
  • component fixtures: CombinedNarrow, CommentsNarrow, MultiplePullRequests, and SessionChatPills_HorizontalOverflow in light/dark themes
  • measured split wrapper/parts at 20px, action flex-shrink 0, and text ellipsis behavior

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings August 30, 2026 20:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

Review tier: Balanced
Findings: None

What changed in this PR

Refines Agents Window pull request banners while improving review-state resilience and feedback attribution.

Changes:

  • Consolidates banner actions and improves responsive/accessibility behavior.
  • Preserves current actions across refreshes and exposes partial review results.
  • Retains PR attribution and handles unknown PR icons safely.
File Description
sessionInputBannerWidget.test.ts Tests split actions and action freshness.
sessionInputBanners.test.ts Updates banner behavior assertions.
sessionInputBanners.fixture.ts Adds narrow and multi-PR fixtures.
sessionInputBannerWidget.ts Resolves actions against current state.
sessionInputBanners.ts Simplifies labels, references, and actions.
sessionInputBanners.css Preserves intrinsic action widths.
copilotChatSessionsProvider.ts Supplies the single-PR fallback icon.
localAgentHostSessionsProvider.test.ts Verifies unknown secondary PR state.
baseAgentHostSessionsProvider.ts Limits fallback icons to the first PR.
githubModels.test.ts Tests undefined icons in priority selection.
pullRequestIconStatus.ts Makes fallback icons optional.
pullRequestActions.ts Handles unknown icons in pills and pickers.
githubPullRequestReviewThreadsModel.ts Tracks initial refresh completion.
codeReviewService.test.ts Tests partially failed PR loading.
codeReviewService.ts Exposes healthy comments with incomplete PRs.
sessionsChatAccessibilityHelp.ts Updates localized banner guidance.
sessionEditorComments.test.ts Adapts review-state fixtures.
agentFeedbackService.test.ts Tests attribution backfilling.
agentFeedbackPRReviewSeeder.test.ts Tests legacy and incomplete snapshots.
agentFeedbackEditorWidget.test.ts Tests PR identity preservation.
nullAgentFeedbackService.contribution.ts Implements the new no-op API.
agentFeedbackService.ts Adds non-destructive attribution updates.
agentFeedbackPRReviewSeeder.ts Backfills and preserves PR-scoped mirrors.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: e3ce07e8 Current: e48fbff8

Changed (24)

sessions/inputBanners/sessionInputBanners/CIFailures/Dark
Before After
before after
sessions/inputBanners/sessionInputBanners/CIFailures/Light
Before After
before after
sessions/inputBanners/sessionInputBanners/CIFailuresLoading/Dark
Before After
before after
sessions/inputBanners/sessionInputBanners/CIFailuresLoading/Light
Before After
before after
sessions/inputBanners/sessionInputBanners/Comments/Dark
Before After
before after
sessions/inputBanners/sessionInputBanners/Comments/Light
Before After
before after
sessions/inputBanners/sessionInputBanners/CommentsLoading/Dark
Before After
before after
sessions/inputBanners/sessionInputBanners/CommentsLoading/Light
Before After
before after
sessions/inputBanners/sessionInputBanners/PRComments/Dark
Before After
before after
sessions/inputBanners/sessionInputBanners/PRComments/Light
Before After
before after
sessions/inputBanners/sessionInputBanners/AgentComments/Dark
Before After
before after
sessions/inputBanners/sessionInputBanners/AgentComments/Light
Before After
before after
sessions/inputBanners/sessionInputBanners/Both/Dark
Before After
before after
sessions/inputBanners/sessionInputBanners/Both/Light
Before After
before after
sessions/inputBanners/sessionInputBanners/MultiplePullRequests/Dark
Before After
before after
sessions/inputBanners/sessionInputBanners/MultiplePullRequests/Light
Before After
before after
sessions/inputBanners/sessionInputBanners/CombinedNarrow/Dark
Before After
before after
sessions/inputBanners/sessionInputBanners/CombinedNarrow/Light
Before After
before after
sessions/inputBanners/sessionInputBanners/LongTextEllipsis/Dark
Before After
before after
sessions/inputBanners/sessionInputBanners/LongTextEllipsis/Light
Before After
before after
sessions/sessionChatInputToolbar/SessionChatPills_DebugFakeData/Dark
Before After
before after
sessions/sessionChatInputToolbar/SessionChatPills_DebugFakeData/Light
Before After
before after
sessions/sessionChatInputToolbar/SessionChatPills_HorizontalOverflow/Dark
Before After
before after
sessions/sessionChatInputToolbar/SessionChatPills_HorizontalOverflow/Light
Before After
before after

1 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details.

Added (2)

sessions/inputBanners/sessionInputBanners/CommentsNarrow/Dark

current

sessions/inputBanners/sessionInputBanners/CommentsNarrow/Light

current

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@benibenj
Benjamin Christopher Simmonds (benibenj) merged commit bfafa1a into main Aug 31, 2026
37 checks passed
@benibenj
Benjamin Christopher Simmonds (benibenj) deleted the benibenj/agents/input-banner-follow-up branch August 31, 2026 06:54
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Aug 31, 2026
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.

3 participants