search: address PR review — repo scoping, HasFilters, JSON invariant
main·
Commit

- toQuery: an explicit owner/name repo filter now scopes the search even when --all-repos is also set (the more specific filter wins) instead of being silently ignored.
- Config.HasFilters now counts AllRepos, so
entire search --all-repos --jsonwith an empty query produces JSON instead of opening the TUI. - Result.UnmarshalJSON clears the typed payload pointers before decoding so a reused Result keeps the "exactly one non-nil" invariant.
- Correct the stale "fetch the maximum" comment (it fetches DefaultLimit).
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: 0debb873cd3a
Checkpoints
Checkpoint 1