Commit 844eda6
committed
fix(ts-anthropic-cua): add try/finally to ensure browser session cleanup
Wrap replay stopping logic in try/finally to ensure browser session is
always deleted even if stopReplay() fails. This prevents resource leaks
on the Kernel platform when replay recording is enabled and stopping fails.
Matches the existing Python implementation behavior.1 parent 7c204a5 commit 844eda6
1 file changed
+15
-12
lines changedLines changed: 15 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
197 | 201 | | |
198 | | - | |
199 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
200 | 207 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | 208 | | |
206 | 209 | | |
207 | 210 | | |
| |||
0 commit comments