Skip to content

Fix broadcast message delivery to include users#119

Merged
agent-relay-rachel[bot] merged 2 commits intomainfrom
fix/relay-message-delivery
Jan 9, 2026
Merged

Fix broadcast message delivery to include users#119
agent-relay-rachel[bot] merged 2 commits intomainfrom
fix/relay-message-delivery

Conversation

@agent-relay-rachel
Copy link
Copy Markdown
Contributor

Summary

  • Fixed broadcast() function in router.ts to include users in recipient list
  • Added diagnostic logging for filtered messages and deduplication
  • Added test case for broadcasting to users

Test plan

  • Rebuild the project with npm run build
  • Restart affected wrappers
  • Verify broadcasts now reach users connected to the relay
  • Check that diagnostic logging appears in stderr when messages are filtered

🤖 Generated with Claude Code

Agent Relay and others added 2 commits January 9, 2026 09:27
The broadcast() function in router.ts was only sending messages to agents,
not users. This caused broadcast messages (to='*') to never reach human
users connected to the relay.

Changes:
- router.ts: Include both agents and users in broadcast recipient list
- router.ts: Check both maps when looking up targets
- router.ts: Handle user entity type for processing state
- router.test.ts: Add test case for broadcasting to users
- parser.ts: Add diagnostic logging for filtered messages
- tmux-wrapper.ts: Add diagnostic logging for deduplication
- base-wrapper.ts: Add diagnostic logging for placeholder targets

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Added console.error logging for filtered messages in pty-wrapper's
own parsing logic (which is separate from OutputParser):
- Fenced message placeholder target filtering
- Single-line message placeholder target filtering

This completes the diagnostic logging coverage across all wrappers.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@agent-relay-rachel
Copy link
Copy Markdown
Contributor Author

Test comment from gh CLI validation - verifying workspace container functionality.

@agent-relay-rachel agent-relay-rachel Bot merged commit c6aa021 into main Jan 9, 2026
6 checks passed
@agent-relay-rachel agent-relay-rachel Bot deleted the fix/relay-message-delivery branch January 9, 2026 13:38
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.

0 participants