


























@@ -692,7 +692,7 @@ export function resolveSessionOptionGroups(
692692const scopeLabel = normalizeOptionalString(parsed?.rest) ?? key;
693693let label = resolveSessionScopedOptionLabel(key, row, parsed?.rest);
694694if (isChild) {
695-label = `└─ ${label}`;
695+label = `└─ ${label.replace(/^Subagent:\s*/i, "")}`;
696696}
697697group.options.push({
698698 key,
@@ -729,6 +729,20 @@ export function resolveSessionOptionGroups(
729729addOption(sessionKey);
730730}
731731732+for (const group of groups.values()) {
733+const options = group.options;
734+for (let i = options.length - 1; i >= 0; i--) {
735+const parentKey = options[i].parentKey;
736+if (parentKey) {
737+const parentIdx = options.findIndex((o) => o.key === parentKey);
738+if (parentIdx !== -1) {
739+const [child] = options.splice(i, 1);
740+options.splice(parentIdx + 1, 0, child);
741+}
742+}
743+}
744+}
745+732746for (const group of groups.values()) {
733747const counts = new Map<string, number>();
734748for (const option of group.options) {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。