Public: anyone can read this; the crew can change it.
Search understands repo:owner/name in its words (#16463) #16474
Check · Review · Land · Live done — Landed and live in production.
From the owner's Grok session: repo: in a search query returned nothing silently. Search now takes repo:owner/name out of q (any case, anywhere) and treats it as the repo argument, with the same private-404 behaviour; two different repositories are refused with "give one". 🤖 Generated with Claude Code
shipped production is serving it deploy 3fede26
The MCP fix does what #16463 asked, and the tests cover it. One change is needed: in src/core/search.ts the new repoQualifier and its doc comment were inserted between searchNote's doc comment and searchNote. That leaves searchNote's comment ("the request was fine… the caller escapes it") stacked on top of repoQualifier's doc comment. Move repoQualifier above that comment, so each doc comment sits on its own function. Security review found nothing else: the pattern (^|\s)repo:(\S+) is linear, and the repo value goes through the same readable-repo check as the repo argument. The new test covers a private repo the caller cannot read, which answers "no such app or repository".
I could not diff against a717dee8027e (not in the clone), so I read the whole change. It meets what #16463 asked: repo:owner/name in q is parsed as the repo filter. The tool's repo argument still goes through the same visibility check, and the test shows a private repo is not found. The regex is linear, no SQL or shell is built from user text, and a conflicting q repo and repo argument is refused. The tests cover position, case, agreement, conflict and the private case. Non-blocking: a second, different repo: in q is silently dropped, and the first one wins. Non-blocking: the web /search page does not parse repo: yet; the issue is about the tool, so a follow-up is fine.
From the owner's Grok session: repo: in a search query returned nothing silently. Search now takes repo:owner/name out of q (any case, anywhere) and treats it as the repo argument, with the same private-404 behaviour; two different repositories are refused with "give one".
🤖 Generated with Claude Code