Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ async def update_message_thread(self, messages: Sequence[BaseAgentEvent | BaseCh

if self._activation[target][activation_group] == "all":
self._remaining[target][activation_group] -= 1
if self._remaining[target][activation_group] == 0:
if self._remaining[target][activation_group] >= 0:
Copy link

Copilot AI Jun 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition '>= 0' may allow the target node to be added to the ready queue before all required processing is complete. Consider revisiting this logic to verify if the intended condition should remain '== 0' to ensure that nodes are only activated when their remaining count is exactly zero.

Suggested change
if self._remaining[target][activation_group] >= 0:
if self._remaining[target][activation_group] == 0:

Copilot uses AI. Check for mistakes.
# If all parents are done, add to the ready queue.
self._ready.append(target)
# Track which activation group was triggered
Expand Down
Loading