From 64ec9d9745c515315fcf4f6845da2a9862ee96c9 Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Sun, 8 Nov 2026 00:24:35 +0800 Subject: [PATCH] test(tasks): keep the owned-task owner on a catalog row (#1026 after #1139) --- tests/tasks-page.spec.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/tasks-page.spec.tsx b/tests/tasks-page.spec.tsx index 01be02dc..3057d021 100644 --- a/tests/tasks-page.spec.tsx +++ b/tests/tasks-page.spec.tsx @@ -817,7 +817,9 @@ describe('Tasks page: owned tasks, host-primitive controls, draggable output', ( ['in_progress', false, '进行中'], ['completed', false, '已完成'], ] as const)('keeps the board, task line and tooltip consistent for %s (ready: %s)', async (status, ready, label) => { - withTeam({ tasks: [teamTask({ status, ready, ownerName: 'writer' })] }) + // The roster is catalog-driven after #1139: the owner name must exist on a + // catalog row for the task to attach to that child's line. + withTeam({ names: ['writer'], tasks: [teamTask({ status, ready, ownerName: 'writer' })] }) const store = makeStore(snapshotWithChildren(1)) const { container, unmount } = renderRoot( createElement(SubagentView, { sessionId: 'root', active: true, ctx: makeCtx(store) }),