Stop counting initializing agents as running

This commit is contained in:
Mohamed Boudra
2026-06-04 00:53:38 +07:00
parent f6c0b60b7c
commit b345ef1242
10 changed files with 35 additions and 19 deletions
@@ -68,16 +68,15 @@ describe("resolveArchiveSubagentDialog", () => {
});
});
it("uses running copy for initializing subagents", () => {
it("does not use running copy for initializing subagents", () => {
expect(
resolveArchiveSubagentDialog({
title: "Starting child",
status: "initializing",
}),
).toEqual({
title: "Archive running subagent?",
message:
"Starting child is still running. Archiving it will stop the subagent and remove it from the track.",
title: "Archive subagent?",
message: "Remove Starting child from the track. The subagent will be archived.",
confirmLabel: "Archive",
cancelLabel: "Cancel",
destructive: true,