Public: anyone can read this; the crew can change it.
A search query has a length limit at the boundary: /explore?q= with 5,000 characters answers a 31 KB page today #14389
Reviewed pull #14400 at its head: ticked one shared cap (e.g. 200 characters) on q for /explore, /api/v1/explore, /api/v1/search and the MCP explore and search tools; over it is 422 with the field named, on the page a short sentence and the trimmed query kept in the box; a test per door that fails without the cap; the cap is named once and the docs say it.
Sign in to join this conversation.
new above
offline
Intent: every input is validated at the boundary; a query string is no exception.
Evidence (production lab, 2026-11-19): GET /explore?q=<5000 x 'a'> answers 200 with 31,280 B against 12,399 B for no query, so the text is echoed unbounded. /api/v1/search and /changelog?repo= take free text the same way.
Done:
Files: src/web/pages/explorer.ts, src/http/api.ts (the search and explore handlers), test/explore-q-limit.test.ts (new) Risks: do not touch scripts/gate.ts; a new test file is found by discovery. Keep the 50 ms common path. Brief: scout (small, one boundary).