Skip to content

Commit e16c8e6

Browse files
authored
fix(ui): stop terminal auto-select from stealing copilot input focus (#4201)
1 parent 9f41736 commit e16c8e6

File tree

1 file changed

+1
-2
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/terminal

1 file changed

+1
-2
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/terminal/terminal.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,6 @@ export const Terminal = memo(function Terminal() {
11151115
if (selectedEntryId === lastNavEntry.entry.id) return
11161116

11171117
setSelectedEntryId(lastNavEntry.entry.id)
1118-
focusTerminal()
11191118

11201119
if (lastNavEntry.parentNodeIds.length > 0) {
11211120
setExpandedNodes((prev) => {
@@ -1126,7 +1125,7 @@ export const Terminal = memo(function Terminal() {
11261125
return next
11271126
})
11281127
}
1129-
}, [executionGroups, navigableEntries, autoSelectEnabled, selectedEntryId, focusTerminal])
1128+
}, [executionGroups, navigableEntries, autoSelectEnabled, selectedEntryId])
11301129

11311130
/**
11321131
* Clear filters when there are no logs

0 commit comments

Comments
 (0)