Skip to content

Commit 3b9458b

Browse files
fix(web): allow expanding shell tool output while command is running
Removes two guards in BasicTool that prevented expanding/collapsing shell output during command execution. The backend already streams metadata.output reactively, so the data is available — the UI just blocked visibility. Refs anomalyco#22116
1 parent 9f201d6 commit 3b9458b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎packages/ui/src/components/basic-tool.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ export function BasicTool(props: BasicToolProps) {
119119
})
120120

121121
const handleOpenChange = (value: boolean) => {
122-
if (pending()) return
123122
if (props.locked && !value) return
124123
setState("open", value)
125124
}
@@ -189,7 +188,7 @@ export function BasicTool(props: BasicToolProps) {
189188
</Switch>
190189
</div>
191190
</div>
192-
<Show when={props.children && !props.hideDetails && !props.locked && !pending()}>
191+
<Show when={props.children && !props.hideDetails && !props.locked}>
193192
<Collapsible.Arrow />
194193
</Show>
195194
</div>

0 commit comments

Comments
 (0)