Update GitHub Copilot integration to SDK v0.3.0 and CLI v1.0.37#218
Update GitHub Copilot integration to SDK v0.3.0 and CLI v1.0.37#218hendrikmennen merged 3 commits intomainfrom
Conversation
Agent-Logs-Url: https://github.com/one-ware/OneWare/sessions/ac9ad328-a035-4d35-b316-1e58064a4bf2 Co-authored-by: hendrikmennen <25281882+hendrikmennen@users.noreply.github.com>
|
@copilot not sufficient, it is currently not able to edit files, asking to execute a "hook" and approve does not seem to count |
…nalCommand Agent-Logs-Url: https://github.com/one-ware/OneWare/sessions/f19ceae6-c57f-4fc7-bf4e-43d06c4f6502 Co-authored-by: hendrikmennen <25281882+hendrikmennen@users.noreply.github.com>
You're right — in SDK v0.3.0 the Removed the redundant SDK-level hook in 116832b. The host already gates |
Tracks the latest Copilot SDK and Copilot CLI releases, picking up the v0.2.0 / v0.3.0 SDK breaking changes (typed permission kinds, polymorphic
PermissionRequest, default sub-agent streaming).Version bumps
GitHub.Copilot.SDK:0.1.29→0.3.00.0.418→1.0.37(asset URLs unchanged in shape)CopilotChatServiceadaptationsPermissionRequestResult.Kindis now a typedPermissionRequestResultKindinstead of a free-form string:PermissionRequestis now polymorphic. The base type no longer carriesToolCallId/ExtensionData; replaced dictionary-based extraction with pattern matching on the typed subclasses (PermissionRequestShell/Write/Read/Url/Mcp/CustomTool/Memory/Hook), surfacing richer per-kind context (command, file, intention, MCP server/tool, memory subject/fact, hook message) and per-kind prompt titles in the approval dialog.IsCustomToolPermissionRequestusesis PermissionRequestCustomToolinstead of string comparison.IncludeSubAgentStreamingEvents = falseonSessionConfig/ResumeSessionConfigto preserve root-agent-only streaming; the SDK now emits sub-agent deltas by default, which would interleave in the UI since there is noagentId-aware renderer.OnPreToolUsehook that previously gatededitFile/runTerminalCommand. In SDK v0.1.x that hook surfaced as a tool-named permission request whose approval unblocked the tool, but in v0.3.0 the samePermissionDecision = "ask"output is now surfaced as aPermissionRequestHookwhose approval gates the hook rather than the underlying tool — leaving file edits blocked even after the user approves. The host already gates these tools through its own permission infrastructure (RegisteredOneWareAiFunction.InvokeCoreAsync→AiFunctionProvider.EnsurePermissionAsync→FunctionPermissionRequested→ChatViewModel), so removing the redundant SDK-level hook restores file editing and terminal commands while preserving the user-confirmation prompt.NormalizeExtensionValue/AddExtensionValuehelpers and theSystem.Text.Jsonimport.Note
The issue links to
github/copilot-sdk"starting from v2.0", but that repo's releases top out atv0.3.0. Treated as a typo and updated to the latest stablev0.3.0.