feat: parse plugin_errors from stream-json init event #270

Open
opened 2026-05-06 12:24:38 -07:00 by hikari · 0 comments
Owner

Overview

CLI v2.1.111 added a plugin_errors field to the headless --output-format stream-json init event. This field is populated when plugins are demoted due to unsatisfied dependencies. The app should parse and display this information.

Changes Required

  • In src-tauri/src/wsl_bridge.rs (or src-tauri/src/types.rs), add plugin_errors as an optional field on the system/init message type
  • When plugin_errors is present and non-empty, emit a notification or warning to the frontend
  • The frontend should display these errors in an appropriate way (e.g. a toast notification, a warning banner, or an entry in the session log)

Context

From the v2.1.111 changelog:

Headless --output-format stream-json now includes plugin_errors on the init event when plugins are demoted for unsatisfied dependencies

The init event is the first message emitted when a Claude Code session starts. If plugins fail to load, users currently have no visibility into this when running through Hikari Desktop.

References

  • Claude Code CLI v2.1.111 changelog

This issue was created with help from Hikari~ 🌸

## Overview CLI v2.1.111 added a `plugin_errors` field to the headless `--output-format stream-json` init event. This field is populated when plugins are demoted due to unsatisfied dependencies. The app should parse and display this information. ## Changes Required - In `src-tauri/src/wsl_bridge.rs` (or `src-tauri/src/types.rs`), add `plugin_errors` as an optional field on the `system`/init message type - When `plugin_errors` is present and non-empty, emit a notification or warning to the frontend - The frontend should display these errors in an appropriate way (e.g. a toast notification, a warning banner, or an entry in the session log) ## Context From the v2.1.111 changelog: > Headless `--output-format stream-json` now includes `plugin_errors` on the init event when plugins are demoted for unsatisfied dependencies The init event is the first message emitted when a Claude Code session starts. If plugins fail to load, users currently have no visibility into this when running through Hikari Desktop. ## References - Claude Code CLI v2.1.111 changelog ✨ This issue was created 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#270