feat(roundtable): 历史卡片显示所用业务链(自由模式) + 诊断只收报错日志
- 历史「分析记录」卡片/侧边栏列表:把「第X步」改为本次会商所用业务链名, 无链条显示「自由模式」。后端 list 轻量 meta 从 step2 正则抽取 chain_title (不整体解析大块 JSON),个人草稿 + task 草稿两个 store 都覆盖。 - 会商诊断改为只收集报错日志:record_diagnostic 写库前丢弃 level==info 运行日志(begin/consensus/gather/job_started),只留 warning/error。 单点收口覆盖前台/后台/recorder 全部写路径;诊断页标题改「会商报错日志」。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
e28277b21b
commit
7748661963
11 files changed
+85
-13
No files matched your search
+8
-1
@@ -41,10 +41,17 @@ def get_default_store() -> RoundtableDiagnosticRepository | None:
|
||||
|
||||
|
||||
async def record_diagnostic(store: RoundtableDiagnosticRepository | None = None, **fields: Any) -> None:
|
||||
"""Best-effort 写一条诊断事件。``store`` 缺省用进程级默认仓储。任何异常静默吞掉。"""
|
||||
"""Best-effort 写一条诊断事件。``store`` 缺省用进程级默认仓储。任何异常静默吞掉。
|
||||
|
||||
会商诊断**只收集报错日志**:``info`` 级是纯运行进度(begin/consensus/gather/job_started
|
||||
等「运行日志」),对排障没价值、还会淹没真正的报错,直接不落库;只保留 ``warning`` /
|
||||
``error``(席位失败、空交付、超时、模型容错、产物缺失、崩溃等)。
|
||||
"""
|
||||
repo = store or _default_store
|
||||
if repo is None:
|
||||
return
|
||||
if str(fields.get("level") or "").strip().lower() == "info":
|
||||
return
|
||||
try:
|
||||
await repo.record(**fields)
|
||||
except Exception: # noqa: BLE001 — 诊断日志写失败绝不打断会商
|
||||
|
||||
Reference in new issue
Block a user