Skip to content

[Feature] thread watch 在 Host Runtime 重启后丢失 #720

Closed

Description

@ump45nose

背景
thread watch / delegate start --watch true 是长程委派的唤醒机制:设计侧派出阶段主控后结束本轮,等主控停下再被通知。watch 目前只保存在 Host Runtime 内存中(docs/architecture/thread-watch.md)。一个阶段常跑数小时,期间 Desktop 更新、崩溃或重启都会让通知静默丢失,父 Thread 不会再被唤醒。

提议
持久化 watch 记录,重启后自动恢复观察和投递;期限按绝对时间计算;恢复后会话尚未重新注册时,不计入 unreadable 宽限;停机时正在进行的投递,恢复后再投一次(重启场景改为至少一次,通知只报告状态,重复无害)。运行期间“投递结果未知”的规则不变。

提案
openspec/changes/persist-thread-watches(分支 ump45nose:docs/external-dispatch-proposals)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions