Commit 41488bd
committed
fix: keep inline tool call open while selecting text
Drag-selecting text inside an expanded ToolCallView or ExecuteToolView
released on the outer Box, which fired the toggle's onClick and
collapsed the card before the selection could be copied. Guard the
handler with window.getSelection(), matching the existing pattern in
SessionView.
Generated-By: PostHog Code
Task-Id: ee883416-a83f-4b1d-b097-6164d01f04fe1 parent 180b915 commit 41488bd
2 files changed
Lines changed: 8 additions & 6 deletions
File tree
- apps/code/src/renderer/features/sessions/components/session-update
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
0 commit comments