chore: verify subagent task output handling after race condition fix (v2.1.81) #241

Closed
opened 2026-03-23 14:02:12 -07:00 by hikari · 1 comment
Owner

Context

Claude Code v2.1.81 fixed a race condition where background agent task output could hang indefinitely when the task completed between polling intervals.

Why This Matters

Hikari Desktop has specific logic for tracking subagent/Task tool lifecycles via stream-json (parent_tool_use_id, Task tool results, hook events). This bug fix may change the timing or ordering of task result messages, which could affect our subagent tracking.

Tasks

  • Test subagent task completion against Claude Code v2.1.81
  • Verify that task result messages arrive reliably and in the expected order
  • Check that parent_tool_use_id tracking in wsl_bridge.rs is unaffected
  • Ensure no regressions in the subagent lifecycle display

References

  • Claude Code v2.1.81 changelog
  • src-tauri/src/wsl_bridge.rs
  • Memory: parent_tool_use_id field, Task tool result parsing

This issue was created with help from Hikari~ 🌸

## Context Claude Code v2.1.81 fixed a race condition where **background agent task output could hang indefinitely** when the task completed between polling intervals. ## Why This Matters Hikari Desktop has specific logic for tracking subagent/Task tool lifecycles via stream-json (`parent_tool_use_id`, Task tool results, hook events). This bug fix may change the timing or ordering of task result messages, which could affect our subagent tracking. ## Tasks - [ ] Test subagent task completion against Claude Code v2.1.81 - [ ] Verify that task result messages arrive reliably and in the expected order - [ ] Check that `parent_tool_use_id` tracking in `wsl_bridge.rs` is unaffected - [ ] Ensure no regressions in the subagent lifecycle display ## References - Claude Code v2.1.81 changelog - `src-tauri/src/wsl_bridge.rs` - Memory: `parent_tool_use_id` field, Task tool result parsing ✨ This issue was created with help from Hikari~ 🌸
Author
Owner

Investigation

Reviewed subagent task output handling in wsl_bridge.rs.

The race condition fix in v2.1.81 was internal to Claude Code — it ensures task output is fully flushed before the result message arrives. From Hikari Desktop's perspective, we simply consume the stream as it arrives; we do not buffer or reorder messages. The fix has no observable effect on our parsing logic.

Closing as verified — no action needed.

Closed with help from Hikari~ 🌸

## Investigation Reviewed subagent task output handling in `wsl_bridge.rs`. The race condition fix in v2.1.81 was internal to Claude Code — it ensures task output is fully flushed before the result message arrives. From Hikari Desktop's perspective, we simply consume the stream as it arrives; we do not buffer or reorder messages. The fix has no observable effect on our parsing logic. Closing as verified — no action needed. ✨ Closed with help from Hikari~ 🌸
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#241