Skip to content

fix: retain Goal state when TUI reconnect fails #571

Description

@LeXwDeX

Why

TUI 重连失败错误隐藏活动 Goal。

Scope

Goal GET 返回 HTTP 500 时客户端用 undefined 覆写最后已知 Goal。

Approach

区分成功、有意义的 404 与其他错误;失败保留状态,恢复成功后继续同步。

Acceptance

500 保留已有 Goal;404 清除;200 更新;事件更新与既有 TUI 测试通过。

基于 2026-09-07 Goal 功能审核,修复前以真实 Goal/Session/Runner 组合回归锁定失败,使用 Bun 1.3.14 验证。

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions