From 99b94a38eb53b9c90efe21a0d2609ee483b72ff3 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Sun, 2 Aug 2026 12:14:12 -0700 Subject: [PATCH] docs(tasks): trim the search-window error pattern comment (#12130) Keeps only the non-obvious rationale for pinning GitHub's free-text 422 wording. Co-authored-by: Orca --- src/shared/github-work-items-query-bounds.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/shared/github-work-items-query-bounds.ts b/src/shared/github-work-items-query-bounds.ts index 48f90bceb..85616688a 100644 --- a/src/shared/github-work-items-query-bounds.ts +++ b/src/shared/github-work-items-query-bounds.ts @@ -3,13 +3,8 @@ import { isClipboardTextByteLengthOverLimit } from './clipboard-text' export const GITHUB_WORK_ITEMS_QUERY_MAX_BYTES = 8 * 1024 /** - * GitHub's Search API only pages through the first 1000 matches; beyond that it - * 422s with "Only the first 1000 search results are available". Matching that - * free-text wording is the ONLY signal separating a permanently unreachable page - * from a transient failure (#11485), so the phrase is pinned here rather than - * inlined: if GitHub rewords it, window 422s silently demote to generic - * failures and the advertised page count stops being capped. - * `gh-utils.test.ts` asserts the classified message still carries this phrase. + * The Search API's free-text 422 wording is the only signal separating a + * permanently unreachable page (past the first 1000 matches) from a transient failure. */ export const GITHUB_SEARCH_RESULT_WINDOW_ERROR_PATTERN = /first 1000 search results/i