feat: verify custom-pane send auto-switches right chat pane (probe hooks + chatswitch-probe)

This commit is contained in:
Aisland
2026-08-18 22:26:44 +08:00
parent e8d4df141b
commit c60133bc88
4 changed files with 145 additions and 1 deletions
+1
View File
@@ -1389,6 +1389,7 @@ export const inject = ['slots', 'locale', 'sessions', 'conversation']
export function apply(ctx: any) {
// 自定义窗口 → 宿主会话桥:保存 sessions/conversation/list 服务引用(模块级)
sessionBridge = { sessions: ctx.sessions ?? null, conversation: ctx.conversation ?? null, list: ctx.sessions?.list ?? null }
try { (window as any).__dshOpenSession = (id: string) => ctx.sessions?.open?.(id); (window as any).__dshSessions = ctx.sessions } catch {}
ctx.effect(() => {