Skip to content

fix(mcp): target cancel command to agent instead of broadcasting#58

Merged
robotlearning123 merged 2 commits intoagent-next:mainfrom
robotlearning123:fix/mcp-cancel-broadcast
Mar 16, 2026
Merged

fix(mcp): target cancel command to agent instead of broadcasting#58
robotlearning123 merged 2 commits intoagent-next:mainfrom
robotlearning123:fix/mcp-cancel-broadcast

Conversation

@robotlearning123
Copy link
Member

Summary

  • MCP cancel tool was broadcasting cancel to ALL room participants instead of targeting the agent
  • Added _get_agent_identity helper and destination_identities to the SendDataRequest
  • Added test coverage for targeted cancel behavior

Test plan

  • Verify cancel only targets agent participant, not all room participants
  • Verify existing MCP tests pass

🤖 Generated with Claude Code

robotlearning123 and others added 2 commits March 16, 2026 08:05
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- test_cancel_sends_command: patch SendDataRequest to check kwargs
  instead of asserting on auto-mocked object attributes
- test_cancel_sends_backend_command: add mock room metadata with
  agent_identity required by _get_agent_identity lookup
- test_journey_dial_cancel_verify_cancelled: same room metadata fix
- Add tests for _get_agent_identity error paths (room not found,
  agent not initialized) covering lines 253 and 257

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@robotlearning123 robotlearning123 merged commit 667f603 into agent-next:main Mar 16, 2026
7 checks passed
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