claude-code - 💡(How to fix) Fix [Bug] SessionStart hook systemMessage no longer displayed in TUI (v2.1.119) [4 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52708Fetched 2026-04-24 10:41:48
View on GitHub
Comments
4
Participants
2
Timeline
11
Reactions
0
Author
Timeline (top)
labeled ×6commented ×4closed ×1

Code Example

{
  "hooks": {
    "SessionStart": [{
      "hooks": [{
        "type": "command",
        "command": "echo '{\"systemMessage\": \"test\"}'"
      }]
    }]
  }
}
RAW_BUFFERClick to expand / collapse

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

extent analysis

TL;DR

The systemMessage output from the SessionStart hook is not being displayed in the Claude Code TUI due to a potential regression introduced in version v2.1.119.

Guidance

  • Verify that the systemMessage is being correctly injected into Claude's context by checking the context variables after the SessionStart hook has run.
  • Check the release notes for v2.1.119 to see if there were any changes to the TUI notification system that could be causing this issue.
  • Test the same configuration on a previous version (e.g., v2.1.117) to confirm that the issue is specific to v2.1.119.
  • Consider filing a bug report with the Claude Code team if the issue is confirmed to be a regression.

Example

No code snippet is provided as the issue seems to be related to a specific version of the software rather than a coding error.

Notes

The issue may be specific to the Windows 10 Pro 10.0.19045 operating system, but this is not confirmed.

Recommendation

Apply workaround: Revert to version v2.1.117 until the issue is fixed in a future release, as this version is known to work correctly.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] SessionStart hook systemMessage no longer displayed in TUI (v2.1.119) [4 comments, 2 participants]