修复: 上下文记忆与工作流注入生产侧空壳接通
WorkingContext 写入链落地(用户轮目标钉扎+压缩后 JSON 卡片回填重锚定,含 6 单测); 工作流 DAG 摘要注入生产侧接通(AI 路径启动写入+终态回写,审批调用点透传会话)。 附知识库与记忆走查诊断(「笨/丢历史」根因:消息压缩视图丢失+知识检索四重收口), todo 登记修复分档(含随批补登 09-28 交互走查索引条目)。
This commit is contained in:
@@ -1142,10 +1142,14 @@ pub(crate) struct ToolCallDraft {
|
||||
///
|
||||
/// 不在此推进任务状态 —— workflow.rs::run_workflow 内部已按 task_id+target_status 自动联动
|
||||
/// (成功推进到 target / 失败按 regression_target 退回),此处不重复。
|
||||
///
|
||||
/// `conv_id`(T4 会话关联)末参透传 run_workflow_inner:调用方带发起会话 ID 时,
|
||||
/// 启动写 workflow_id/workflow_dag_summary、终态回写摘要,供 agentic loop 注入 system prompt。
|
||||
pub(crate) async fn execute_run_workflow_for_tool(
|
||||
app: &tauri::AppHandle,
|
||||
state: &crate::state::AppState,
|
||||
args: &serde_json::Value,
|
||||
conv_id: Option<&str>,
|
||||
) -> anyhow::Result<serde_json::Value> {
|
||||
let task_id = args
|
||||
.get("task_id")
|
||||
@@ -1178,6 +1182,7 @@ pub(crate) async fn execute_run_workflow_for_tool(
|
||||
Some(task_id.clone()),
|
||||
Some(target_status.clone()),
|
||||
"ai",
|
||||
conv_id,
|
||||
)
|
||||
.await
|
||||
.map_err(|e| anyhow::anyhow!("工作流执行失败: {}", e))?;
|
||||
|
||||
Reference in New Issue
Block a user