Repository navigation
Commit 168de43
committed
Use singleton helper functions to cache and reuse output channels for agent search and reasoning logs
- output channel should focus on showing the agent returned value, not executable etc
- should not dispose, so user can see it afterwards. on new search should clean the old state
- re-running in the same flow should also clear output channel
- log reasoning to output channel
- clear reasoning with a new request
- use similar convention in `apps/editor/src/features/search-files/search-modes/perform-agent-search-mode/perform-agent-search-mode.ts` [Pasted text]1 parent f65be7a commit 168de43
2 files changed
Lines changed: 27 additions & 22 deletions
File tree
- apps/editor/src
- features/search-files/search-modes/perform-agent-search-mode
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
26 | 35 | | |
27 | 36 | | |
28 | 37 | | |
| |||
60 | 69 | | |
61 | 70 | | |
62 | 71 | | |
63 | | - | |
64 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
65 | 75 | | |
66 | 76 | | |
67 | 77 | | |
| |||
499 | 509 | | |
500 | 510 | | |
501 | 511 | | |
| 512 | + | |
| 513 | + | |
502 | 514 | | |
503 | 515 | | |
504 | 516 | | |
| |||
518 | 530 | | |
519 | 531 | | |
520 | 532 | | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | 533 | | |
526 | 534 | | |
527 | 535 | | |
| |||
564 | 572 | | |
565 | 573 | | |
566 | 574 | | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
| 575 | + | |
571 | 576 | | |
572 | 577 | | |
573 | 578 | | |
| |||
590 | 595 | | |
591 | 596 | | |
592 | 597 | | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | 598 | | |
597 | 599 | | |
598 | 600 | | |
| |||
755 | 757 | | |
756 | 758 | | |
757 | 759 | | |
758 | | - | |
759 | | - | |
760 | 760 | | |
761 | 761 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
10 | 18 | | |
11 | 19 | | |
12 | 20 | | |
| |||
87 | 95 | | |
88 | 96 | | |
89 | 97 | | |
| 98 | + | |
| 99 | + | |
90 | 100 | | |
91 | 101 | | |
92 | 102 | | |
| |||
123 | 133 | | |
124 | 134 | | |
125 | 135 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 136 | | |
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
135 | | - | |
| 140 | + | |
136 | 141 | | |
137 | 142 | | |
138 | 143 | | |
| |||
0 commit comments