fix(feishu): add one-click card callback repair

This commit is contained in:
xmanrui 2026-08-21 13:43:02 +08:00
parent 0e62c69382
commit c1a3b0cf97
24 changed files with 3601 additions and 248 deletions

View file

@ -130,13 +130,15 @@ export async function createProductionController(ctx, config = {}, internals = {
verifyApp,
credentials: ctx.credentials,
configStore: observedConfigStore,
createRuntime: async ({ botId, config: botConfig, appSecret }) => {
createRuntime: async ({ botId, config: botConfig, appSecret, repair }) => {
const state = await stateFor(botConfig);
const id = botId ?? botConfig.id ?? botConfig.appId;
await workspaces.ensure(id);
const workspaceScope = createBotWorkspaceScope(harness, { botId: id, workspaces, state });
return new Runtime({
lark,
botId: id,
repair,
appId: botConfig.appId,
appSecret,
domain: botConfig.domain,