mach10 icon indicating copy to clipboard operation
mach10 copied to clipboard

Fix gh view commands in code blocks being treated as alternatives instead of sequential calls

Open LeanAndMean opened this issue 9 months ago • 1 comments

Summary

When Claude executes mach10 commands, it only runs gh pr view <number> --comments (or gh issue view <number> --comments) and skips the plain gh view call. This means the issue/PR body is silently dropped, since the --comments flag excludes the title and body.

Current Behavior

All 7 affected commands place both gh view calls in a single fenced code block with inline comments:

gh pr view <pr-number>             # title + description
gh pr view <pr-number> --comments  # comments only

Claude interprets these as alternatives rather than two mandatory sequential calls, and picks --comments because the name sounds additive. The inline comments reinforce this by reading as labels, not instructions.

Proposed Behavior

Split the two commands into separate code blocks with explicit prose explaining that both calls are required and why (--comments silently drops the body).

Acceptance Criteria

  • Each of the 7 affected commands uses separate code blocks for the body call and the comments call
  • Prose between the code blocks makes it unambiguous that both must be run
  • The reason for two calls is stated (the --comments flag drops the body)

Affected Files

  • commands/issue-assessment.md
  • commands/issue-plan.md
  • commands/issue-review-plan.md
  • commands/issue-implement.md
  • commands/pr-review-fix.md
  • commands/pr-review-validate.md
  • commands/doc-review.md

Context

The body-dropping behavior of --comments was identified in issue #6 and fixed in commit af5f4c2 by splitting into two calls. However, the formatting (single code block) still causes Claude to skip the first call.

LeanAndMean avatar Feb 24 '26 14:02 LeanAndMean

Progress: Implementation complete

Split the single fenced code block containing both gh view and gh view --comments into separate code blocks with explicit prose in all 7 affected commands. The prose explains that --comments returns only comments and silently drops the title and body/description, making both calls required.

Files modified:

  • commands/issue-assessment.md
  • commands/issue-plan.md
  • commands/issue-review-plan.md
  • commands/issue-implement.md
  • commands/pr-review-fix.md
  • commands/pr-review-validate.md
  • commands/doc-review.md

Commit: 806dab5 Branch: feature/issue-10-fix-gh-view-code-blocks

LeanAndMean avatar Feb 24 '26 15:02 LeanAndMean