feat: add agent_id and agent_type fields to agent monitoring events #205

Closed
opened 2026-03-10 09:15:34 -07:00 by hikari · 0 comments
Owner

Summary

CLI v2.1.69 added agent_id (for subagents) and agent_type (for subagents and --agent) to hook events. Hikari's agent monitoring tree currently doesn't capture or display these fields, losing useful diagnostic information.

Required Changes

Backend (types.rs)

  • Add agent_id: Option<String> and agent_type: Option<String> fields to the relevant hook/agent event structs
  • Ensure these are included in AgentStartEvent emissions

Frontend (AgentMonitor)

  • Display agent_type in the agent tree node label (e.g., "general-purpose", "Explore", "Plan")
  • Display agent_id as a tooltip or secondary label for debugging
  • Use agent_type to show a relevant icon or colour per agent type in the tree

Reference

  • CLI v2.1.69: "Added agent_id (for subagents) and agent_type (for subagents and --agent) to hook events"

This issue was created with help from Hikari~ 🌸

## Summary CLI v2.1.69 added `agent_id` (for subagents) and `agent_type` (for subagents and `--agent`) to hook events. Hikari's agent monitoring tree currently doesn't capture or display these fields, losing useful diagnostic information. ## Required Changes ### Backend (`types.rs`) - Add `agent_id: Option<String>` and `agent_type: Option<String>` fields to the relevant hook/agent event structs - Ensure these are included in `AgentStartEvent` emissions ### Frontend (`AgentMonitor`) - Display `agent_type` in the agent tree node label (e.g., "general-purpose", "Explore", "Plan") - Display `agent_id` as a tooltip or secondary label for debugging - Use `agent_type` to show a relevant icon or colour per agent type in the tree ## Reference - CLI v2.1.69: "Added `agent_id` (for subagents) and `agent_type` (for subagents and `--agent`) to hook events" ✨ This issue was created with help from Hikari~ 🌸
naomi closed this issue 2026-03-13 01:34:45 -07:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/hikari-desktop#205