Skip to content

Tool Approval Management: the approval cannot be selected again after being deselected.#308987

Merged
alexr00 merged 2 commits intomainfrom
alexr00/issue306416
Apr 10, 2026
Merged

Tool Approval Management: the approval cannot be selected again after being deselected.#308987
alexr00 merged 2 commits intomainfrom
alexr00/issue306416

Conversation

@alexr00
Copy link
Copy Markdown
Member

@alexr00 alexr00 commented Apr 10, 2026

Fixes #306416

Copilot AI review requested due to automatic review settings April 10, 2026 10:07
@alexr00 alexr00 enabled auto-merge (squash) April 10, 2026 10:07
@alexr00 alexr00 self-assigned this Apr 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 10, 2026

Screenshot Changes

Base: 8b5518b0 Current: 3d9780ac

Changed (1)

agentSessionsViewer/ApprovalRowLongLabel/Light
Before After
before after

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

This PR targets the “Manage Tool Approval” quick tree in chat, aiming to address an interaction where a tool approval could not be selected again after being deselected (Issue #306416).

Changes:

  • Adds filtering to omit tool nodes that are unchecked and have no children in the server-scoped tool list.
  • Adds the same filtering to omit unchecked/no-children tool nodes in the non-server tool list.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.ts Filters out unchecked tools without children from the quick tree items (both server and non-server sections).

Copilot's findings

Comments suppressed due to low confidence (1)

src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.ts:873

  • Same issue here: skipping tools when checked === false && toolChildren.length === 0 hides tools that are eligible for approvals but currently not approved. This breaks the ability to (re)enable approvals from the "Manage Tool Approval" quick tree because the item is removed as soon as it is unchecked.
				// Skip tools with no active approvals and no children
				if (checked === false && toolChildren.length === 0) {
					continue;
				}
  • Files reviewed: 1/1 changed files
  • Comments generated: 1

@alexr00 alexr00 marked this pull request as draft April 10, 2026 10:30
auto-merge was automatically disabled April 10, 2026 10:30

Pull request was converted to draft

@alexr00 alexr00 marked this pull request as ready for review April 10, 2026 10:57
@alexr00 alexr00 merged commit 2e96f10 into main Apr 10, 2026
26 checks passed
@alexr00 alexr00 deleted the alexr00/issue306416 branch April 10, 2026 12:09
@vs-code-engineering vs-code-engineering bot added this to the 1.116.0 milestone Apr 10, 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.

Tool Approval Management: the approval cannot be selected again after being deselected.

3 participants