[Bug] SessionStart hook systemMessage no longer displayed in TUI (v2.1.119)

Status Fixed / completed
Maintainer reply None cached
Activity 5 comments · opened Apr 24, 2026 · closed Apr 24, 2026

Bug Description

SessionStart hook's systemMessage output is no longer displayed in the Claude Code TUI after v2.1.119 update.

Steps to Reproduce

Configure a SessionStart hook in ~/.claude/settings.json:

{
  "hooks": {
    "SessionStart": [{
      "hooks": [{
        "type": "command",
        "command": "echo '{\"systemMessage\": \"test\"}'"
      }]
    }]
  }
}

Then start a new Claude Code session.

Expected Behavior

TUI automatically shows SessionStart:startup says: ... banner at session start — without any user input required.

This is the intended use: the TUI notification allows users to see hook output (e.g., git pull results, config sync status) immediately when a session opens, without needing to type anything first.

Actual Behavior

systemMessage is injected into Claude's context (Claude can read it), but nothing is displayed in the TUI. No visible notification appears at session start.

Version Info

  • Claude Code: v2.1.119
  • OS: Windows 10 Pro 10.0.19045
  • Previously working correctly: v2.1.117

View original on GitHub ↗

5 Comments

arsmap · 5 months ago

Additional test results:

Tested with plain text stdout (not JSON):

"command": "echo '✅ test message'"

Result: Also not displayed in TUI (v2.1.119)

So the issue is not specific to systemMessage JSON format — any stdout output from SessionStart hook is no longer shown in TUI in v2.1.119.

The hook itself runs correctly (output is injected into Claude's context), but the TUI visual notification is completely gone.

github-actions[bot] · 5 months ago

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/41285

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

arsmap · 5 months ago

<img width="651" height="283" alt="Image" src="https://github.com/user-attachments/assets/d85c24f5-7edb-4820-8754-2dc4e2e9db7f" />

arsmap · 5 months ago

Closing as duplicate of #41285. Additional test results added there.

github-actions[bot] · 5 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.