把 session persistence 从“别乱存”变成可恢复设计。Use when a repository needs explicit decisions about what session state to persist, how resume should work, or why resume consistency is drifting.
把会话恢复需要的状态写成清晰分层,而不是把所有聊天相关信息混在一起存,导致 resume 漂移或失真。
Success criteria:
不要把 progress、loading、瞬时 UI 状态一起写进去。
Success criteria:
session_idparent_session_idforked_from_session_idresume_source_session_idSuccess criteria:
agent_idagent_typedescriptionworktree_pathSuccess criteria:
Success criteria: