Skip to content

1.0.52

Choose a tag to compare

@morapelker morapelker released this 04 Mar 14:30
· 2803 commits to main since this release

What's Changed

Security permissions: multi-pattern allowlist, pipe splitting, and already-approved indicators (#97)

  • Multi-pattern command approval: Extended the approval flow to support an array of patterns (patterns[]) alongside the existing single pattern, enabling per-sub-command allowlist entries for compound bash commands (chained with &&, ||, ;, or |)
  • Pipe operator splitting: Updated CommandFilterService.splitBashChain() and CommandDisplay to correctly split on pipe (|) operators, with || matched first to avoid mis-splitting the OR operator
  • Already-approved sub-command detection: The CommandApprovalPrompt now checks each sub-command against the current allowlist and displays an "Already allowed" badge with dimmed, non-interactive UI for sub-commands that are already covered — those patterns are skipped when saving
  • Shared permissionUtils: Extracted glob/regex pattern matching logic into a new src/renderer/src/lib/permissionUtils.ts utility, used by both CommandApprovalPrompt and PermissionPrompt for consistent allowlist matching
  • Enhanced PermissionPrompt: Added allowlist-aware pattern suggestions and "Already allowed" indicators to the non-command (tool) permission prompt as well
  • Settings & store updates: useSettingsStore now exposes commandFilter for reactive allowlist access; useCommandApprovalStore includes the new patterns field; SettingsSecurity UI updated for the new flow
  • IPC & backend plumbing: opencode-handlers and ClaudeCodeImplementer updated to pass through the patterns array on approval replies