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

main

Commit

alishakawaguchi3mo ago
  • 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 --json with 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

Redesign Search TUI Table with Master-Detail Layout

Claude CodeOpus 4.8[1m]
View session
Checkpoint 1