-
Notifications
You must be signed in to change notification settings - Fork 0
fix(gateway): restore bespoke telegram/slack/matrix setup dispatch #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5814,17 +5814,21 @@ def _builtin_setup_fn(key: str): | |
| from hermes_cli import setup as _s | ||
|
|
||
| return { | ||
| # telegram moved into the plugin: setup_fn registered by | ||
| # plugins/platforms/telegram/adapter.py::register(). #41112. | ||
| # discord moved into the plugin: setup_fn is registered by | ||
| # plugins/platforms/discord/adapter.py::register() and dispatched | ||
| # via the plugin path in _configure_platform(). | ||
| # slack moved into the plugin: setup_fn is registered by | ||
| # plugins/platforms/slack/adapter.py::register() and dispatched | ||
| # via the plugin path in _configure_platform(). #41112. | ||
| # matrix moved into the plugin: setup_fn registered by | ||
| # plugins/platforms/matrix/adapter.py::register() and dispatched via | ||
| # the plugin path in _configure_platform(). #41112. | ||
| # | ||
| # telegram, slack, and matrix are built-in (not plugin-migrated — | ||
| # see the _PLATFORMS NOTE above). They keep their bespoke setup | ||
| # flows here because the generic _setup_standard_platform fallback | ||
| # treats the first `vars` entry (token_var) as mandatory and aborts | ||
| # the whole wizard if it's left empty. That breaks Matrix's | ||
| # documented "leave the access token empty for password login" | ||
| # path outright, and loses Telegram's token-format validation and | ||
| # Slack's manifest-regeneration prompt. | ||
| "telegram": _s._setup_telegram, | ||
| "slack": _s._setup_slack, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When reconfiguring Slack with an existing Useful? React with 👍 / 👎. |
||
| "matrix": _s._setup_matrix, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When an existing Matrix setup has Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When a Matrix user leaves Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For a fresh password-login setup, Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When base Useful? React with 👍 / 👎. |
||
| # mattermost moved into the plugin: setup_fn is registered by | ||
| # plugins/platforms/mattermost/adapter.py::register() and dispatched | ||
| # via the plugin path in _configure_platform(). | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a first-time Telegram user follows
_setup_telegram()and leaves the allowlist empty for the advertised open-access mode, this dispatch bypasses_setup_standard_platform(), the only flow that asks for an access policy and writesGATEWAY_ALLOW_ALL_USERS=true. The bespoke helper merely claims anyone can use the bot without saving that flag or a wildcard, while Telegram authorization fails closed without either, so the newly configured bot does not provide the access mode the user selected.Useful? React with 👍 / 👎.