Skip to content

Claude Code provider: ui_* plugin-UI system pushes (ui_invalidate etc., CLI >= 2.1.285) surface as "Unhandled Claude Code event" #5252

Closed

Description

@thomaswillner

Summary

Claude Code >= 2.1.285 emits a new family of sdk/system plugin-UI pushes — ui_invalidate, ui_log, ui_toast, ui_status, ui_panes, ui_scroll, ui_focus. The Claude Code provider's closed allow-list (toClaudeSystemSubtype in the provider-claude-code bundle) does not include any of them, so they collapse to unknown and are surfaced as "Unhandled Claude Code event" rows. Same defect class as #2224 (background_tasks_changed, fixed by #2893 in desktop-v0.42.1).

With a few Claude Code plugins/mods that hook ui.render installed, a single one-word prompt ("test") produced ~30 unhandled rows. Codex threads are unaffected.

Versions and environment

  • bb 0.45.0 (macOS, Apple Silicon), built-in provider-claude-code 0.1.0
  • Claude Code 2.1.295 (~/.local/bin/claude, spawned by bb with --output-format stream-json --input-format stream-json)
  • Several installed Claude Code plugins/mods hook ui.render (e.g. catch-me-up, blast-radius, prompt-cache-control)
  • showDiagnosticEvents = true

Steps to reproduce

  1. Install Claude Code >= 2.1.285 with at least one plugin/mod that hooks ui.render.
  2. Enable bb settings general showDiagnosticEvents true.
  3. Start a Claude Code thread, send test.

Expected vs actual

  • Expected: ui_* system pushes are classified (as noise — they drive Claude's own TUI/remote surface and bb has no consumer), like hook_*, init, thinking_tokens.
  • Actual: each one renders as "Unhandled Claude Code event", payload:
{"jsonrpc":"2.0","method":"sdk/message","params":{"message":{"type":"system","subtype":"ui_invalidate","event":"ui.render","uuid":"…","session_id":"…"}}}

Evidence

  • In the 0.45.0 bundle (server/dist/builtin-plugins/provider-claude-code/dist/host.js), toClaudeSystemSubtype accepts: background_tasks_changed, commands_changed, compact_boundary, elicitation_complete, files_persisted, hook_progress, hook_response, hook_started, init, local_command_output, memory_recall, mirror_error, model_fallback, model_refusal_fallback, model_refusal_no_fallback, notification, permission_denied, plugin_install, session_state_changed, status, task_notification, task_progress, task_started, task_updated, thinking_tokens — everything else becomes unknown.
  • The Claude CLI 2.1.295 binary itself defines {type:"system", subtype:"ui_invalidate", event:"ui.render"} and lists the sibling subtypes ui_log, ui_toast, ui_status, ui_panes, ui_scroll, ui_focus (also code_change_published, ui_fault-related events are nearby).
  • The family appeared in the 2.1.284 → 2.1.285 stream-json drift, documented by a third-party SDK: claude-codes 2.1.286: plugin UI pushes, request timing, re-pin 2.1.285 meawoppl/rust-code-agent-sdks#423

What you ruled out

Suggested priority and effort (optional)

Low effort: add the ui_* subtypes (and ideally a ui_ prefix rule, since the family is growing) to the allow-list with coverage noise. Consider making unknown future sdk/system subtypes default to noise-with-debug rather than unhandled, since this is the second occurrence of this class.

Checks

  • I reproduced this on the latest release or on main — reproduced on the latest release (0.45.0), not on main.
  • I searched open and closed issues for the same problem.
  • If an agent wrote this, the body ends with > AGENT GENERATED and links the thread or report.

AGENT GENERATED (Claude Code session diagnosing the user's bb install; evidence above from the installed 0.45.0 bundle and Claude CLI 2.1.295)

Activity

  1. added theissue type on Oct 9, 2026
  2. added
    providers
    provider-claude-code
    confirmed-repro
    on Oct 9, 2026
  3. bb-slop-cop commented on Oct 9, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority Low · Effort Low; labels providers, provider-claude-code.
    • Report: https://get-bb.github.io/reports/issues/5252.html
    • Verdict: REPRODUCED at the provider translation/assembly boundary in two clean trusted-main checkouts. Root-cause confidence: high. Reproduction label: confirmed-repro.
    • Root cause: The closed system-subtype allow-list reduces seven plugin-UI notification kinds to unknown, causing diagnostic provider/unhandled events.
    • Fix: Ready PR Classify Claude plugin UI notifications as noise #5253 explicitly classifies those notifications as noise while retaining unknown-event diagnostics. 78 changed text lines, 2 files. Not merged.
    • Verification: Regression fails before the fix in both checkouts (7 failures), then passes all 10 cases. Full provider suite passes 385 tests as non-root; lint, typecheck, formatting, and diff checks pass. Five root-only bridge failures also reproduce on unchanged main.
    • Limits: Live upstream emission, CLI introduction version, macOS rendering, and notification frequency were not exercised.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-reproprovider-claude-codeproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions