aaif-goose / aaif-goose/goose

Feature request: a hook event for "agent is awaiting user input" (Notification-equivalent)

Abierto
#12,007 0 comentarios 0 reacciones 1 asignado Reclamado por @alexhancock Ver en GitHub
Lenguaje dominante
Rust
Estrellas
54.2k
Forks
6.2k
Merge medio
3 d 4 h
PR fusionados (30 d)
240

Descripción

Goose's command-based hooks (`SessionStart`/`End`, `Stop`, `UserPromptSubmit`, `PreToolUse`/`PostToolUse`, …) make it easy for an external command to observe the agent. `Stop` gives turn-end, but there's no event that fires specifically when goose **pauses awaiting a human decision** — a tool-approval prompt or an interactive question (the "your turn" state). Claude Code exposes this as its `Notification` hook, and the Open Plugins hooks spec goose follows has room for it.

**Request:** add a `Notification`-style command hook that fires when goose blocks pending user input, with a payload noting the reason (e.g. `tool_permission`, `prompt`).

**Why:** external status tools — status bars and remote monitors — want a single reliable "waiting on you" signal rather than inferring it from `PreToolUse` (which fires on every tool, not on the block itself). Benefits any observer.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Look at the existing command-based hooks in the codebase, likely in a file like `src/hooks.rs` or `src/agent/events.rs`. Find where the agent transitions to a 'waiting for user input' state, such as after a tool permission request or an interactive prompt. Add a new hook variant and trigger it at that point, ensuring the payload includes the reason. Check test files for existing hook tests to understand the pattern and add a test for the new event.

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

Evaluación

Área
ai-infra-agents, devtools
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Activo
Claridad
Bien especificado
Aptitud para principiantes
65/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.