feat: Subagent 拓扑页面(主代理根节点 + 分层树 + 实时工具调用 + 自动激活设置),v0.1.9

This commit is contained in:
Menghuan1918 committed 2026-08-10 17:24:42 +08:00
1 parent 1064ce954f
commit 61b18cbefe
22 files changed
+1547 -30

No files matched your search

+4 -3
View File
@@ -11,7 +11,7 @@
*/
import { SIDEBAR_PREFS_DEFAULTS, type SidebarPrefs } from '../prefs-shared.ts'
export type TabType = 'explorer' | 'git' | 'editor' | 'terminal'
export type TabType = 'explorer' | 'git' | 'editor' | 'terminal' | 'subagent'
/** One open tab. `path` carries the file (editor) or is absent (explorer/git). */
export interface SidebarTab {
@@ -291,9 +291,9 @@ export function activateTab(state: SidebarState, paneId: string, tabId: string):
}
}
/** Whether a tab type is single-instance per session (explorer/git). */
/** Whether a tab type is single-instance per session (explorer/git/subagent). */
function isSingle(type: TabType): boolean {
return type === 'explorer' || type === 'git'
return type === 'explorer' || type === 'git' || type === 'subagent'
}
/**
@@ -506,6 +506,7 @@ function sanitizeNode(node: unknown, seen: Set<string>, reid: Map<string, string
if (
candidate.type !== 'explorer' && candidate.type !== 'git'
&& candidate.type !== 'editor' && candidate.type !== 'terminal'
&& candidate.type !== 'subagent'
) {
return undefined
}