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

Abierto
#212 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
shell
Área
devtools

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Shell
Estrellas
180
Forks
25
Merge medio
1 d 7 h
PR fusionados (30 d)
17

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de VeryGoodOpenSource/vgv-ai-flutter-plugin

Todos los issues de VeryGoodOpenSource/vgv-ai-flutter-plugin

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.