chore: verify stream-json parsing handles new 50K tool result threshold #162

Closed
opened 2026-02-25 08:51:30 -08:00 by hikari · 0 comments
Owner

Context

Claude CLI v2.1.51 changed the threshold at which tool results are persisted to disk rather than included inline in the stream:

  • Before v2.1.51: Results > 100K characters were persisted to disk
  • After v2.1.51: Results > 50K characters are persisted to disk

This means tool results that were previously sent inline may now appear differently in the NDJSON stream.

Risk

Our wsl_bridge.rs stream-json parser and any frontend logic that processes tool results could be affected if it assumes results are always inline up to 100K chars.

Acceptance Criteria

  • Review src-tauri/src/wsl_bridge.rs to understand how large tool results are currently handled
  • Test with a tool call that produces a result between 50K and 100K characters
  • Verify the UI displays/handles persisted-to-disk results correctly (or gracefully)
  • Add tests if the behaviour changes

This issue was created with help from Hikari~ 🌸

## Context Claude CLI v2.1.51 changed the threshold at which tool results are **persisted to disk** rather than included inline in the stream: - **Before v2.1.51**: Results > 100K characters were persisted to disk - **After v2.1.51**: Results > 50K characters are persisted to disk This means tool results that were previously sent inline may now appear differently in the NDJSON stream. ## Risk Our `wsl_bridge.rs` stream-json parser and any frontend logic that processes tool results could be affected if it assumes results are always inline up to 100K chars. ## Acceptance Criteria - [ ] Review `src-tauri/src/wsl_bridge.rs` to understand how large tool results are currently handled - [ ] Test with a tool call that produces a result between 50K and 100K characters - [ ] Verify the UI displays/handles persisted-to-disk results correctly (or gracefully) - [ ] Add tests if the behaviour changes ✨ This issue was created with help from Hikari~ 🌸
naomi closed this issue 2026-02-25 22:55:48 -08: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#162