-
-
Notifications
You must be signed in to change notification settings - Fork 79.2k
Telegram default account silently disappears when a named account is added #82780
Copy link
Copy link
Closed
Closed
Copy link
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
Adding any named Telegram account can silently drop the implicit/default Telegram account from runtime polling.
Affected behavior
In a config with a top-level Telegram bot token, adding
channels.telegram.accounts.fusionplus atelegram:fusionbinding caused the default Telegram provider to disappear after restart.openclaw config validate,openclaw agents list, and post-restart agent smoke all stayed green, butopenclaw channels status --probeno longer showed the default Telegram account.Minimal repro
channels.telegram.botTokenand nochannels.telegram.accountssection.openclaw channels status --probeshows the named account, but the default Telegram account is missing.channels.telegram.accounts.default: { name: "Jarvis", enabled: true }restores the default polling provider.Root cause
dist/account-selection-Bvg_hTfj.jslines 15–58 showlistConfiguredAccountIds()enumeratingcfg.channels.telegram.accountskeys andcombineAccountIds()only returning[DEFAULT_ACCOUNT_ID]when the configured+additional account set is empty.Because any named account makes the set non-empty, the implicit default is no longer injected.
Impact
This is silent and destructive-by-default:
Expected
Either:
Notes
This helper pattern appears to be shared at the account-listing layer, so the issue may affect other account-aware channels too (e.g. Signal / iMessage / Slack-family account helpers that use
createAccountListHelpers/listCombinedAccountIds).