Skip to content

[Enhancement] 补齐 SDK 生命周期与升级兼容性,并跟踪 legacy 队列替换 #533

Description

@liujuanjuan1984

对照 liujuanjuan1984/codex-a2a#338 审查 SDK 1.1.5 适配。实现及回归见 Draft PR #534。

  • 修复执行异常的失败持久化、队列与后台资源清理。
  • 关闭时排空缓冲输出,再补写失败状态并释放依赖;GetTask 复用 SDK 校验。
  • 补齐旧数据库升级工具、事务转换、身份保留、终态保护和查询回归。
  • 替换 EventQueueLegacy/LegacyRequestHandler,保持输出协商、身份、取消、订阅、断连和关闭契约。新版 handler 忽略第二个完整 Task,且强制关闭不提供当前输出排空语义,需要适配事件和生命周期。

#534 使用 Refs,合并时不关闭本 issue。最新修复 34a9f81;doctor 通过 907 项测试,覆盖率 93.46%;协议检查 8/8、远端 5 项 CI 全部通过。

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions