#39 Phase 1.3: thread.ts 适配统一存储 #42
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #39
Depends on: #40, #41
目标
thread.ts 中所有使用
deleteThread + addHistoryEntry模式的地方,改为调用completeThread。list/show 命令适配新的查询方式。改动
packages/cli/src/commands/thread.tscomplete/cancel 逻辑(约 L1039 和 L1554):
list 命令(
cmdThreadList):loadActiveThreads()代替loadAllThreads()loadHistoryThreads()代替loadAllHistory()ThreadListItem从ThreadHistoryLine统一为从ThreadIndexEntry构造show 命令(
cmdThreadShow):getThread(),不再 fallback 到findHistoryEntry()getThread()已经能找到 completed threadshared.ts (
resolveActiveThreadWorkflowHash):findHistoryEntryfallback,统一用getThread()import 清理:
addHistoryEntry,deleteThread,findHistoryEntry,loadAllHistory的 importcompleteThread,loadActiveThreads,loadHistoryThreads的 import注意
resolveActiveThreadStatus()可能需要适配——现在可以直接从entry.status读取,不再需要 background marker 推断(但 background marker 检测 running 状态仍保留)proman build && proman test通过