Skip to content

Fix channel subscriber conditions#139

Merged
shima004 merged 2 commits intomainfrom
fix/channel-subscribe
Apr 6, 2026
Merged

Fix channel subscriber conditions#139
shima004 merged 2 commits intomainfrom
fix/channel-subscribe

Conversation

@shima004
Copy link
Copy Markdown
Member

@shima004 shima004 commented Apr 6, 2026

This pull request makes a targeted change to the subscription logic in the MessageManager class to improve how agent subscription timing is handled. Instead of subscribing agents at time 1, the logic now considers a scenario-specific offset, improving flexibility and correctness in agent initialization.

Subscription timing logic update:

  • Updated the condition in the subscribe method of message_manager.py to subscribe agents when agent_info.get_time() equals the scenario's KERNEL_AGENTS_IGNOREUNTIL value plus one, instead of always at time 1. This allows for scenario-based control over when agents begin subscribing.

@shima004 shima004 self-assigned this Apr 6, 2026
@shima004 shima004 merged commit f06738f into main Apr 6, 2026
4 checks passed
@shima004 shima004 deleted the fix/channel-subscribe branch April 6, 2026 19:41
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.

1 participant