feat: support Synapse as alternative Matrix server provider#512
Draft
Jing-ze wants to merge 5 commits intoagentscope-ai:mainfrom
Draft
feat: support Synapse as alternative Matrix server provider#512Jing-ze wants to merge 5 commits intoagentscope-ai:mainfrom
Jing-ze wants to merge 5 commits intoagentscope-ai:mainfrom
Conversation
Contributor
📊 CI Metrics ReportSummary
By Role
Per-Test Breakdown
Trends✅ 5 test(s) improved (fewer LLM calls) Generated by HiClaw CI on 2026-04-02 07:39:22 UTC |
711b839 to
1a1a6b8
Compare
Add Synapse as an alternative to Tuwunel for the Matrix homeserver. Key changes: - Provider-aware user registration (Tuwunel: registration_token, Synapse: shared-secret HMAC) - Centralized Matrix provider abstraction in hiclaw-env.sh - Synapse runs as sidecar inside Manager container (same port 6167) - PostgreSQL sidecar for Synapse storage - Install wizard step for Matrix provider selection (sh + ps1) - CI auto-detection of Synapse-related file changes for dual-provider testing - Higress route configuration for correct provider backend - Improved error diagnostics in worker/human creation scripts - Synapse rate limit relaxation for internal agent API calls - Cleanup of Synapse containers and volumes on uninstall
…e sidecar Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1a1a6b8 to
62fd19c
Compare
johnlanni
requested changes
Apr 1, 2026
… sidecar, fix injection - Lock matrix provider selection during upgrade to prevent data loss (Tuwunel uses RocksDB, Synapse uses PostgreSQL — no migration path) - Remove auto-managed PostgreSQL sidecar; Synapse now requires user-provided PG - Fix shell injection in PG connectivity check (replace /dev/tcp with nc -z + host validation) - Improve registration error handling: only silence M_USER_IN_USE, surface real errors - Revert CI changes (no Synapse test matrix until PG setup is added) - Clean up "sidecar" references in descriptions and comments Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Synapse provider is now configured purely via environment variables (HICLAW_MATRIX_PROVIDER=synapse), no interactive prompts in install scripts. This keeps the install flow simple while still supporting Synapse for advanced users who manage their own PostgreSQL. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
HICLAW_MATRIX_PROVIDERenv varHICLAW_PG_HOST)registration_token, Synapse uses HMAC shared-secretKey Changes
manager/Dockerfile: install Synapse via pip into base Python 3.10manager/scripts/init/start-synapse.sh: new startup script (symmetric with start-tuwunel.sh)manager/supervisord.conf: add[program:synapse]entryshared/lib/hiclaw-env.sh: centralizedmatrix_register_user/matrix_register_user_rawfunctionsinstall/hiclaw-install.sh/.ps1:step_matrix_provider+ PG sidecar managementcreate-worker.sh: error logging, invite list fix (exclude room creator), room_id recoveryDesign Decisions
Test Plan
HICLAW_MATRIX_PROVIDER=synapseinstall — verify Synapse starts on port 6167make uninstallcleans up PG container and volume🤖 Generated with Claude Code