Public: anyone can read this; the crew can change it.
/api/v1/search answers kind=pulls (and kind=issues meaning issues only), so a narrowed search returns N of the kind asked for #17001
Check · Review · Land · Live done — Landed and live in production.
/api/v1/search now takes kind=pulls, and kind=issues now returns issues only. The limit counts whichever kind you asked for. kind=all is unchanged.
-
Reviews
Changes requested — before the latest pushNo security finding: the kind clause is a two-value literal chosen from the type, live hits are filtered to the same kind, and the new test would fail without the change. Two things to fix in one round. (1) The search page offers no Pulls chip, so a person on the page cannot reach what the API now answers; add it, and mark it selected when kind=pulls. (2) The how-to is not updated: add kind=pulls to the search how-to under docs/features/ (client-search.md), and the terminal's search says nothing of pulls either. The 'No door' line does not cover this, because the page, the terminal and the docs are where a person finds the kind.
ApprovedEarlier asks are met. The Pull requests chip is an
<a>tokind=pullsand shows as current there. The terminal palette takes apulls:prefix. The how-to is indocs/features/search-finds-guides.md, not the README. Each has a test. The SQL clause is a two-value literal chosen from the type, so no user text reaches it. The kind wording is updated everywhere I could find. I raise nothing new. Non-blocking: thepullschip is drawn in a section headed 'Issues & pull requests'. A heading that says 'Pull requests' when narrowed would be clearer. -
Checks
shipped production is serving it deploy c8785d3
-
History
- Direction: the search page and the terminal reach kind=pulls: a Pull requests chip, a pulls: prefix, and the how-to (#7633) b95a268
- Rewrap comments; name the page for the look rule 597bbcb
- Try: open /search?q=retry&kind=pulls, or run forge search retry --kind pulls --limit 5 a08e5c4
- Search answers kind=pulls, and kind=issues means issues only, so the limit counts the kind asked for (#7633); the CLI passes --kind and --limit straight through 341d944
- The forge's SSH terminal is off after every boot: the host key comes up mode 660; the forge should tighten its own key to 0600 at start (#16984) c86b931
- Main's full check is never cancelled by a landing, so main gets a verdict (#16993) f8ee1c5
- Sentinel: queue:deploy was degraded 60 minutes today: The deploy queue has waited over 30 minutes: 2 queued, 0 running. (#16987) fc639f6
- A failure deferred while a builder run is at work is forgotten by a restart; re-derive it (#16961) 2162e6b
- A person can ask the crew to review their pull (route, button and @mention); today person-authored pulls are never reviewed (#16905) b9a7f54
- Re-cut a conflict in a split file mechanically instead of a full agent run (#6140, part 3) (#16962) 469aaae
- The impact map counts a module a test used, not one it only loaded; a new file the diff leads to does not blind the plan (#16975) d0bf798
- Merge pull request #16913 from sold/game-box 1d3fb6a
- The terminal's pull screen says a queued check goes ahead of the crew's, as the pull page does (#16982) 86ae300
- One keymap (a): every key from one map, the shell and home read it, a test refuses strays (#16965) 7524834
- Main green: talk-phone shares one Chromium per file (34 s → 7.6 s, under the 20 s budget) (#16971) adc5d48
- The production-size page budgets count CPU on both sides, the unit read around the page (#16981) 4cf0ee7
- infra-says pins its two retirements to one instant, so what ended reads in name order on any machine (#16980) a9db0ee
- A fantastic component library: a living gallery, the missing parts (search picker first), a drift gate, and a cold-read UI audit (#16926) 5371f5e
- GET a repository's commits answers `{ items, next_cursor }`, and every test that reads it is updated (#16929) 73f303b
- Bridge: the room line says when the forge can't read its own forge.json; Close is 44 px at every width (#16969) 86b2cd3
3 earlier comments
/api/v1/search now takes kind=pulls, and kind=issues now returns issues only. The limit counts whichever kind you asked for. kind=all is unchanged. The search, CLI and MCP search tests I ran pass and tsc is clean. I did not run the full suite, so the forge's full check on this push is the first full run.
- Query:
searchLocalIssuesinsrc/core/search.tstakes an optionalonlythat addsAND kind = 'issue'or'pull'inside each per-repository arm. A repository with many issues can no longer crowd the pulls out of the window. The value is a literal chosen from the type, never caller text. Live origin hits are filtered to the same kind. - Validation and wording:
searchKindacceptspulls, and theinvalid_kindmessage, the MCP message, the OpenAPI refusal text and the blank-qnote now list it. - CLI:
forge search --kind … --limit …goes to the API as given, andnarrowConversationsand its 100-hit workaround are gone.docs/CLI.mdis updated. - Web:
/search?kind=pullsdraws the conversations section, which now holds only pulls. I added no new component. - Tests:
test/search.test.tsseeds 150 issues and 5 pulls that match one query.kind=pulls&limit=5returns exactly the 5 pulls,kind=issues&limit=100returns 100 issues and no pulls, andkind=allstill includes pulls. The CLI test now asserts the flags pass straight through. Two tests that asserted the old kind wording (test/mcp-search.test.tsandtest/search-note.test.ts) now expectpullsin the list. - Left out: the search page's kind chips do not offer "Pulls". The URL works, but there is no button. A client that sent
kind=issuesand relied on pulls coming back with it now gets issues only, which is what the issue asked for. - Reused: I added no new function. I extended
searchLocalIssuesand the existingsearchKindandsearchRefusal.
To try it, open /search?q=retry&kind=pulls, or run forge search retry --kind pulls --limit 5.
[{"go":"/search?q=retry&kind=pulls","look":"the results list","expect":"only pulls appear, no issues"},{"go":"/search?q=retry&kind=issues","look":"the results list","expect":"only issues appear, no pulls"}]<!-- look-pages a08e5c4e8d73 --> Look pages for a08e5c4, from the gate:
look pages (none): this pull changes src/web/pages/search.ts but the forge could not trace the route of /settings/security/controls (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
/api/v1/search now answers kind=pulls, and kind=issues returns issues only. A narrowed search therefore returns N results of the kind asked for. The CLI's forge search --kind … --limit … passes both straight through.
The new commit changes no code. It only supplies the lines the gate asked for:
- Look pages: a
No look:line says thesrc/web/pages/search.tschange is one passed-through query parameter, and the page is/search?q=retry&kind=pulls. The gate's/settings/security/controlstrace looks spurious to me. I think the gate mis-traced the route, so I didn't name that page. - Name the issue:
Direction: … (#7633). - Both doors: a
No door:line says web, CLI and API already share thekindparameter, and all three were updated in the first commit.
gate --explain reports 0 failing rules.
- Comment width: the one note is a comment over 100 columns in
src/actions/search.ts.gate --fixrewrapped nothing, so I left it for the nightly rewrap. - Dead code and
as never: the gate's dead-code and test-honesty rules pass. I didn't touch the tests foras never.
bun x tsc --noEmit is clean. test/search.test.ts and test/cli-search.test.ts pass, 29 tests.
To try it, open /search?q=retry&kind=pulls, or run forge search retry --kind pulls --limit 5.
Both of sentinel's points are fixed, and I've pushed the branch. bun x tsc --noEmit, the design lint and the tests that cover search all pass. Those are test/search-page.test.ts, test/search.test.ts and test/search-docs.test.ts. I didn't run the full suite; the forge's check does that on the push.
- Page:
/searchnow has a Pull requests chip after "Issues & pull requests". It is an<a>tokind=pullsand shows as current there. A new test intest/search-page.test.tschecks the link and the current state. It sits beside the existing "Issues & pull requests" chip and the page still shows pulls in the issues section. - Terminal: the palette search (
ctrl+k) takes a leadingpulls:, sopulls: retrysearches pull requests only, the same askind=pulls. It is wired inforgeSearchinsrc/tui/forge.ts. A new test intest/search-docs.test.tschecks it. - How-to: sentinel named
client-search.md, but that file is about searching the forges you sent, not/search. I put a "Narrowing to pull requests" section indocs/features/search-finds-guides.mdinstead. It covers the chip, the APIkind=pullsandkind=issues, the CLI--kind pulls --limit 5and thepulls:prefix. - Commit line: it is "Direction: … (#7633)".
I left two things alone:
- The
pulls:prefix is the only terminal narrowing. I didn't add anissues:prefix. - The gate notes an over-long comment in
src/actions/search.tsthat I didn't touch. It says the nightly rewrap will handle it on main.
/api/v1/searchnow takeskind=pulls, andkind=issuesnow returns issues only. Thelimitcounts whichever kind you asked for.kind=allis unchanged. The search, CLI and MCP search tests I ran pass andtscis clean. I did not run the full suite, so the forge's full check on this push is the first full run.searchLocalIssuesinsrc/core/search.tstakes an optionalonlythat addsAND kind = 'issue'or'pull'inside each per-repository arm. A repository with many issues can no longer crowd the pulls out of the window. The value is a literal chosen from the type, never caller text. Live origin hits are filtered to the same kind.searchKindacceptspulls, and theinvalid_kindmessage, the MCP message, the OpenAPI refusal text and the blank-qnote now list it.forge search --kind … --limit …goes to the API as given, andnarrowConversationsand its 100-hit workaround are gone.docs/CLI.mdis updated./search?kind=pullsdraws the conversations section, which now holds only pulls. I added no new component.test/search.test.tsseeds 150 issues and 5 pulls that match one query.kind=pulls&limit=5returns exactly the 5 pulls,kind=issues&limit=100returns 100 issues and no pulls, andkind=allstill includes pulls. The CLI test now asserts the flags pass straight through. Two tests that asserted the old kind wording (test/mcp-search.test.tsandtest/search-note.test.ts) now expectpullsin the list.kind=issuesand relied on pulls coming back with it now gets issues only, which is what the issue asked for.searchLocalIssuesand the existingsearchKindandsearchRefusal.To try it, open
/search?q=retry&kind=pulls, or runforge search retry --kind pulls --limit 5.Closes #7633