#39 Phase 1.1: ThreadIndexEntry 加 status + completedAt 字段 #40
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
目标
在
ThreadIndexEntry类型中加入status和completedAt字段,为统一存储做准备。改动
packages/protocol/src/types.tspackages/protocol/src/thread-index.tscreateThreadIndexEntry(head)默认status: "idle",completedAt: nullnormalizeThreadIndexEntry兼容旧格式(无 status 字段时默认"idle")updateThreadHead清除 suspend 字段时同时将 status 设为"idle"markThreadSuspended同时设status: "suspended"markThreadCompleted(entry, reason: "completed" | "cancelled"): ThreadIndexEntrypackages/protocol/src/__tests__/thread-index.test.ts注意
proman test通过