Skip to content

CodeBuddy 的 Notification hook (matchValue=permission_prompt) 未触发通知,CodeIsland 停留在 thinking 状态 #290

Description

@someBrown

问题描述

Notification 事件钩子配置 matchValue=permission_prompt 时,CodeBuddy 侧已 allowed=true 且钩子正常退出(exit code 0),但通知并未真正推送到 CodeIsland,导致 CodeIsland 界面一直停留在 thinking 状态,无法感知到权限提示(permission_prompt)。

复现相关日志(已脱敏)

[DEBUG] hooks: executeHooks event=Notification matchValue=permission_prompt
[DEBUG] hooks: Executing hook: /Users/xxx/.codeisland/codeisland-bridge --source codebuddy
[DEBUG] hooks: Hook input: {"session_id":"d2c1e015-9574-4d0d-a359-c167905b5c04","transcript_path":"xxx","cwd":"/Users/xxx/xxx","hook_event_name":"Notification","message":"needs your permission to use AskUserQuestion","notification_type":"permission_prompt","title":"CodeBuddy Code","agent_type":"cli","permission_mode":"default","client":"CLI","version":"2.127.3","generation_id":"d03e56dffa6f47a987a9d500f01f18f6","model":"hy3"}
[DEBUG] hooks: Hook exited with code 0, command: /Users/xxx/.codeisland/codeisland-bridge --source codebuddy
[DEBUG] hooks: CLI hooks result: allowed=true

环境

  • CodeBuddy Code 版本:2.127.3
  • 桥接脚本:/Users/xxx/.codeisland/codeisland-bridge --source codebuddy
  • 模型:hy3

预期行为

Notification 事件的 matchValue=permission_prompt(即出现权限提示)时,钩子应把该通知成功投递给 CodeIsland,使其退出 thinking 并展示权限请求,而不是一直卡住。

实际行为

钩子返回 allowed=true 且进程正常退出,但 CodeIsland 没有收到通知,停留在 thinking

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions