Skip to content

Agents - Fix branch changeset description to reflect actual comparison ref - #342128

Merged
Ladislau Szomoru (lszomoru) merged 2 commits into
mainfrom
lszomoru/agents/fix-branch-changeset-description
Oct 16, 2026
Merged

Ladislau Szomoru (lszomoru) merged 2 commits into
mainfrom
lszomoru/agents/fix-branch-changeset-description

Conversation

@lszomoru

Copy link
Copy Markdown
Member

This pull request updates the branch changeset description in the picker to accurately reflect the comparison reference used in the diff computation.

Changes made:

  • Modified the formatBranchChangesetDescription function to use the actual comparison ref instead of inferring it from the base or upstream metadata.
  • Ensured that the description shows:
    • main → origin/main when that remote-tracking ref is used.
    • The local base or HEAD when Git falls back to those.
    • Only the current branch until the comparison ref is known.
  • Removed unnecessary API, callback, cache, and computation changes to simplify the implementation.

Validation:

  • 160 tests passed, with 30 pre-existing pending.
  • The client build and targeted linting passed successfully.

Copilot AI balanced review requested due to automatic review settings October 16, 2026 17:46
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 33157b0a Current: 312aa849

Changed (1)

sessions/sessionActivityBar/sessionActivityBar/SubmenuOpen/Light
Before After
before after

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.

🟡 Changes recommended

The description still infers the comparison target and can disagree with Git’s actual fallback.

1 open finding
What changed in this PR

Updates the Agent Host branch changeset picker description to prefer remote-tracking metadata for the default base branch.

Changes:

  • Adjusts description formatting and removes the upstream fallback.
  • Adds formatter and catalogue description tests.
File Description
src/​vs/​platform/​agentHost/​test/​common/​changesetUri.test.ts Adds branch description and picker tests.
src/​vs/​platform/​agentHost/​common/​changesetUri.ts Revises comparison-target label selection.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@lszomoru
Ladislau Szomoru (lszomoru) merged commit a7e1fc0 into main Oct 16, 2026
49 checks passed
@lszomoru
Ladislau Szomoru (lszomoru) deleted the lszomoru/agents/fix-branch-changeset-description branch October 16, 2026 20:38
@vs-code-engineering vs-code-engineering Bot added this to the 1.143.0 milestone Oct 16, 2026
Ross Wollman (rwoll) added a commit that referenced this pull request Oct 16, 2026
Unblock validation after merging main: consolidate the branch changeset helper imports and remove a duplicate gitService fixture property introduced by #342128. No runtime behavior changes.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>
Sandeep Somavarapu (sandy081) added a commit that referenced this pull request Oct 16, 2026
Fixes TS1117 after #341455 and #342128 both added the same shorthand property to the test fixture.

Co-authored-by: Copilot <[email protected]>
Sandeep Somavarapu (sandy081) added a commit that referenced this pull request Oct 16, 2026
Fixes the duplicate-import lint error after #341455 and #342128 both imported from the same module.

Co-authored-by: Copilot <[email protected]>
Ross Wollman (rwoll) added a commit that referenced this pull request Oct 16, 2026
* chat: Fix premature organization settings timeouts

Keep slow Copilot managed-settings queries pending, show delayed progress, and offer retry without weakening policy enforcement. Preserve cancellation and runtime recovery across chat creation and model changes.

Fixes #342123.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>

* chat: Initialize managed settings after injected services

Construct the resolver and its progress event in the CopilotAgent constructor so native class-field initialization never reads the log service before it is assigned. This fixes the Compile & Hygiene define-class-fields check.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>

* build: Remove duplicate entries from branch changeset update

Unblock validation after merging main: consolidate the branch changeset helper imports and remove a duplicate gitService fixture property introduced by #342128. No runtime behavior changes.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>

* chat: Preserve policy retries and cancellation across setup

Cancel queued agent selection alongside model selection, release generation listeners when policy queries time out, and preserve retryable policy errors across JSON-RPC and IPC before the first turn starts. Add paired-selection, listener cleanup, and first-send Retry regressions.

🤖 Authored with GitHub Copilot on behalf of @rwoll.

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Sandeep Somavarapu (sandy081) added a commit that referenced this pull request Oct 16, 2026
…hown (#342117)

* sessions: close side pane on last tab close when multiple chats are shown

Closing the last editor tab while several chats of the same session are shown in the per-chat layout left an empty side pane open. The last-editor-close guards only need to defer to another visible session, since chats of the same session share its main editor part.

Co-authored-by: Copilot <[email protected]>

* sessions: ignore mounted sessions that are not shown on last tab close

In the per-chat layout a maximized chat can leave other sessions mounted but not shown; only block the last-editor close when another session's chat is actually shown.

Co-authored-by: Copilot <[email protected]>

* agentHost: remove duplicate gitService property in git state test

Fixes TS1117 after #341455 and #342128 both added the same shorthand property to the test fixture.

Co-authored-by: Copilot <[email protected]>

* agentHost: merge duplicate agentHostBranchChangesetScope import

Fixes the duplicate-import lint error after #341455 and #342128 both imported from the same module.

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
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