You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/docs/channels
Monty Taylor caf5d2dd7c feat(matrix): Add multi-account support to Matrix channel
The Matrix channel previously hardcoded `listMatrixAccountIds` to always
return only `DEFAULT_ACCOUNT_ID`, ignoring any accounts configured in
`channels.matrix.accounts`. This prevented running multiple Matrix bot
accounts simultaneously.

Changes:
- Update `listMatrixAccountIds` to read from `channels.matrix.accounts`
  config, falling back to `DEFAULT_ACCOUNT_ID` for legacy single-account
  configurations
- Add `resolveMatrixConfigForAccount` to resolve config for a specific
  account ID, merging account-specific values with top-level defaults
- Update `resolveMatrixAccount` to use account-specific config when
  available
- The multi-account config structure (channels.matrix.accounts) was not
  defined in the MatrixConfig type, causing TypeScript to not recognize
  the field. Added the accounts field to properly type the multi-account
  configuration.
- Add stopSharedClientForAccount() to stop only the specific account's
  client instead of all clients when an account shuts down
- Wrap dynamic import in try/finally to prevent startup mutex deadlock
  if the import fails
- Pass accountId to resolveSharedMatrixClient(), resolveMatrixAuth(),
  and createMatrixClient() to ensure the correct account's credentials
  are used for outbound messages
- Add accountId parameter to resolveMediaMaxBytes to check account-specific
  config before falling back to top-level config
- Maintain backward compatibility with existing single-account setups

This follows the same pattern already used by the WhatsApp channel for
multi-account support.

Fixes #3165
Fixes #3085

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
9 months ago
..
bluebubbles.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago
broadcast-groups.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago
channel-routing.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago
discord.md Docs: add discord presence config notes (#10855) 9 months ago
feishu.md refactor: unify peer kind to ChatType, rename dm to direct (#11881) 10 months ago
googlechat.md Docs: enable markdownlint autofixables except list numbering (#10476) 10 months ago
grammy.md fix(security): default standalone servers to loopback bind (#13184) 9 months ago
group-messages.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago
groups.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago
imessage.md docs(channels): modernize imessage docs page (#14213) 10 months ago
index.md feat: IRC — add first-class channel support 10 months ago
irc.md feat: IRC — add first-class channel support 10 months ago
line.md Docs: enable markdownlint autofixables except list numbering (#10476) 10 months ago
location.md Docs: add nav titles across docs (#5689) 10 months ago
matrix.md feat(matrix): Add multi-account support to Matrix channel 9 months ago
mattermost.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago
msteams.md Docs: add User.Read.All permission info for MS Teams user mentions 9 months ago
nextcloud-talk.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago
nostr.md revert(docs): undo markdownlint autofix churn 10 months ago
pairing.md fix: enforce feishu dm policy + pairing flow (#14876) (thanks @coygeek) 9 months ago
signal.md docs(signal): improve setup, verification, and troubleshooting guidance 9 months ago
slack.md fix(slack): populate thread session with existing thread history (#7610) 9 months ago
telegram.md fix(security): default standalone servers to loopback bind (#13184) 9 months ago
tlon.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago
troubleshooting.md docs: add symptom-first troubleshooting hub and deep runbooks (#11196) 10 months ago
twitch.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago
whatsapp.md docs(channels): modernize whatsapp docs page (#14202) 10 months ago
zalo.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago
zalouser.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago