aaif-goose / aaif-goose/goose

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

未关闭
#12,007 0 条评论 0 个 reaction 已指派 1 人 已被 @alexhancock 认领 在 GitHub 查看
主要语言
Rust
星标
54.2k
派生
6.2k
平均合并
3 天 4 小时
30 天内合并 PR
240

描述

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.

贡献指南

打开贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

领域
ai-infra-agents, devtools
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
活跃
描述清晰度
描述清楚
新手友好度
65/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。