Skip to content

Factory Droid Mission mode: PreToolUse and PostToolUse hooks fail with tool_use_id and schema mismatch #938

@blackgirlbytes

Description

@blackgirlbytes

Discord community member reported the following:

Original Conversation found here

They tried the Mission mode in Droid. The PreToolUse and PostToolUse hooks fail when tasks are delegated to Worker (subagent) inside the session, failed to capture pre-task state and to parse hook event

PreToolUse: failed to capture pre-task state: tool_use_id is required
PostToolUse: failed to parse hook event: failed to parse hook input: json: cannot unmarshal string into Go struct field postToolHookInputRaw.tool_response of type struct { AgentID string "json:\"agentId\"" }

Steps to reproduce

  1. Use Droid 0.99.0 in Mission mode
  2. Delegate a task to a Worker (subagent)
  3. Observe hook failures

Environment

  • Droid 0.99.0
  • Entire CLI 0.5.4 (746a74c)
  • Go version: go1.26.2
  • Fedora 43 via Homebrew
  • Entire hook installed Mar 24

Related

#917 and #930

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions