fix(gateway): refresh Telegram setup replay config#832
Merged
artemgetmann merged 2 commits intoMay 31, 2026
Conversation
- What: read the current config file for Telegram setup replay instead of the gateway runtime snapshot. - Why: Jarvis Consumer can save the Telegram token after gateway startup, leaving the runtime snapshot stale. - Risk: low; scoped to setup replay verification and preserves token secrecy.
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.
Review Fast Path
pnpm exec vitest run src/gateway/server.channels.test.ts --testNamePattern "setup-replay";pnpm exec vitest run src/gateway/server.channels.test.ts;pnpm exec vitest run src/config/io.runtime-snapshot-write.test.ts;pnpm exec oxfmt --check src/gateway/server-methods/channels.ts src/gateway/server.channels.test.ts;git diff --check.Why This Matters
channels.telegram.botTokenandchannels.telegram.accounts.default.botToken.channels.telegram.setup-replaywas reading exportedloadConfig(), which returnsruntimeConfigSnapshotfirst.Telegram bot token is not configured.even when the config file had the token.Scope Boundary
/Applications/Jarvis.app,/Applications/Jarvis Consumer.app, or sharedai.openclaw.gateway.Summary
Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
Verify Telegram can proceed when the token is present in the current config file but absent from the gateway startup runtime snapshot.
Security Impact (required)
Yes, explain risk + mitigation: N/ARepro + Verification
Environment
.worktrees/fix-telegram-setup-replay-config-refresh-20260531channels.telegram.botTokenandchannels.telegram.accounts.default.botTokenpresent after startupSteps
channels.telegram.setup-replay.Expected
Actual
runtimeConfigSnapshotand reportedTelegram bot token is not configured.Evidence
Human Verification (required)
Review Conversations
Compatibility / Migration
Failure Recovery (if this breaks)
8238ade54a8ae7da863aaa0bb9326def5285d5f0.src/gateway/server-methods/channels.ts,src/gateway/server.channels.test.ts.Risks and Mitigations
AI Assistance