Say when a research run found no new sources

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Iqbal
2026-10-29 10:14:34 +07:00
parent 43a977017b
commit bcd7964e0b
3 changed files with 5 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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<Key, string> = {
'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',

View File

@@ -233,6 +233,7 @@ function RunHistory({ agentId }: { agentId: number }) {
<span className={`status ${r.status === 'completed' ? 'ready' : 'draft'}`}><i className="dot"></i>{runStatus(r.status)}</span>
{r.budget_spent != null && <span>{t('common.credits', { n: r.budget_spent })}</span>}
{r.safe_error_code && <span className="error" title={r.safe_error_code}>{runError(r.safe_error_code)}</span>}
{r.source_outcome === 'no_new_sources' && <span>{t('sch.noNewSources')}</span>}
{r.id === blockedId && <ReadinessIssues agentId={agentId} />}
</li>
))}