From 2cee1ca636842f4831c429901dd5c6b79b236e05 Mon Sep 17 00:00:00 2001 From: Karan Lokchandani Date: Tue, 11 Aug 2026 09:32:28 +0530 Subject: [PATCH] research: stop branching on server mechanism fields --- src/commands/research.ts | 2 +- src/types/research.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commands/research.ts b/src/commands/research.ts index f615b13942..45a03ddc4b 100644 --- a/src/commands/research.ts +++ b/src/commands/research.ts @@ -149,7 +149,7 @@ function fmtGithub(results?: GitHubItem[]): string { return results .map((item) => { const lines: string[] = []; - if (item.resultType === 'repo_readme') { + if (item.number == null && item.pageType == null) { lines.push(`[${item.repo ?? '?'}] README`); } else { const ref = item.number != null ? `#${item.number}` : ''; diff --git a/src/types/research.ts b/src/types/research.ts index d4c122219f..a810c08435 100644 --- a/src/types/research.ts +++ b/src/types/research.ts @@ -53,7 +53,6 @@ export interface PaperHit { } export interface GitHubItem { - resultType?: string; repo?: string; url?: string; pageType?: string;