mirror of
https://github.com/github/awesome-copilot.git
synced 2026-03-20 08:05:12 +00:00
Update .NET Copilot SDK recipes for explicit permission (fix for SDK v0.1.28) (#1033)
* Update .NET Copilot SDK recipes for explicit permission handling (fix breaking change in SDK v0.1.28) * Update .NET Copilot SDK recipes for explicit permission handling
This commit is contained in:
@@ -64,6 +64,7 @@ await using var session = await client.CreateSessionAsync(new SessionConfig
|
||||
{
|
||||
Model = "claude-opus-4.6",
|
||||
Streaming = true,
|
||||
OnPermissionRequest = PermissionHandler.ApproveAll,
|
||||
McpServers = new Dictionary<string, object>()
|
||||
{
|
||||
["playwright"] =
|
||||
@@ -207,6 +208,7 @@ if (generateTests == "y" || generateTests == "yes")
|
||||
The recipe configures a local MCP server that runs alongside the session:
|
||||
|
||||
```csharp
|
||||
OnPermissionRequest = PermissionHandler.ApproveAll,
|
||||
McpServers = new Dictionary<string, object>()
|
||||
{
|
||||
["playwright"] = new McpLocalServerConfig
|
||||
|
||||
Reference in New Issue
Block a user