Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(lark): simplify to 4 steps — event subscription is post-start
cyh0a7b6d535dcf
diff --git a/ui/src/components/steps/LarkConfig.tsx b/ui/src/components/steps/LarkConfig.tsxindex edcfd18eb..c223c7fe9 100644--- a/ui/src/components/steps/LarkConfig.tsx+++ b/ui/src/components/steps/LarkConfig.tsx@@ -1,5 +1,5 @@import React, { useEffect, useMemo, useState } from 'react';-import { Shield, RefreshCw, Check, MessageSquare, KeyRound, Plus, ExternalLink, ChevronDown, ChevronUp, Send, BookOpen, Copy, AlertTriangle } from 'lucide-react';+import { Shield, RefreshCw, Check, MessageSquare, KeyRound, Plus, ExternalLink, ChevronDown, ChevronUp, BookOpen, Copy, AlertTriangle } from 'lucide-react';import { useTranslation } from 'react-i18next';import clsx from 'clsx';import { useApi } from '../../context/ApiContext';@@ -35,7 +35,7 @@ export const LarkConfig: React.FC<LarkConfigProps> = ({ data, onNext, onBack })const [checking, setChecking] = useState(false);const [authResult, setAuthResult] = useState<any>(null);const [chats, setChats] = useState<any[]>([]);- const [expandedSteps, setExpandedSteps] = useState<Record<number, boolean>>({ 1: true, 2: false, 3: false, 4: false, 5: false });+ const [expandedSteps, setExpandedSteps] = useState<Record<number, boolean>>({ 1: true, 2: false, 3: false, 4: false });const [copiedJson, setCopiedJson] = useState(false);useEffect(() => {@@ -43,8 +43,8 @@ export const LarkConfig: React.FC<LarkConfigProps> = ({ data, onNext, onBack })}, [appId, appSecret]);useEffect(() => {- if (appId && appSecret && !expandedSteps[5]) {- setExpandedSteps(prev => ({ ...prev, 5: true }));+ if (appId && appSecret && !expandedSteps[4]) {+ setExpandedSteps(prev => ({ ...prev, 4: true }));}}, [appId, appSecret]);@@ -230,7 +230,7 @@ export const LarkConfig: React.FC<LarkConfigProps> = ({ data, onNext, onBack }))}</div>- {/* Step 3: Publish App (must be before Event Subscription) */}+ {/* Step 3: Publish App */}<div className="bg-panel border border-border rounded-xl overflow-hidden"><StepHeaderstep={3}@@ -251,44 +251,17 @@ export const LarkConfig: React.FC<LarkConfigProps> = ({ data, onNext, onBack }))}</div>- {/* Step 4: Configure Event Subscription */}+ {/* Step 4: Enter Credentials & Validate */}<div className="bg-panel border border-border rounded-xl overflow-hidden"><StepHeaderstep={4}title={t('larkConfig.step4Title')}- icon={<Send size={16} className="text-accent" />}- />- {expandedSteps[4] && (- <div className="p-4 space-y-4 border-t border-border">- <p className="text-sm text-muted">{t('larkConfig.step4Description')}</p>- <ol className="list-decimal list-inside space-y-1.5 text-sm text-muted pl-1">- <li>{t('larkConfig.step4Item1')}</li>- <li>{t('larkConfig.step4Item2')}</li>- <li>{t('larkConfig.step4Item3')}</li>- </ol>- {/* Long connection FAQ */}- <div className="bg-neutral-50 border border-neutral-200 rounded-lg p-3 space-y-1.5">- <div className="flex items-center gap-2 text-sm font-medium text-text">- <AlertTriangle size={14} className="text-amber-500" />- {t('larkConfig.step3LongConnFaqTitle')}- </div>- <p className="text-xs text-muted">{t('larkConfig.step3LongConnFaqDesc')}</p>- </div>- </div>- )}- </div>-- {/* Step 5: Enter Credentials & Validate */}- <div className="bg-panel border border-border rounded-xl overflow-hidden">- <StepHeader- step={5}- title={t('larkConfig.step5Title')}icon={<KeyRound size={16} className="text-accent" />}completed={isValid}/>- {expandedSteps[5] && (+ {expandedSteps[4] && (<div className="p-4 space-y-4 border-t border-border">- <p className="text-sm text-muted">{t('larkConfig.step5Description')}</p>+ <p className="text-sm text-muted">{t('larkConfig.step4Description')}</p><div className="space-y-2 pt-2"><label className="text-sm font-medium text-text flex items-center gap-2">@@ -365,6 +338,15 @@ export const LarkConfig: React.FC<LarkConfigProps> = ({ data, onNext, onBack })</div></div>)}++ {/* Post-start event subscription note */}+ <div className="bg-blue-50 border border-blue-200 rounded-lg p-3 space-y-1.5">+ <div className="flex items-center gap-2 text-sm font-medium text-blue-800">+ <AlertTriangle size={14} className="text-blue-600" />+ {t('larkConfig.step3LongConnFaqTitle')}+ </div>+ <p className="text-xs text-blue-700">{t('larkConfig.step3LongConnFaqDesc')}</p>+ </div></div>)}</div>diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.jsonindex 2a957ccb9..061c7bbca 100644--- a/ui/src/i18n/en.json+++ b/ui/src/i18n/en.json@@ -146,15 +146,8 @@"step3Item1": "Go to \"Version Management & Release\"","step3Item2": "Create a new version and submit for release","step3Tip": "The app must be published before the \"Use Long Connection\" option appears in Event Subscription settings.",- "step4Title": "Configure Event Subscription",- "step4Description": "Set up event subscription to receive messages via WebSocket long connection.",- "step4Item1": "Go to \"Events & Callbacks\" in your app settings",- "step4Item2": "Set subscription method to \"Use Long Connection\"",- "step4Item3": "Add event: im.message.receive_v1 (Receive Messages)",- "step3LongConnFaqTitle": "Can't find \"Use Long Connection\"?",- "step3LongConnFaqDesc": "If you only see \"Send events to developer server\", your app is likely not published yet. Complete Step 3 (Publish App) first, then return to Events & Callbacks — the \"Use Long Connection\" option will appear. If still missing, also check that the Bot capability is enabled in your app.",- "step5Title": "Enter Credentials & Validate",- "step5Description": "Enter your App ID and App Secret from the \"Credentials & Basic Info\" page.",+ "step4Title": "Enter Credentials & Validate",+ "step4Description": "Enter your App ID and App Secret from the \"Credentials & Basic Info\" page.","appId": "App ID","appIdPlaceholder": "cli_xxxxxxxxxx","appIdHint": "Found in Credentials & Basic Info page",diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.jsonindex 76ede909c..0dbe2037c 100644--- a/ui/src/i18n/zh.json+++ b/ui/src/i18n/zh.json@@ -146,15 +146,8 @@"step3Item1": "进入「版本管理与发布」","step3Item2": "创建新版本并提交发布","step3Tip": "应用必须先发布上线,「使用长连接接收事件」选项才会出现在事件订阅设置中。",- "step4Title": "配置事件订阅",- "step4Description": "配置事件订阅,通过 WebSocket 长连接接收消息。",- "step4Item1": "进入应用的「事件与回调」设置",- "step4Item2": "订阅方式选择「使用长连接接收事件」",- "step4Item3": "添加事件:im.message.receive_v1(接收消息)",- "step3LongConnFaqTitle": "找不到「使用长连接接收事件」?",- "step3LongConnFaqDesc": "如果只看到「将事件发送至开发者服务器」,说明应用尚未发布上线。请先完成第 3 步(发布应用),然后再回到「事件与回调」页面,就会出现「使用长连接接收事件」选项。如果仍然看不到,请检查应用是否已开启「机器人」能力。",- "step5Title": "填入凭证并验证",- "step5Description": "从「凭证与基础信息」页面获取 App ID 和 App Secret。",+ "step4Title": "填入凭证并验证",+ "step4Description": "从「凭证与基础信息」页面获取 App ID 和 App Secret。","appId": "App ID","appIdPlaceholder": "cli_xxxxxxxxxx","appIdHint": "在「凭证与基础信息」页面获取",