Skip to content

sessions: fix missing remote toggle for local agent host, duplicate permissions setting#312198

Merged
connor4312 merged 2 commits intomainfrom
connor4312/ah-fix-actions
Apr 23, 2026
Merged

sessions: fix missing remote toggle for local agent host, duplicate permissions setting#312198
connor4312 merged 2 commits intomainfrom
connor4312/ah-fix-actions

Conversation

@connor4312
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 23, 2026 18:56
@connor4312 connor4312 enabled auto-merge April 23, 2026 18:56
@connor4312 connor4312 self-assigned this Apr 23, 2026
The import was declared but never used in the file, causing a TS6133 compilation error.
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

Adjusts chat input secondary-toolbar actions to better match agent session types, ensuring the “Allow Remote Connections” toggle appears for local agent-host sessions and reducing redundant permission UI in locked agent sessions.

Changes:

  • Updates the permission picker visibility condition to only show when unlocked or locked to specific providers (Background/Claude).
  • Broadens the “Allow Remote Connections” toggle visibility to any agent-host-* locked session via regex.
  • Refines context-key driven UI gating for sessions-specific toolbar actions.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.ts Narrows when the permission picker is shown in the chat input secondary toolbar based on locked session provider.
src/vs/sessions/contrib/tunnelHost/electron-browser/tunnelHost.contribution.ts Makes the remote-connections toggle appear for all agent-host-* sessions instead of only agent-host-copilot.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 1

@connor4312 connor4312 merged commit ad4cb84 into main Apr 23, 2026
40 of 41 checks passed
@connor4312 connor4312 deleted the connor4312/ah-fix-actions branch April 23, 2026 19:47
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 23, 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