Skip to content

Commit d2f3201

Browse files
committed
fix: make entire task tool block clickable to navigate to subagent session (anomalyco#15769)
Previously only the description subtitle was clickable. Now the entire BasicTool container has onClick + cursor:pointer when a child session href is available.
1 parent cb823b8 commit d2f3201

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎packages/ui/src/components/message-part.tsx‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,14 @@ ToolRegistry.register({
15061506
</div>
15071507
)
15081508

1509-
return <BasicTool icon="task" status={props.status} trigger={trigger()} hideDetails />
1509+
return (
1510+
<div
1511+
onClick={href() ? handleLinkClick : undefined}
1512+
style={{ cursor: href() ? "pointer" : undefined }}
1513+
>
1514+
<BasicTool icon="task" status={props.status} trigger={trigger()} hideDetails />
1515+
</div>
1516+
)
15101517
},
15111518
})
15121519

0 commit comments

Comments
 (0)