feat(file-check): 持久化 chat_tool_runs 并统一 agent_runtime_context 注入

新增跨 worker 进度绑定表与显式 hxops_turn_id 链路;Dify Start 仅注入
agent_runtime_context,task_id/turn_id 写入 refs 供画布解析后回传 Tool。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hugoandCursor committed 2026-07-09 18:39:05 +08:00
1 parent c778f40fbc
commit f4e74f7b07
23 files changed
+1580 -196

No files matched your search

+2 -2
View File
@@ -38,9 +38,9 @@ def build_dify_inputs_for_context(ctx: ChatStreamContext) -> dict[str, Any]:
session_id=str(getattr(ctx.session, 'session_id', '') or ''),
request_id=ctx.request_id,
trigger_source='frontend_chat',
user_role=str(getattr(ctx.user, 'role', '') or '').strip() or None,
adapter_hints=ctx.adapter_hints,
user_role=getattr(ctx.user, 'role', None),
hxops_turn_id=ctx.hxops_turn_id,
user_role=str(getattr(ctx.user, 'role', '') or '').strip() or None,
)