Skip to content

Commit b33f19e

Browse files
committed
Make whole collapsed agent clickable
1 parent fa3027b commit b33f19e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cli/src/components/agent-branch-item.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,21 +219,22 @@ export const AgentBranchItem = memo((props: AgentBranchItemProps) => {
219219

220220
{isCollapsed ? (
221221
showCollapsedPreview ? (
222-
<box
222+
<Button
223223
style={{
224224
paddingLeft: 1,
225225
paddingRight: 1,
226226
paddingTop: 0,
227227
paddingBottom: 0,
228228
}}
229+
onClick={onToggle}
229230
>
230231
<text
231232
fg={isStreaming ? theme.foreground : theme.muted}
232233
attributes={getAttributes(TextAttributes.ITALIC)}
233234
>
234235
{isStreaming ? streamingPreview : finishedPreview}
235236
</text>
236-
</box>
237+
</Button>
237238
) : null
238239
) : (
239240
<box

0 commit comments

Comments
 (0)