feat: 新增报告协作页,并强化 Deep Research 运行诊断与报告兜底

支持浏览器侧素材快照撰写、拒绝报告读时修复、Mermaid PNG 导出与 Word 导出加固。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
董宏凯andCursor committed 2026-09-03 11:16:50 +08:00
1 parent 65d6b61d5d
commit f109a95535
65 files changed
+10342 -245

No files matched your search

@@ -84,11 +84,19 @@ async def harvest_thread_materials(
best_materials, best_summary = _harvest_checkpoint_tuple(checkpoint_tuple, query=query)
# The latest checkpoint is the normal, fast path. Historical traversal is
# only a recovery for a stale/empty head after an interrupted collector
# stream. Scanning it after usable material was already found adds dozens
# of checkpoint reads and can make report writing appear to stop halfway
# on deployments whose checkpoint store is slow or isolated per worker.
if best_materials:
return best_materials, best_summary
# ``aget_tuple`` normally returns the latest state. When a streamed lead
# agent call fails, however, some checkpointers leave that head at the
# final input checkpoint even though an earlier checkpoint already holds
# the successful web-search tool results. Prefer the richest available
# material pool rather than treating that transient head as an empty run.
# the successful web-search tool results. With an empty head, prefer the
# richest available material pool rather than treating it as an empty run.
checkpoint_history = getattr(checkpointer, "alist", None)
if callable(checkpoint_history):
try: