Skip to content

[P0] mergeClaudeMd truncates user content after BMAD section #1

@LarsCowe

Description

@LarsCowe

Problem

mergeClaudeMd in src/installer.ts:355 uses indexOf("## BMAD-METHOD Integration") to find the section start, then replaces everything to end-of-file. Any user content below the BMAD section in CLAUDE.md is deleted on upgrade.

Files

  • src/installer.ts:355

Fix

Find the end of the BMAD section (next ## heading at same level) and replace only that range.

Status

Fixed in 93e3c61

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions