feat(lark): support Lark international domain alongside Feishu#602
Open
loind wants to merge 1 commit into
Open
feat(lark): support Lark international domain alongside Feishu#602loind wants to merge 1 commit into
loind wants to merge 1 commit into
Conversation
Add a domain field ("feishu"|"lark") to Lark plugin credentials and
test config so the API host is selectable (open.feishu.cn vs
open.larksuite.com). LarkApi is now domain-aware (replaces hardcoded
consts); initialize() reads the stored domain, defaulting to Feishu
for backward compatibility. Expose the stored domain in plugin status
so the UI can restore the selected region after reload.
This was referenced Jul 11, 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.
Summary
Support the Lark international domain (
open.larksuite.com) alongside Feishu (open.feishu.cn) in the Lark channel plugin. The domain was previously hardcoded to Feishu, so Lark international apps could not connect (WebSocket long-connection returnedIncorrect domain name).Changes
domain("feishu"|"lark") toPluginCredentialsandTestPluginExtraConfig.LarkDomainenum;LarkApiis domain-aware (replaces the hardcodedopen.feishu.cnconstants) for token, bot-info, WS endpoint, and message APIs.initialize()reads the stored domain, defaulting to Feishu for backward compatibility.build_test_configmapsextra_config.domainfor the lark plugin.PluginStatusResponse+ status view) so the UI can restore the selected region after reload.Testing
cargo test -p aionui-channel -p aionui-api-types --features lark— all green.Lark WebSocket connected.Compatibility
Default is Feishu, so existing Feishu setups are unaffected. The
larkmodule remains behind thelarkfeature.Pairs with
Frontend: iOfficeAI/AionUi#3559