Commit 91158c0
Fix chatbox losing focus during automated workflows (#4574)
- Add preserveFocus option to openFile() function to prevent focus theft
- Implement automated workflow detection based on task streaming state and auto-approval settings
- Preserve chat focus when AI is actively processing to prevent accidental text insertion
- Update file mention handling to respect automated workflow state
- Add comments to clarify user-initiated vs automated file opening
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 395f55b commit 91158c0
File tree
3 files changed
+38
-2
lines changed- src
- core
- mentions
- webview
- integrations/misc
3 files changed
+38
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
40 | 55 | | |
41 | 56 | | |
42 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
430 | 446 | | |
431 | 447 | | |
432 | 448 | | |
| |||
481 | 497 | | |
482 | 498 | | |
483 | 499 | | |
| 500 | + | |
484 | 501 | | |
485 | 502 | | |
486 | 503 | | |
| |||
490 | 507 | | |
491 | 508 | | |
492 | 509 | | |
| 510 | + | |
493 | 511 | | |
494 | 512 | | |
495 | 513 | | |
| |||
513 | 531 | | |
514 | 532 | | |
515 | 533 | | |
| 534 | + | |
516 | 535 | | |
517 | 536 | | |
518 | 537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| |||
0 commit comments