feat: 线程生命周期对齐 15 项(bindings/refs/快照/心跳绑定/移交落点)

对照 Codex app 第二批:GET /tasks/{id}/bindings(项目/
环境/主机/worktree/PR/附件/血缘总表)、/refs 外部引用
增删查、/worktree/archive 快照(branch/head/status/diff/
untracked 路径)与 restore(目录在才解归档、目录删了
409 附快照)、自动化 bind + heartbeat(走 thread/message
同款投递路,cron 绑定不唤醒)、移交 completed 后任务
worktree_host 跟随切换、pr/checks 响应补 head_sha、
thread/read 的 tool 条目补 server/status。

诚实边界见 docs/thread-lifecycle-align.md:已有 worktree
附加、自动化变化静默、建议器、服务端定时触发器未实现;
Memory 对位是待合的 PR #102,本批不重复实现。

三套件:cloud 948 OK(4 跳过)、host 91 OK、deploy 29 OK
This commit is contained in:
host committed 2026-10-28 04:56:22 +08:00
1 parent aee60fcb7d
commit cf08c4cf37
5 files changed
+1343 -56

No files matched your search

+3
View File
@@ -105,6 +105,9 @@ UNMIGRATED_TABLES = (
"external_identities",
"pr_jobs",
"task_handoffs",
"task_worktree_snapshots",
"task_refs",
"automation_bindings",
"rate_limit_hits",
"user_gateway_keys",
"webhook_deliveries",