Skip to content

[bug] agent-team.ts 的 sleep 不支持 AbortSignal #85

Description

@Misaka477

step-realtime-cli 版本

1.0.0

Node 版本 & OS

Node 24.16.0 / Linux (Fedora 44)

复现步骤

  1. Agent team 发起 delegation 或 handoff
  2. 内部调用 sleep 等待延迟
  3. 用户此时点击取消(Ctrl+C)
  4. 操作无法被立即中断,需等待 delayMs 超时自然结束

期望行为

用户取消时应立即中断等待,promise rejected

实际行为

取消信号被忽略,需等待完整超时。而 agent-loop.ts 中的 sleep 函数已正确处理 AbortSignal,存在不一致

日志 / 堆栈

截图(可选)

No response

自检

  • 我已搜索 existing issues,确认这不是重复问题
  • 我已阅读 CONTRIBUTING.md

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions