Commit 06ce767
committed
fix(codebuff): shallow watching and CWD filter for Freebuff
1. Shallow watching: Changed codebuffWatchRoots to enumerate project
directories and emit shallow watches on <root>/*/chats/ instead of
recursive watches on <root>/. Reduces inotify usage from O(N*M) to
O(N) where N=projects and M=sessions.
2. CWD filter: Made skippedSourceAllowsCwdFilter query both
AgentCodebuff and AgentFreebuff so CWD filtering works for sources
containing only Freebuff sessions.1 parent 58a01a2 commit 06ce767
2 files changed
Lines changed: 47 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | | - | |
| 72 | + | |
71 | 73 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
78 | 93 | | |
79 | 94 | | |
80 | 95 | | |
81 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
82 | 103 | | |
83 | 104 | | |
84 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6545 | 6545 | | |
6546 | 6546 | | |
6547 | 6547 | | |
6548 | | - | |
6549 | | - | |
6550 | | - | |
6551 | | - | |
6552 | | - | |
6553 | | - | |
| 6548 | + | |
| 6549 | + | |
| 6550 | + | |
| 6551 | + | |
| 6552 | + | |
| 6553 | + | |
| 6554 | + | |
| 6555 | + | |
6554 | 6556 | | |
6555 | 6557 | | |
6556 | 6558 | | |
6557 | | - | |
6558 | | - | |
| 6559 | + | |
| 6560 | + | |
| 6561 | + | |
| 6562 | + | |
| 6563 | + | |
| 6564 | + | |
| 6565 | + | |
| 6566 | + | |
6559 | 6567 | | |
6560 | 6568 | | |
6561 | 6569 | | |
| |||
0 commit comments