Skip to content

feat: 多会话操作:执行状态记录与一键恢复(桌面侧栏/启动恢复中心/CLI) #3712

Closed

Description

@ptlzc

需求

增加多会话操作能力:把每个会话的执行/恢复状态记录下来,中途停止后下次启动能一键恢复。

范围(用户确认“全部都要”)

  • Desktop 侧栏会话列表:为中断/可恢复会话显示状态,并提供直接“恢复”操作,不用先打开会话。
  • 启动恢复中心:应用启动后自动扫描所有中断会话,展示可逐个或全部一键恢复的入口。
  • CLI/TUI /session 选择器:对中断会话提供直接 Resume 操作,而不是切进去再 /resume。

背景

已有 Runtime Resume Phase 0-2 / Safe-boundary contract,Desktop 打开中断会话后有 Safe resume 按钮,CLI 有 /resume。本 issue 是把恢复入口提升到“多会话”层面,并让执行记录状态在列表可见。

Activity

  1. added
    enhancement
    on Aug 25, 2026
  2. CxHsin commented on Aug 26, 2026

    @CxHsin
    Contributor

    我希望认领这个 issue,并先按以下边界推进,欢迎维护者确认方向:

    1. 由 Runtime Host 统一提供跨会话 recovery projection/query,Desktop、启动恢复中心和 CLI/TUI 复用同一套恢复判定;实际恢复继续复用现有 turn.resume.query/start 安全链路。
    2. 首版恢复候选只针对程序或 Runtime Host 意外中断后、经过安全边界检查可继续的执行(例如 app_restarted)。用户主动 Stop 不自动列入恢复候选,避免违背用户的停止意图。
    3. 启动恢复中心只展示候选并等待用户操作,不在启动时自动调用 Provider。
    4. “全部恢复”首版按会话串行执行,并逐项返回 started、parked、busy 或 error 等结果,后续再考虑受控并发。
    5. 计划拆成几个小阶段:Runtime Host 状态契约与单会话恢复、Desktop 侧栏/启动恢复中心、CLI/TUI 入口,以及并发和重启场景测试。

    如果这个范围符合项目方向,我会先从 Runtime Host recovery projection、单会话恢复命令和 focused tests 开始,再分别实现 Desktop 与 CLI 入口。由于该功能涉及跨层产品语义,也请维护者确认是否需要进一步讨论。

  3. added
    help wanted
    on Aug 29, 2026
  4. added
    stale
    on Sep 26, 2026
  5. github-actions commented on Sep 26, 2026

    @github-actions

    This issue has had no human activity for 30 days and has been marked stale. It will be closed in 30 days unless someone comments.

    If the issue is still current, please confirm it against the latest main and add any information that would help move it forward. Assigned issues and issues labelled pinned are exempt from this policy.

  6. github-actions commented on Oct 26, 2026

    @github-actions

    This issue has been closed because it received no human response during the 30-day grace period. This is not a judgement on the value of the report.

    If the issue still applies to the latest main, please comment with updated evidence so a maintainer can reopen it, or open a follow-up issue with the missing information.

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

    enhancementhelp wantedstale

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions