fix(consumer): propagate managed Jarvis backend config#806
Merged
artemgetmann merged 1 commit intoMay 28, 2026
Conversation
- What: persist managed Jarvis backend config and keychain-backed account token refs during activation and managed Telegram setup. - What: resolve Jarvis SecretInput refs in the Node runtime snapshot and allow managed utility calls to use the resolved account token. - Why: managed Telegram bots need Firecrawl, Brave Search, Google Places, and Gemini image calls routed through Jarvis instead of local BYOK fallback. - Risk: changes token resolution and managed utility auth; covered by focused Swift and Node tests, with no shared runtime touched.
This was referenced May 28, 2026
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
Why This Matters
Managed Telegram bots need Jarvis backend routing for Firecrawl, Brave Search, Google Places, and Gemini image. Before this, onboarding could save Telegram config without the Jarvis managed mode/base URL/token bridge the Node runtime needs.
Scope Boundary
jarvis.backend.accessTokenandjarvis.backend.accountAccessToken.Verification
pnpm installpassed in this worktree.pnpm vitest run --config vitest.unit.config.ts --pool=forks src/consumer/jarvis-backend-client.test.ts --maxWorkers 1passed: 7 tests.pnpm vitest run --config vitest.unit.config.ts --pool=forks src/consumer/jarvis-backend-client.test.ts src/consumer/gemini-image-generation.test.ts src/consumer/google-places-search.test.ts src/config/config.jarvis.test.ts --maxWorkers 2passed: 4 files, 16 tests.pnpm vitest run --config vitest.unit.config.ts --pool=forks src/secrets/runtime.test.ts -t "resolves Jarvis backend token refs" --maxWorkers 1passed: 1 test, 60 skipped.pnpm vitest run --config vitest.unit.config.ts --pool=forks test/scripts/verify-public-package-secrets.test.ts --maxWorkers 1passed: 3 tests.cd apps/macos && swift test --filter JarvisAccountActivationTestspassed: 6 tests.cd apps/macos && swift test --filter TelegramSetupBootstrapTestspassed: 19 tests.git diff --checkpassed.Known Test Runner Note
pnpm test -- ...parallel wrapper hung after one shard in this worktree, so I killed that test process and reran the same coverage as split direct Vitest commands.AI Assistance