Skip to content

♻️ refactor(bot): slim iMessage setup schema to user-edited fields#15291

Merged
arvinxx merged 1 commit into
canaryfrom
feat/imessage-schema-simplify
May 28, 2026
Merged

♻️ refactor(bot): slim iMessage setup schema to user-edited fields#15291
arvinxx merged 1 commit into
canaryfrom
feat/imessage-schema-simplify

Conversation

@arvinxx

@arvinxx arvinxx commented May 28, 2026

Copy link
Copy Markdown
Member

💻 Change Type

  • ♻️ refactor

🔀 Description of Change

Removes credentials.desktopDeviceId and credentials.webhookSecret from the iMessage platform schema. Neither is user-supplied:

  • desktopDeviceId — the Desktop client fills it from the local gateway (getDeviceInfo).
  • webhookSecret — a cloud↔desktop shared secret that the Desktop client generates on first save.

After this change the iMessage setup form only asks for the fields a user actually edits (Application ID + the BlueBubbles bridge fields, which live in the Desktop-only CredentialExtras).

Safe to land ahead of the Desktop bridge PR: iMessage is still gated as "Coming Soon" in the channel list (COMING_SOON_PLATFORMS), so no one can reach this form yet. The Desktop bridge PR (which auto-fills both values and unveils the platform) depends on this.

🔗 Related Issue

Part of the iMessage channel work (LOBE-6554 / LOBE-6384); carved out of the Desktop bridge branch so the server schema lands independently.

🧪 Testing

  • bun run type-check

…user schema

These are not user-supplied: the Desktop client fills the device id from the
local gateway and generates the webhook secret on first save. Removing them
from the platform schema keeps the iMessage setup form to the fields the user
actually edits.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel

vercel Bot commented May 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lobehub Ready Ready Preview, Comment May 28, 2026 9:56am

Request Review

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label May 28, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've reviewed this pull request using the Sourcery rules engine

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 30765ea319

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +7 to +9
// `credentials.desktopDeviceId` and `credentials.webhookSecret` are not user
// fields: the Desktop client fills the device id from the local gateway and
// generates the webhook secret on first save (see imessage/CredentialExtras).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep iMessage required credentials in the exposed schema

Because agentBotProvider.listPlatforms returns platformRegistry.listSerializedPlatforms() directly (src/server/routers/lambda/agentBotProvider.ts:48-49), this schema is still exposed to authenticated API/tool clients even while the channel page masks iMessage as coming soon. Removing the credentials section makes schema-driven clients believe no desktopDeviceId or webhookSecret is needed, but the runtime still rejects missing values in ImessageClientFactory.validateCredentials and resolveCredentials, so any bot created from the advertised schema will save/connect as an unusable iMessage provider until a separate Desktop-only filler lands.

Useful? React with 👍 / 👎.

@codecov

codecov Bot commented May 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.12%. Comparing base (1b74566) to head (30765ea).
⚠️ Report is 1 commits behind head on canary.

Additional details and impacted files
@@             Coverage Diff             @@
##           canary   #15291       +/-   ##
===========================================
- Coverage   89.69%   71.12%   -18.58%     
===========================================
  Files         859     3175     +2316     
  Lines      104915   317462   +212547     
  Branches     9187    27988    +18801     
===========================================
+ Hits        94105   225799   +131694     
- Misses      10638    91491    +80853     
  Partials      172      172               
Flag Coverage Δ
app 61.96% <ø> (?)
database 92.22% <ø> (ø)
packages/agent-runtime 80.48% <ø> (ø)
packages/builtin-tool-lobe-agent 18.52% <ø> (ø)
packages/context-engine 84.13% <ø> (ø)
packages/conversation-flow 91.29% <ø> (ø)
packages/file-loaders 87.89% <ø> (ø)
packages/memory-user-memory 74.99% <ø> (ø)
packages/model-bank 99.99% <ø> (ø)
packages/model-runtime 84.70% <ø> (ø)
packages/prompts 72.67% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/types 35.93% <ø> (ø)
packages/utils 88.47% <ø> (ø)
packages/web-crawler 88.08% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Store 68.47% <ø> (∅)
Services 54.64% <ø> (∅)
Server 72.35% <ø> (∅)
Libs 56.97% <ø> (∅)
Utils 81.44% <ø> (-18.56%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arvinxx arvinxx merged commit a7f3811 into canary May 28, 2026
43 of 44 checks passed
@arvinxx arvinxx deleted the feat/imessage-schema-simplify branch May 28, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant