From bcd7964e0bde4104770d36750ca6e9864e9230ac Mon Sep 17 00:00:00 2001 From: Iqbal Date: Thu, 29 Oct 2026 10:14:34 +0700 Subject: [PATCH] Say when a research run found no new sources Co-Authored-By: Claude Opus 5.5 --- src/express/schedules.ts | 2 ++ src/i18n.ts | 2 ++ src/pages/Schedule.tsx | 1 + 3 files changed, 5 insertions(+) diff --git a/src/express/schedules.ts b/src/express/schedules.ts index a313cfe..d756cf2 100644 --- a/src/express/schedules.ts +++ b/src/express/schedules.ts @@ -365,6 +365,8 @@ export interface RunSummary { safe_error_code: string | null budget_spent: number | null has_readiness_issues: boolean + /** Research runs: what came of the sources found, e.g. no_new_sources when nothing was kept. */ + source_outcome?: string | null created_at: string finished_at: string | null } diff --git a/src/i18n.ts b/src/i18n.ts index 1576ee0..ca01a32 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -266,6 +266,7 @@ const en = { 'sch.blockedNone': 'All material is ready now. Try again.', 'sch.fixInStudio': 'Open in Learning Studio', 'issue.document_processing': 'still processing', + 'sch.noNewSources': 'No new sources found. A more specific topic may help.', 'issue.document_failed': 'failed to process; reprocess or delete it', 'issue.graph_building': 'knowledge graph still building', 'issue.graph_not_ready': 'knowledge graph not prepared yet', @@ -759,6 +760,7 @@ const id: Record = { 'issue.graph_building': 'knowledge graph masih dibangun', 'issue.graph_not_ready': 'knowledge graph belum disiapkan', 'issue.legacy_set_needs_conversion': 'set Compose lama; perlu dikonversi', + 'sch.noNewSources': 'Tidak ada source baru yang ditemukan. Topik yang lebih spesifik bisa membantu.', 'issue.no_knowledge_sources': 'set Compose tidak punya sumber', 'issue.source_not_accessible': 'set Compose memakai dokumen yang tidak bisa kamu akses', 'issue.source_graph_not_ready': 'salah satu dokumen sumber belum siap', diff --git a/src/pages/Schedule.tsx b/src/pages/Schedule.tsx index f346104..c210f04 100644 --- a/src/pages/Schedule.tsx +++ b/src/pages/Schedule.tsx @@ -233,6 +233,7 @@ function RunHistory({ agentId }: { agentId: number }) { {runStatus(r.status)} {r.budget_spent != null && {t('common.credits', { n: r.budget_spent })}} {r.safe_error_code && {runError(r.safe_error_code)}} + {r.source_outcome === 'no_new_sources' && {t('sch.noNewSources')}} {r.id === blockedId && } ))}