 David KayaandCopilot
|
689b335220
|
feat: category-based approval for runtime tools
Replace 20+ individual runtime tool toggles with 5 permission categories
(read, write, shell, web_fetch, store_memory) matching how Copilot CLI,
Cline, and other coding agents handle approvals.
- Add resolveApprovalToolKey() to map permission kinds to category IDs
- Simplify fallbackRuntimeApprovalTools to 5 categories
- Thread alwaysApprove through PendingApprovalHandle → sidecar resolve
- Update ApprovalBanner to use category labels for Always Approve button
- Update ResolveApprovalCommand contract with alwaysApprove field
- Update tests for category-based model
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
2026-03-27 21:36:27 +01:00 |
|
 David KayaandCopilot
|
3ec69d990b
|
feat: enable 'always approve for session' for runtime tools
Runtime tool permission requests (read, write, shell, store_memory) now
resolve stable approval names via fallback in the sidecar approval
coordinator, enabling the 'Always approve' button and session-level
auto-approval for built-in tools.
Backend:
- Add fallback tool names for PermissionRequestRead (read),
PermissionRequestWrite (write), PermissionRequestShell (shell),
and PermissionRequestMemory (store_memory)
- Add autoApprovedToolName parameter to RequiresToolCallApproval
for permission-kind-based session approval matching
- Track tool.execution_start events in ToolNamesByCallId for
supplementary exact-name resolution
Frontend:
- Use approval.toolName ?? approval.permissionKind as fallback key
in resolveSessionApproval and ApprovalBanner
- Add shell, read, write permission-kind entries to builtin approval
tool definitions so pruning preserves session overrides
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
2026-03-27 21:20:14 +01:00 |
|