|
@@ -866,7 +866,7 @@ export async function handleCardAction(data: unknown, cfg: ClawdbotConfig, accou
|
|
|
// 且没有其他工具产生用户授权需求)。跳过 OAuth,直接发合成消息触发 AI 重试,
|
|
// 且没有其他工具产生用户授权需求)。跳过 OAuth,直接发合成消息触发 AI 重试,
|
|
|
// 重试时工具会自然发现需要用户授权并发起正确的 OAuth 流程。
|
|
// 重试时工具会自然发现需要用户授权并发起正确的 OAuth 流程。
|
|
|
log.info('no business scopes to authorize after app auth, sending synthetic message for retry');
|
|
log.info('no business scopes to authorize after app auth, sending synthetic message for retry');
|
|
|
- const syntheticMsgId = `${flow.ticket.messageId}`;
|
|
|
|
|
|
|
+ const syntheticMsgId = `${flow.ticket.messageId}:app-auth-complete`;
|
|
|
const syntheticLine = '应用权限已开通,请继续执行之前的操作。';
|
|
const syntheticLine = '应用权限已开通,请继续执行之前的操作。';
|
|
|
const syntheticEvent = {
|
|
const syntheticEvent = {
|
|
|
sender: { sender_id: { open_id: flow.ticket.senderOpenId } },
|
|
sender: { sender_id: { open_id: flow.ticket.senderOpenId } },
|