Skip to content

[BUG] Fix indentation of MULTI-STEP FIX substeps in align output #285

@ddjain

Description

@ddjain

Bug Description

Substeps under "MULTI-STEP FIX (N steps):" are not indented; only the first line is. Indent all lines of the fix preview so substeps align under the parent fix (e.g. in align CLI, prefix each line of fix.preview() with the same leading spaces).

To Reproduce

  • Use a repository that does not have CLAUDE.md or AGENTS.md (so the claude_md_file fix is offered).
  • Set your API key:
    export ANTHROPIC_API_KEY=<your-key>
  • Run:
    uv run agentready align <path_to_target_repo>
🔍 Analyzing fixable issues...

Fixes Available: 1
Points to Gain: +10.0
Projected Score: 59.7/100 (Bronze 🥉)

Changes to be applied:

  1. [claude_md_file] Run Claude CLI to create CLAUDE.md, then move content to AGENTS.md
     MULTI-STEP FIX (2 steps):
  1. RUN claude -p 'Initialize this project with a CLAUDE.md file' --allowedTools Read,Edit,Write,Bash
  2. Move CLAUDE.md content to AGENTS.md and replace CLAUDE.md with @AGENTS.md
     Points: +10.0


Apply all fixes? [Y/n]: 

Expected Behavior

A clear and concise description of what you expected to happen.

Actual Behavior

Multi-step fix substeps are indented under the fix so the hierarchy is clear. For example:

  1. [claude_md_file] Run Claude CLI to create CLAUDE.md, then move content to AGENTS.md
     MULTI-STEP FIX (2 steps):
       1. RUN claude -p 'Initialize this project with a CLAUDE.md file' --allowedTools Read,Edit,Write,Bash
       2. Move CLAUDE.md content to AGENTS.md and replace CLAUDE.md with @AGENTS.md
     Points: +10.0

]

Additional Context

NA

Possible Solution

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions