Implement edit auto-approve patterns for agent host sessions
Read the chat.tools.edits.autoApprove setting and push it to agent host sessions via the new editAutoApprovePatterns protocol field. The agent host server auto-approves file write permission requests matching the patterns, eliminating the need for user confirmation on safe edits. Client side: - Pass editAutoApprovePatterns in createSession for race-free initialization - Dispatch session/editAutoApprovePatternsChanged on setting changes and reconnection - Listen for config changes and redispatch Server side: - Apply patterns at session creation in AgentService and AgentSideEffects - Intercept tool_ready write events in registerProgressListener - Glob-match file paths against patterns, auto-approve or defer to confirmation - Default patterns match VS Code setting defaults Protocol mirror synced from microsoft/agent-host-protocol. Includes unit tests (4), integration tests (3), and client dispatch tests (2).
R
Rob Lourens committed
e71469a75ca1cdaf94309902834da88991153bf0
Parent: dd064da