fix(trail): skip local-origin enablement cache under --repo

main

Commit

toothbrush2mo ago

The trails-enablement cache is keyed to the local clone's origin. With a --repo override the queried repo differs, so recording enablement (noteTrailCommandEnablement on every authenticated call, plus watch's explicit save) would mis-attribute it to the local repo — and the error path would make a spurious enablement call about the wrong repo. Thread the override into runAuthenticatedTrailAPI and skip the cache writes when it is set.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: 3ff3830dba23

Checkpoints

Investigate CLI Repo and Branch Flags

Claude CodeOpus 4.8[1m]
View session
Checkpoint 1