refactor(trail): call --repo guard from RunE, keep guard signature

main

Commit

computermode2mo ago

Revert the ensureTrailRepoHasTarget signature change; invoke the guard from the approval RunE bodies and withNumberedTrail (both have *cobra.Command) instead of threading repoOverride through the string-param helpers.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com Entire-Checkpoint: 01KXP5EX32N23QW7H0FGB87WP3

Checkpoints

Guard --repo on Approval and Comment Commands

Claude CodeOpus 4.8
View session
Checkpoint 1