Skip to content

[Matrix] Phase 2: Bridge Integration #781

@alacy-centrl

Description

@alacy-centrl

Overview

Integrate Matrix adapter into the bridge orchestrator (bridge.ts) for full message routing support.

Tasks

  • Update bridge.ts imports to include Matrix adapter
  • Add "matrix" to CHANNEL_LABELS constant
  • Implement Matrix adapter initialization in startBridge()
  • Add Matrix to health server status endpoint
  • Update activity tracking to include Matrix
  • Add Matrix-specific error handling
  • Test adapter lifecycle (start/stop)

Acceptance Criteria

  • Matrix adapters start successfully
  • Messages route through bridge to OpenCode
  • Outbound messages deliver to Matrix rooms
  • Health server reports Matrix status
  • Adapters stop cleanly on shutdown

Estimated Time

2 days

Dependencies

Technical Details

  • Follow exact pattern from Telegram/Slack integration
  • Use adapterKey("matrix", identityId) for adapter registry
  • Support multiple Matrix identities per bridge instance

See full plan: https://github.com/users/alacy-centrl/projects/2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions