You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Existing indexes continue to work without modification
97
133
- No migration or re-indexing required
98
134
99
135
When branch isolation is **enabled**:
136
+
100
137
- New collections are created per branch
101
138
- Existing workspace-only collections are not automatically migrated
102
139
- You may need to re-index to populate branch-specific collections
@@ -108,12 +145,14 @@ When branch isolation is **enabled**:
108
145
### When to Enable Branch Isolation
109
146
110
147
✅ **Enable if**:
148
+
111
149
- You frequently switch between multiple branches
112
150
- You work in a team where different members work on different branches
113
151
- You need accurate search results specific to each branch
114
152
- You have sufficient storage space available
115
153
116
154
❌ **Keep disabled if**:
155
+
117
156
- You primarily work on a single branch
118
157
- Storage space is limited
119
158
- You're working on a small personal project
@@ -142,30 +181,35 @@ For teams using branch isolation:
142
181
### Search results don't match my current branch
143
182
144
183
**Possible causes**:
184
+
145
185
- Branch isolation is disabled
146
186
- Index hasn't been updated after branch switch
147
187
- Git branch detection failed
148
188
149
189
**Solutions**:
190
+
150
191
1. Verify branch isolation is enabled in settings
151
192
2. Check that you're on the expected Git branch: `git branch --show-current`
152
193
3. Trigger a manual re-index if needed
153
194
154
195
### Storage usage is too high
155
196
156
197
**Solutions**:
198
+
157
199
1. Disable branch isolation if not needed
158
200
2. Clear indexes for old/unused branches
159
201
3. Use Qdrant's storage management tools to monitor and clean up collections
160
202
161
203
### Branch name not detected
162
204
163
205
**Possible causes**:
206
+
164
207
- Detached HEAD state
165
208
- Not in a Git repository
166
209
-`.git/HEAD` file is corrupted
167
210
168
211
**Solutions**:
212
+
169
213
1. Ensure you're on a named branch: `git checkout <branch-name>`
170
214
2. Verify you're in a Git repository: `git status`
171
215
3. Check `.git/HEAD` file exists and is readable
@@ -174,23 +218,29 @@ For teams using branch isolation:
174
218
175
219
## FAQ
176
220
177
-
**Q: Will enabling branch isolation delete my existing index?**
221
+
**Q: Will enabling branch isolation delete my existing index?**
178
222
A: No. Your existing workspace-level index remains unchanged. New branch-specific indexes are created separately.
179
223
180
-
**Q: What happens if I switch branches while indexing is in progress?**
181
-
A: The indexing operation completes for the original branch. When you switch branches, a new indexing operation may start for the new branch.
224
+
**Q: How quickly does Roo Code detect branch changes?**
225
+
A: Branch changes are detected in real-time using a file watcher on `.git/HEAD`. There's a 500ms debounce to handle rapid git operations (like rebase or cherry-pick) gracefully.
182
226
183
-
**Q: Can I migrate my existing index to use branch isolation?**
227
+
**Q: Will switching branches trigger a full re-index every time?**
228
+
A: No. If you've already indexed a branch, switching back to it only validates the collection. Full re-indexing only happens for new branches or if the collection doesn't exist.
229
+
230
+
**Q: What happens if I switch branches while indexing is in progress?**
231
+
A: The indexing operation completes for the original branch. When you switch branches, a new indexing operation may start for the new branch if it hasn't been indexed yet.
232
+
233
+
**Q: Can I migrate my existing index to use branch isolation?**
184
234
A: There's no automatic migration. When you enable branch isolation, you'll need to re-index to populate the branch-specific collections.
185
235
186
-
**Q: Does branch isolation work with detached HEAD?**
236
+
**Q: Does branch isolation work with detached HEAD?**
187
237
A: No. In detached HEAD state, the system falls back to the workspace-only collection name.
188
238
189
-
**Q: How do I delete indexes for old branches?**
239
+
**Q: How do I delete indexes for old branches?**
190
240
A: Use Qdrant's collection management API or UI to delete collections matching the pattern `ws-{hash}-br-{old-branch-name}`.
191
241
192
-
**Q: Does this affect performance?**
193
-
A: No. Search performance is the same whether branch isolation is enabled or disabled. Only storage usage is affected.
242
+
**Q: Does this affect performance?**
243
+
A: Search performance is the same whether branch isolation is enabled or disabled. Branch switching is optimized with caching and smart re-indexing, so performance impact is minimal. Only storage usage increases (one index per branch).
194
244
195
245
---
196
246
@@ -211,7 +261,6 @@ A: No. Search performance is the same whether branch isolation is enabled or dis
211
261
212
262
---
213
263
214
-
**Last Updated**: 2025-01-08
215
-
**Feature Version**: 1.0.0
264
+
**Last Updated**: 2025-01-08
265
+
**Feature Version**: 1.1.0 (with performance optimizations and auto-switching)
0 commit comments