Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix: parse option-assigned paths in approval scope check

8 months ago

11adce3
Authored
mweinbach2/14/2026, 4:48:24 PM
Check --option=/path and -o=/path forms against allowedRoots so commands
like ls --directory=/etc are classified as outside_allowed_scope when
the path is outside allowed roots. Addresses Codex PR review feedback.

Co-authored-by: Cursor <cursoragent@cursor.com>

Parent0e70a60

2 files changed
  • src/utils/approval.ts+27−8
  • test/approval.test.ts+21−0