Startup crash when CLAUDE.md has blank line after markdown header

Resolved 💬 3 comments Opened Jan 7, 2026 by felipekj Closed Feb 21, 2026

Description

Claude Code crashes on startup when the user's ~/.claude/CLAUDE.md file contains a blank line immediately after a markdown header.

Steps to Reproduce

  1. Add the following content to ~/.claude/CLAUDE.md:
# Some Header

- list item 1
- list item 2
  1. Start Claude Code
  2. Claude Code crashes on startup

Expected Behavior

Claude Code should start normally. A blank line after a markdown header is valid markdown syntax.

Workaround

Remove the blank line between the header and the first list item:

# Some Header
- list item 1
- list item 2

Environment

  • OS: Linux (Ubuntu)
  • Claude Code version: Latest
  • The issue occurs specifically when a # header is followed by a blank line and then list items

Additional Context

This was discovered when adding a new section to the user's global CLAUDE.md file. The crash only occurs during startup when parsing the CLAUDE.md file.

View original on GitHub ↗

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