From c950778fdf74459cc8705d1781e47db50e08e554 Mon Sep 17 00:00:00 2001 From: richblack Date: Sun, 17 May 2026 11:36:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(mira/feed):=20WikiStatusBadge=20=E5=8A=A0?= =?UTF-8?q?=20=F0=9F=9A=AB=20=E6=94=BE=E6=A3=84=20=E7=8B=80=E6=85=8B=20+?= =?UTF-8?q?=20=E2=86=BB=20=E9=87=8D=E8=A9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 對應 wiki_giveup_scanner workflow (mira repo) 標 wiki-give-up tag 的 raw: 顯示 🚫 放棄 ↻ 按鈕,hover 解釋。點擊清 tag + 強制重 trigger。 leo 2026-05-17 反饋 C 落地:watcher 一直 fail 的 raw 不會無限重試了, 6h+ scanner 標給棄、UI 顯示給棄、用戶可手動修。 --- landing/app/mira/feed/page.tsx | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/landing/app/mira/feed/page.tsx b/landing/app/mira/feed/page.tsx index 91e4e29..78e6abd 100644 --- a/landing/app/mira/feed/page.tsx +++ b/landing/app/mira/feed/page.tsx @@ -2082,9 +2082,13 @@ function WikiStatusBadge({ if (!mainBlock) return null; let processed = false; + let givenUp = false; try { const tags = JSON.parse(mainBlock.tags_json || '[]') as string[]; - processed = Array.isArray(tags) && tags.includes('wiki-processed'); + if (Array.isArray(tags)) { + processed = tags.includes('wiki-processed'); + givenUp = tags.includes('wiki-give-up'); + } } catch { // ignore } @@ -2136,6 +2140,23 @@ function WikiStatusBadge({ ); } + // wiki_giveup_scanner 標的:已試多輪 cron 仍失敗,停止重試 + if (givenUp) { + return ( + + ); + } + if (recentlyRetried) { return ⏳ 重試中; }