feat: 任务列表显示 turn_id 与 root_turn_id
host.py dispatch 打印补 turn_id/root_turn_id;执行器解析(local/Docker)透传;worker 写回 tasks 新列(新值非空才覆盖);server 迁移与接口字段;控制台任务列表新增 turn/root turn 两列(短显+悬停全文);新单测 9 个。
This commit is contained in:
1 parent
559a7dcb9f
commit
dbcc8e641a
7 files changed
+252
-11
No files matched your search
@@ -757,6 +757,10 @@ def migrate_tasks_table(conn):
|
||||
# 续跑消息)。worker 认领后把 prompt 换成它跑一轮,跑完
|
||||
# 清掉;任务详情里照常显示原 prompt,续跑消息只作本轮输入。
|
||||
"resume_message": "TEXT",
|
||||
# 任务列表显示 turn 用:最近一轮的 turn_id 与
|
||||
# root_turn_id(worker 写回时只在新值非空时覆盖)。
|
||||
"turn_id": "TEXT",
|
||||
"root_turn_id": "TEXT",
|
||||
}
|
||||
for name, coltype in new_cols.items():
|
||||
if name not in cols:
|
||||
@@ -1080,6 +1084,8 @@ def _task_to_dict(row, attachments=None):
|
||||
"plan": _row_get(row, "plan") or 0,
|
||||
"forked_from": _row_get(row, "forked_from"),
|
||||
"environment_id": _row_get(row, "environment_id"),
|
||||
"turn_id": _row_get(row, "turn_id"),
|
||||
"root_turn_id": _row_get(row, "root_turn_id"),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user