Integrate delivered Code navigation and Yuxi channel recovery into Canvas trial source

This commit is contained in:
鲨鱼辣椒 committed 2026-10-14 00:10:15 +08:00
1 parent 2ca6e3199d
commit 3fe3fdb1c0
38 files changed
+1602 -198

No files matched your search

+6 -1
View File
@@ -56,6 +56,9 @@ const MESSAGES: Record<string, string> = {
channel_not_found: '微信渠道不存在或已解绑',
channel_operation_conflict: '微信渠道正在处理其他操作,请稍后查看状态',
channel_operation_unconfirmed: '微信绑定的变更尚未确认,请查看待确认操作后重试',
channel_operation_legacy: '这次旧微信操作无法安全恢复,请联系管理员核对后再操作',
identity_conflict: '当前账号关系不一致,请刷新状态并核对账号后再操作',
target_agent_unavailable: '当前智能体暂不可用,请刷新状态并重新选择智能体',
channel_request_invalid: '微信渠道请求无效,请刷新后重试',
channel_rate_limited: '微信渠道操作过于频繁,请稍后重试',
channel_conversation_not_found: '微信会话不存在或已关闭',
@@ -430,7 +433,9 @@ export class CloudAgentsModule {
if (plan.operation === 'unbindChannelAccount') {
const value = record(result), channel = record(value.channel);
if (value.unbound !== true || value.disconnected !== true || channel.id !== plan.input.channel_account_id
|| channel.enabled !== false || channel.target_agent_slug !== null || channel.health !== 'login_required') {
|| channel.enabled !== false || channel.target_agent_slug !== null || channel.health !== 'login_required'
|| (Array.isArray(channel.blockers) && channel.blockers.includes('wechat_disconnect_pending'))
|| (channel.sync_state !== undefined && channel.sync_state !== 'ready') || channel.desired_state === 'enabled') {
// Keep the original operation in recovery until both routing and login are confirmed removed.
throw new CloudAgentsError(503, 'channel_operation_unconfirmed');
}