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

This commit is contained in:
Menghuan1918
2026-08-10 17:24:42 +08:00
parent 1064ce954f
commit 61b18cbefe
22 changed files with 1547 additions and 30 deletions
+6
View File
@@ -15,6 +15,11 @@ export interface SidebarPrefs {
openByDefault: boolean
/** Default panel width as a percent of the window width (20–60). */
defaultWidthPercent: number
/**
* Whether the sidebar auto-activates (opens the panel) and expands the
* Subagent page when the current conversation spawns a new subagent.
*/
autoOpenSubagent: boolean
}
/** Range contract of {@link SidebarPrefs.defaultWidthPercent}. */
@@ -26,6 +31,7 @@ export const WIDTH_PERCENT_DEFAULT = 30
export const SIDEBAR_PREFS_DEFAULTS: SidebarPrefs = {
openByDefault: true,
defaultWidthPercent: WIDTH_PERCENT_DEFAULT,
autoOpenSubagent: true,
}
/** Clamp one width percent into the contract range (shared by schema and client reads). */