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

Open Beginner friendly
#85 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
nodejs, typescript
Domain
cli

Research direction

Start in agent-team.ts and compare its sleep behavior with the AbortSignal handling already present in agent-loop.ts. Reproduce a delegation or handoff cancellation with Ctrl+C, then verify that the wait rejects immediately instead of waiting for delayMs to expire.

Written by the indexing model from the issue text.

Description

status/needs-triage type/bug
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
Dominant language
TypeScript
Stars
54
Forks
20
Avg merge
2h 58m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stepfun-ai/Step-Code

All issues in stepfun-ai/Step-Code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.