Skip to content

fix(harness): preserve wakeups during active turns - #2516

Open
logicwu0 wants to merge 2 commits into
agentscope-ai:mainfrom
logicwu0:fix/2506-preserve-wakeup
Open

fix(harness): preserve wakeups during active turns#2516
logicwu0 wants to merge 2 commits into
agentscope-ai:mainfrom
logicwu0:fix/2506-preserve-wakeup

Conversation

@logicwu0

@logicwu0 logicwu0 commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • prevent drained wakeup entries from being discarded while a session turn is active
  • submit follow-up wakeup runs through the existing fair session gate
  • add a regression test for wakeups drained during an active turn

Tests

  • mvn -pl agentscope-harness -am -Dtest=WakeupDispatcherTest,WorkspaceMessageBusTest,HarnessGatewaySessionIdTest,SubagentDeliveryTest -Dsurefire.failIfNoSpecifiedTests=false test
  • 36 tests passed

Fixes #2506

@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@codecov

codecov Bot commented Aug 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

[Bug]:WakeupDispatcher 可能会丢弃子智能体的透传消息

1 participant