Statusline receives hook stdout instead of structured JSON

Resolved 💬 3 comments Opened Apr 3, 2026 by yonatangross Closed Apr 7, 2026

Description

The statusline command occasionally receives hook stdout ({"continue":true,"suppressOutput":true}) or hook additionalContext text (e.g., worktree advisory messages) instead of the expected structured JSON metadata. This causes raw JSON or truncated text to appear in the statusline display.

Expected Behavior

The statusline command should only receive CC's structured JSON (model, context_window, rate_limits, etc.) via stdin. Hook output should be routed exclusively to CC's hook result parser, never to the statusline command.

Reproduction

  1. Configure a statusline command in settings.json
  2. Have hooks registered (especially WorktreeCreate or any hook returning additionalContext)
  3. Trigger a worktree creation or any hook that returns JSON output
  4. Observe the statusline displaying raw hook output instead of normal HUD content

Environment

  • Claude Code: 2.1.91
  • Plugin: claude-hud 0.0.11 + orchestkit 7.27.0
  • OS: macOS Darwin 25.3.0

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗