Skip to content

fix(runtime): resume idle agents with pending work#22

Open
guo-yu wants to merge 1 commit into
mainfrom
codex/issue-21-resume-idle-agents
Open

fix(runtime): resume idle agents with pending work#22
guo-yu wants to merge 1 commit into
mainfrom
codex/issue-21-resume-idle-agents

Conversation

@guo-yu

@guo-yu guo-yu commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replays wakeups for idle on-demand / idle_cached agents on supervisor startup and supervisor.resume when pending messages or runnable assigned tasks already exist.
  • Keeps the existing blocked-task guard when deciding whether to wake idle agents.
  • Allows an explicit AgentProcess.trigger() to continue runnable assigned work even when the original task notification has already been consumed.

Fixes #21

Tests

  • corepack pnpm --filter @wanman/runtime test -- src/__tests__/supervisor.test.ts src/__tests__/agent-process.test.ts
  • corepack pnpm --filter @wanman/runtime typecheck

I also attempted the full runtime test suite; unrelated tests that write to the system temp directory failed in this environment before exercising this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

暂停恢复后 Agent 团队罢工不推进

2 participants