fix: check-vgv-cli auto-approves Very Good CLI tool calls in a form the directory refuses

Đang mở
#212 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
shell
Lĩnh vực
devtools

Hướng nghiên cứu

Read hooks/hooks.json, check-vgv-cli.sh, and the rationale in issue #109 to compare the two proposed behaviors. Choose whether to retain auto-approval or deny only, then update the hook tests and the descriptions in plugin/README.md and AGENTS.md. Done when Validate accepts the hook, tests cover the selected behavior, and CI/CD checks pass.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug p1

Description

Validate refuses the version with "Hook can approve tool calls or change their input" on the PreToolUse hook in hooks/hooks.json. check-vgv-cli.sh returns a PreToolUse allow decision for Very Good CLI tools. We added it in #109 so the MCP tool never dead-ends when it is not on permissions.allow.

The portal accepts an approving hook only if it prints its JSON answer whole with one command, has no backslash escapes or printf % conversions, keeps allow out of any other quoted value, and sends everything else to stderr without 2>&1.

Two options:

  • Rewrite the hook so it meets those rules, and keep the auto-approve.
  • Drop the allow and only deny. Users then approve Very Good CLI tools once, like any other MCP tool.

Requirements

  • Decide between the two options above
  • Validate no longer reports "Hook can approve tool calls or change their input"
  • check-vgv-cli tests cover the new behavior
  • plugin/README.md and AGENTS.md describe the hook as it now behaves
  • All CI/CD checks are passing

Additional Context

  • #109 explains why the hook approves today.
Ngôn ngữ chính
Shell
Star
180
Fork
25
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
17

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của VeryGoodOpenSource/vgv-ai-flutter-plugin

Tất cả issue của VeryGoodOpenSource/vgv-ai-flutter-plugin

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.