discord-bridge: retry Matrix→Discord sends that failed before reaching Discord #65

Merged
jared merged 1 commits from discord-bridge-send-retry into main 2026-11-14 14:31:24 -05:00
1 Commits
Author SHA1 Message Date
jaredandClaude Opus 5.5 037b6291c9 discord-bridge: retry Matrix→Discord sends that failed before reaching Discord
Lint / Shell (shellcheck) (push) Successful in 45s
Lint / JS (eslint) (push) Successful in 41s
Lint / No Hookshot webhook IDs in README (push) Successful in 6s
Lint / No secrets in webhook configs (push) Successful in 8s
Lint / Landing page is rendered (matrix (push) Successful in 8s
Lint / Python (ruff) (push) Successful in 6s
Lint / Secret scan (gitleaks) (push) Successful in 12s
Lint / Python deps (pip-audit) (push) Successful in 38s
Lint / Shell (shellcheck) (pull_request) Successful in 10s
Lint / JS (eslint) (pull_request) Successful in 8s
Lint / No Hookshot webhook IDs in README (pull_request) Successful in 10s
Lint / No secrets in webhook configs (pull_request) Successful in 6s
Lint / Landing page is rendered (matrix (pull_request) Successful in 7s
Lint / Python (ruff) (pull_request) Successful in 8s
Lint / Secret scan (gitleaks) (pull_request) Successful in 11s
Lint / Python deps (pip-audit) (pull_request) Successful in 31s
Upstream mautrix-discord v0.7.7 sends each message once; a momentary
"net/http: TLS handshake timeout" dropped a message on 2026-11-14 with
only a "may not have been bridged" notice. Patch 0001 retries pre-send
network failures (DNS, dial, TLS handshake) with backoff (~4 min budget),
inline in the per-room loop so order is kept. Post-send failures are not
retried to avoid duplicate webhook posts.

Adds the patch, build-patched.sh (clone tag, apply, test, cgo build
against libolm) and README notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA
2026-11-14 14:28:05 -05:00