Skip to content

Agents: Worktree pulling a PR down doesn't update Changes panel state #315545

@digitarald

Description

@digitarald

Type: Bug

Window: Agents

  • Started a worktree to fix a PR
  • PR was updated, and pushed
  • 🐛 Sidepanel was still showing Merge Changes, other options to Create PR, clearly unaware that it the current branch has a PR
Image

VS Code version: Code - Insiders 1.120.0-insider (Universal) (3b8129f, 2026-05-08T16:49:14Z)
OS version: Darwin arm64 25.4.0
Modes:

Prompt Details
Trace: CodeSearchRepoTracker::openGitRepo#16 success. Elapsed 0.36500000953674316
Debug: [detectPullRequestFromGitHubAPI] Querying GitHub API for PR on microsoft/agentrc, branch=digitarald/agents/version-upgrade-research-pr122
Warning: [ClaudeWorkspaceFolderService] No repository found at /Users/digitarald/Developer/firefox-main
Trace: [AskAgentProvider] Wrote agent file: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/ask-agent/Ask.agent.md
Trace: [PlanAgentProvider] Wrote agent file: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/plan-agent/Plan.agent.md
Debug: [FolderRepositoryManager+0] Fetch pull request category repo:microsoft/agentrc head:digitarald/agents/version-upgrade-research-pr122 is:pr
Trace: [GitHubOrgChatResourcesService] Cache directory does not exist: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/github/microsoft/instructions
Warning: [ClaudeWorkspaceFolderService] No repository found at /Users/digitarald/Developer/test-all
Trace: [ExploreAgentProvider] Wrote agent file: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/explore-agent/Explore.agent.md
Trace: CodeSearchChunkSearch::openGitRepo#16 started
Trace: CodeSearchChunkSearch.openGitRepo(file:///Users/digitarald/Developer/agentrc)
Trace: CodeSearchChunkSearch.openGitRepo(file:///Users/digitarald/Developer/agentrc): skipping, not relevant to workspace
Trace: CodeSearchChunkSearch::openGitRepo#16 success. Elapsed 0.049208998680114746
Trace: [GitHubOrgChatResourcesService] Cache directory does not exist: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/github/microsoft/instructions
Trace: [AskAgentProvider] Wrote agent file: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/ask-agent/Ask.agent.md
Trace: [GitHubOrgChatResourcesService] Cache directory does not exist: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/github/microsoft/agents
Trace: [ExploreAgentProvider] Wrote agent file: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/explore-agent/Explore.agent.md
Trace: [PlanAgentProvider] Wrote agent file: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/plan-agent/Plan.agent.md
Trace: [GitHubOrgChatResourcesService] Cache directory does not exist: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/github/microsoft/instructions
Trace: [AskAgentProvider] Wrote agent file: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/ask-agent/Ask.agent.md
Trace: [ExploreAgentProvider] Wrote agent file: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/explore-agent/Explore.agent.md
Trace: [GitHubOrgChatResourcesService] Cache directory does not exist: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/github/microsoft/instructions
Trace: [GitHubOrgChatResourcesService] Cache directory does not exist: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/github/microsoft/instructions
Trace: [GitHubOrgChatResourcesService] Cache directory does not exist: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/github/microsoft/agents
Trace: [PlanAgentProvider] Wrote agent file: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/plan-agent/Plan.agent.md
Trace: [AskAgentProvider] Wrote agent file: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/ask-agent/Ask.agent.md
Trace: [ExploreAgentProvider] Wrote agent file: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/explore-agent/Explore.agent.md
Trace: [GitHubOrgChatResourcesService] Cache directory does not exist: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/github/microsoft/instructions
Trace: [GitHubOrgChatResourcesService] Cache directory does not exist: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/github/microsoft/agents
Trace: [PlanAgentProvider] Wrote agent file: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/plan-agent/Plan.agent.md
Trace: [AskAgentProvider] Wrote agent file: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/ask-agent/Ask.agent.md
Trace: [ExploreAgentProvider] Wrote agent file: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/explore-agent/Explore.agent.md
Trace: [GitHubOrgChatResourcesService] Cache directory does not exist: vscode-userdata:/Users/digitarald/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/github.copilot-chat/github/microsoft/instructions
Debug: [RateLimit] GraphQL rate limit remaining: 6796, query: 
		query FetchCopilotAgentPullRequests($searchQuery: String!, $first: Int!, $after: String) {
			search(query: $searchQuery, type: ISSUE, first: $first, after: $after) {
				nodes {
					... on PullRequest {
						number
						id
						fullDatabaseId
						headRefOid
						baseRefOid
						title
						state
						isDraft
						url
						createdAt
						updatedAt
						additions
						deletions
						headRefName
						baseRefName
						files {
							totalCount
						}
						author {
							login
						}
						repository {
							owner {
								login
							}
							name
						}
						body
					}
				}
				pageInfo {
					hasNextPage
					endCursor
				}
				issueCount
			}
		}

Debug: [GitHubAPI] FetchCopilotAgentPullRequests: host=https://api.github.com, searchQuery=repo:microsoft/agentrc head:digitarald/agents/version-upgrade-research-pr122 is:pr, resultCount=0, errors=undefined
Debug: [detectPullRequestFromGitHubAPI] No PR found for microsoft/agentrc, branch=digitarald/agents/version-upgrade-research-pr122
Debug: [CopilotCLIChatSessionParticipant] PR detection retry for 22b36d72-551d-4afb-a0df-01fc58e6a1e6: attempt 2/5, waiting 4000ms
Debug: [detectPullRequestFromGitHubAPI] Querying GitHub API for PR on microsoft/agentrc, branch=digitarald/agents/version-upgrade-research-pr122
Debug: [FolderRepositoryManager+0] Fetch pull request category repo:microsoft/agentrc head:digitarald/agents/version-upgrade-research-pr122 is:pr
Debug: [RateLimit] GraphQL rate limit remaining: 6794, query:
query FetchCopilotAgentPullRequests($searchQuery: String!, $first: Int!, $after: String) {
search(query: $searchQuery, type: ISSUE, first: $first, after: $after) {
nodes {
... on PullRequest {
number
id
fullDatabaseId
headRefOid
baseRefOid
title
state
isDraft
url
createdAt
updatedAt
additions
deletions
headRefName
baseRefName
files {
totalCount
}
author {
login
}
repository {
owner {
login
}
name
}
body
}
}
pageInfo {
hasNextPage
endCursor
}
issueCount
}
}

Debug: [GitHubAPI] FetchCopilotAgentPullRequests: host=https://api.github.com, searchQuery=repo:microsoft/agentrc head:digitarald/agents/version-upgrade-research-pr122 is:pr, resultCount=0, errors=undefined
Debug: [detectPullRequestFromGitHubAPI] No PR found for microsoft/agentrc, branch=digitarald/agents/version-upgrade-research-pr122
Debug: [CopilotCLIChatSessionParticipant] PR detection retry for 22b36d72-551d-4afb-a0df-01fc58e6a1e6: attempt 3/5, waiting 8000ms
Debug: [detectPullRequestFromGitHubAPI] Querying GitHub API for PR on microsoft/agentrc, branch=digitarald/agents/version-upgrade-research-pr122
Debug: [FolderRepositoryManager+0] Fetch pull request category repo:microsoft/agentrc head:digitarald/agents/version-upgrade-research-pr122 is:pr
Debug: [RateLimit] GraphQL rate limit remaining: 6793, query:
query FetchCopilotAgentPullRequests($searchQuery: String!, $first: Int!, $after: String) {
search(query: $searchQuery, type: ISSUE, first: $first, after: $after) {
nodes {
... on PullRequest {
number
id
fullDatabaseId
headRefOid
baseRefOid
title
state
isDraft
url
createdAt
updatedAt
additions
deletions
headRefName
baseRefName
files {
totalCount
}
author {
login
}
repository {
owner {
login
}
name
}
body
}
}
pageInfo {
hasNextPage
endCursor
}
issueCount
}
}

Debug: [GitHubAPI] FetchCopilotAgentPullRequests: host=https://api.github.com, searchQuery=repo:microsoft/agentrc head:digitarald/agents/version-upgrade-research-pr122 is:pr, resultCount=0, errors=undefined
Debug: [detectPullRequestFromGitHubAPI] No PR found for microsoft/agentrc, branch=digitarald/agents/version-upgrade-research-pr122
Debug: [CopilotCLIChatSessionParticipant] PR detection retry for 22b36d72-551d-4afb-a0df-01fc58e6a1e6: attempt 4/5, waiting 16000ms
Debug: Related Information: Index not loaded yet triggering background calculation, returning 0ms

Request IDs
90d42e3f-853e-455a-84db-f3b99812b71e
7619bb1b-4e88-4420-9da3-f2cc13297729
cb009d7f-618b-44b4-80ed-bbdb37ec3da8
d58ede55-d768-4795-bc7f-b9894160921d
d1ce071f-3767-40c7-8fe7-1f289c3c1367
5872618c-1e8c-4753-ba10-80a8f84d1a87
2eca3bcf-991b-4ca0-9d62-50954671d229
eac2dbbd-20aa-4a89-ae82-2aab1865b87a
d44b4373-d8c1-44c2-86f6-b38a39b3277e
ac488f13-1477-404a-acb7-f1484d5bcef0
748f3f3c-06f0-4d3b-bc7c-d6b43ec2fe84
eba34228-be34-4f50-a8d9-3cccb651003d
7acab5b8-f6a3-4db6-84e6-5432fe191da9
1b66f79d-14db-439f-bb34-126249b7fe57
04a48f8a-29a0-4d8f-89f7-d2f3240bcbed
aa926701-d0b1-4692-b20c-dfc2f11701c1
8d3fca95-867c-4fb2-85d2-79ac1e8061ef
e79ad87b-d716-4228-8c61-9f33db20bb5b
83a52712-6de2-49a7-84e4-f770089a385b
abb44380-7b74-4696-bd8e-e081aef3ac1a
342495a0-95f4-4ff8-adea-c84136876a3c
df697d02-af8c-470c-91b3-fb6a7dd161c6
dad2934b-209e-440e-a271-cf57250adc5f
706508bc-31ac-40db-a88a-26874b314917
dd748c69-76d2-4de3-bbbd-681dd01f82ef
016e9c02-ff3b-4834-9203-fb4e48063fe6
dc65bfc3-d530-4d5a-be8d-60d5a5186001
4428b730-278b-485e-85a9-2f75814da293
10516e99-1277-464d-94be-bb3f4d95c319
86d2e305-5130-48e4-b29d-ea64a65ccd25
3ea23529-7e7b-497a-b1f1-e784efa758fa
2e333381-b142-4130-8fd4-672f42340dba
b03ac6bc-e7ea-4cc9-acd6-7b22b974178a
27204fab-65a6-498d-af18-ade7c40dfe59
3b5c3a03-d82d-4442-acd2-36cbfc7e184f
8f7b2a45-8fc1-4880-8931-3b5cf2d8fffd
2a1c6daa-0f5a-49ce-a129-05be7d00f169
4510623c-f26a-4f21-92de-e75602a4bf61
05159bc8-e48d-4fac-94d3-ad1044ebfc6c
ff4d92c0-ba41-41bc-88c1-efe78b90708e
c28c9550-fec0-4b78-a9fc-fb9e89de7e3e
8ceb95f4-d615-4e9f-86ce-8444cd71a137
1f081d5f-2987-44ff-9452-4f8c683fbf13
fe78e79c-c3bb-44b3-a27c-19fd76eaab63
4511b9ad-8c97-48a8-a463-43cd150cc423
06393139-7f73-44ec-b2c2-5fe855de6ae0
ebeb15e0-4803-4830-9ff6-17f682ee8aa7
42474af1-6fdc-4f14-bdfc-42d9ed7a74c7
ddf4baf8-28a2-4607-9c21-613b0e9632ea
System Info
Item Value
CPUs Apple M4 Pro (14 x 2400)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x106b [Google Inc. (Apple)], DEVICE=0x0000 [ANGLE (Apple, ANGLE Metal Renderer: Apple M4 Pro, Version 26.4.1 (Build 25E253))], DRIVER_VENDOR=Apple, DRIVER_VERSION=26.4.1 ACTIVE
Machine model name: Mac
Machine model version: 16.7
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 13, 10, 7
Memory (System) 24.00GB (0.17GB free)
Process Argv --log trace --enable-proposed-api digitarald.agent-memory --enable-proposed-api digitarald.agent-handoff --enable-proposed-api digitarald.hello-skill --crash-reporter-id 9b206efe-c338-4f34-baff-2aab1c48a82e
Screen Reader yes
VM 0%

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions