fix(trail): reject host-like --repo forge in the bare path form

main

Commit

toothbrush2mo ago

The bare forge/owner/repo form accepted parts[0] as the forge without checking it is a known short forge id, so --repo github.com/acme/app (or gitlab.com/...) slipped through and produced a malformed /api/v1/trails/<forge>/... path that failed with an opaque server error.

Validate the forge segment against gitremote.IsSupportedForge and fail with a clear message pointing at a forge id ("gh") or a clone URL.

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

Checkpoints

Investigate CLI Repo and Branch Flags

Claude CodeOpus 4.8[1m]
View session
Checkpoint 1