Skip to content

subagents: 测试中的无界状态轮询可永久挂住 CI #177

Closed

Description

@tt-a1i

问题

extensions/subagents/manager.test.ts 的部分异步测试使用无界轮询等待状态变化。若生命周期回归导致条件永远不成立,测试不会以有意义断言失败,而会永久挂住 CI,掩盖真正问题并占用 runner。

期望

  • 所有测试轮询都有短且明确的 deadline;
  • timeout error 输出等待目标、最后观测状态和相关 agent id;
  • 优先等待确定性事件/Promise,轮询仅作为必要边界;
  • 增加一个“状态永不到达”的自测,证明 helper 有界失败;
  • 不用全局测试超时掩盖单个等待点;
  • 完整测试套件在回归时能终止并给出可诊断失败。

Activity

  1. added a commit that references this issue on Aug 27, 2026
    6490eb3
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