Przeglądaj źródła

Merge branch 'master' into agent/fix-remote-welcome-onboarding

imccyu 2 miesięcy temu
rodzic
commit
33b52502f4

+ 11 - 0
apps/web/tests/subagent-conversation.e2e.ts

@@ -400,6 +400,17 @@ describe('web e2e: persisted subagent conversation and human continuation', () =
     const tree = page.getByRole('tree', { name: 'Subagent sessions' })
     const nestedRow = tree.getByRole('treeitem', { name: new RegExp(NESTED_LABEL) })
     expect(await nestedRow.locator(':scope > *').count()).toBe(1)
+    const clickArea = nestedRow.locator(':scope > *')
+    const [treeBox, clickAreaBox] = await Promise.all([
+      tree.boundingBox(),
+      clickArea.boundingBox(),
+    ])
+    expect(treeBox).not.toBeNull()
+    expect(clickAreaBox).not.toBeNull()
+    expect([
+      Math.round(clickAreaBox!.x - treeBox!.x),
+      Math.round(treeBox!.x + treeBox!.width - clickAreaBox!.x - clickAreaBox!.width),
+    ]).toEqual([5, 5])
     await compareOrRefreshGolden(
       BRANCHLESS_EXPECTED,
       await captureStableAria(page, '[role="tree"][aria-label="Subagent sessions"]', scaffold.workspaceCwd),

+ 1 - 1
packages/client/ui-subagent/src/client/SubagentCatalogAction.module.css

@@ -67,7 +67,7 @@
   min-width: 0;
 }
 .menu > .node {
-  margin-left: -8px;
+  margin-left: -3px;
 }
 
 .row {