Session-start-hook tags visible in terminal output
Resolved 💬 6 comments Opened Oct 5, 2025 by lubosstrejcek Closed Jan 26, 2026
Description
The <session-start-hook> and </session-start-hook> XML tags are being displayed in the terminal output when Claude Code starts, instead of being hidden as internal markers.
Expected Behavior
The tags should be stripped from the display and only the hook output should be shown:
> 🔍 Gathering STREYDA Platform Status...
📊 Hub Status Check:
✅ Hub Database: 644K
...
Actual Behavior
The tags are visible in the output:
> <session-start-hook>🔍 Gathering STREYDA Platform Status...
📊 Hub Status Check:
✅ Hub Database: 644K
...
✅ Platform status check complete</session-start-hook>
Environment
- Claude Code Version: v2.0.8
- Model: Sonnet 4.5
- Platform: macOS (Darwin 25.0.0)
Steps to Reproduce
- Configure a
.claude/session-start.shhook script - Start Claude Code in a directory with the hook configured
- Observe the tags appearing in the terminal output
Impact
Minor visual issue - the tags are confusing and look like rendering errors to users.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗