Skip to content

agentHost: settings followups#311954

Merged
connor4312 merged 2 commits intomainfrom
connor4312/ah-session-settings-2
Apr 22, 2026
Merged

agentHost: settings followups#311954
connor4312 merged 2 commits intomainfrom
connor4312/ah-session-settings-2

Conversation

@connor4312
Copy link
Copy Markdown
Member

  • Unrelated: fix local agent host being broken on main following some overnight cleanups
  • Register a JSON schema for agent session settings (only when they're open since it has a perf cost)
  • When there are multiple custom approval buttons, show them in a dropdown similar to other tool calls.

- Unrelated: fix local agent host being broken on main following
  some overnight cleanups
- Register a JSON schema for agent session settings (only when they're
  open since it has a perf cost)
- When there are multiple custom approval buttons, show them in a
  dropdown similar to other tool calls.
Copilot AI review requested due to automatic review settings April 22, 2026 17:26
@connor4312 connor4312 enabled auto-merge (squash) April 22, 2026 17:26
@connor4312 connor4312 self-assigned this Apr 22, 2026
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 improves the agent-host experience across the Sessions window and chat tool confirmations by restoring local agent-host wiring, adding lazy JSON schema registration for per-session settings files, and improving custom confirmation UX when multiple approval options exist.

Changes:

  • Update tool confirmation rendering to group custom confirmation options into primary buttons with dropdowns.
  • Add lazy, per-session JSON schema registration for agent-session-settings://… documents and keep schemas updated as session config changes.
  • Fix Sessions window local agent-host by explicitly registering the agent host + terminal chat contributions.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.ts Groups custom confirmation options into approve/deny buttons with dropdowns.
src/vs/sessions/contrib/agentHost/test/browser/agentSessionSettingsFileSystemProvider.test.ts Updates test harness to account for schema registrar + provider API additions.
src/vs/sessions/contrib/agentHost/browser/localAgentHost.contribution.ts Registers agent-host workbench contributions for the Sessions window.
src/vs/sessions/contrib/agentHost/browser/agentSessionSettingsFileSystemProvider.ts Adds schema conversion, schema registration/refresh logic, and injects schema registrar into FS provider.
src/vs/sessions/contrib/agentHost/browser/agentSessionSettings.contribution.ts Instantiates and wires the schema registrar into the FS provider registration.

Copilot's findings

  • Files reviewed: 5/5 changed files
  • Comments generated: 5

roblourens
roblourens previously approved these changes Apr 22, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: a14d0306 Current: 489e8a7c

Changed (2)

editor/inlineCompletions/other/JumpToHint/Dark
Before After
before after
agentSessionsViewer/NeedsInput/Light
Before After
before after

@connor4312 connor4312 merged commit f3d5d14 into main Apr 22, 2026
26 checks passed
@connor4312 connor4312 deleted the connor4312/ah-session-settings-2 branch April 22, 2026 18:01
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 22, 2026
roblourens added a commit that referenced this pull request Apr 22, 2026
These two registerWorkbenchContribution2 calls landed on origin/main in
f3d5d14 (#311954, 'agentHost: settings followups') after our last
merge from origin/main. Without them the Agents app never instantiates
AgentHostContribution, so authentication never runs and the local agent
host stays in the loading state forever.

(Written by Copilot)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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