Extract credential-stripping into a tested helper

main

Commit

Soph3mo ago

Pull the parse-and-rebuild logic out of reportRepoEnabled into a pure cleanRemoteURLForReport helper and cover it with a table-driven test: embedded https tokens and user:password, query params, scp-style ssh users are all stripped, the .git suffix is normalized, and unparseable single-segment paths error. Guards assert no known secret survives in the cleaned URL.

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

Checkpoints

Fix Enable Report Timeout and URL Stripping

Claude CodeOpus 4.8[1m]
View session
Checkpoint 1