Skip to content

[BUG] Not all tools supported in PreToolUse or PostToolUse hooks #10834

@mig8447

Description

@mig8447

Problem (one or two sentences)

I was attempting tu check for ask_followup_question tool to check when I was being needed to intervene explicitly and send notifications but this is not supported

Context (who is affected and when)

Hook users attempting to use hooks as means of interaction notifications

Reproduction steps

macOS VSCode Extension and CLI latest versions

  1. Create a workflow that uses ask_followup_question
  2. Create a PreToolUse or PostToolUse hook that logs tool usage
  3. Run the workflow
  4. add_followup_question is not added to the log

The same probably happens with other tools which I have not tested

Expected result

Hook gets called for ask_followup_question

Actual result

Hook does not get called for ask_followup_question

Variations tried (optional)

Tried as instructed by the doc, inspected the code, and there's no ToolHookUtils.runPreToolUseIfEnabled for the ask_followup_question tool

App Version

3.47.0

API Provider (optional)

None

Model Used (optional)

No response

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions