Skip to content

Commit 26bd0a4

Browse files
committed
test(ui): give the moved attention-panel test its agent selection
sidebar-attention reads context.agentSelection.state during refresh ownership; CI's striped worker mix exercised that path and crashed the render, leaving the trigger unrendered.
1 parent 7021d92 commit 26bd0a4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎ui/src/components/sidebar-attention.test.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ describe("sidebar attention refresh ownership", () => {
249249
snapshot: { approvalQueue: [] },
250250
subscribe: () => () => undefined,
251251
},
252+
agentSelection: {
253+
state: { selectedId: null, scopeId: null },
254+
subscribe: () => () => undefined,
255+
},
252256
scopeUpgrade: hiddenScopeUpgradeCapability,
253257
} as unknown as ApplicationContext);
254258
const element = document.createElement("openclaw-sidebar-attention") as SidebarAttentionElement;

0 commit comments

Comments
 (0)