Commit c9eed14
committed
Make fixed mode's index list completely static
In fixed mode, refreshIndexList() is now a no-op. The index list is
completely static and never changes, even if indexes are deleted from
the store.
This fixes the issue where:
1. Fixed mode starts with [-i pytorch -i react]
2. User deletes pytorch from the store
3. Agent calls list_indexes → triggers refreshIndexList()
4. Previously: indexNames would shrink to ["react"]
5. Now: indexNames remains ["pytorch", "react"]
In discovery mode, refreshIndexList() still refreshes from the store
to pick up new/deleted indexes.
Changes:
- src/clients/multi-index-runner.ts: Make refreshIndexList() a no-op in fixed mode
- src/clients/multi-index-runner.test.ts: Update test to expect static list in fixed mode
All tests pass, build succeeds.
Agent-Id: agent-0ac871dd-5181-4ed9-84d1-446aa4b19c811 parent 2c37861 commit c9eed14
File tree
2 files changed
+15
-12
lines changed- src/clients
2 files changed
+15
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | | - | |
| 236 | + | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
212 | 214 | | |
213 | 215 | | |
214 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
215 | 220 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 221 | + | |
| 222 | + | |
220 | 223 | | |
221 | 224 | | |
222 | 225 | | |
223 | 226 | | |
224 | | - | |
| 227 | + | |
225 | 228 | | |
226 | 229 | | |
227 | 230 | | |
| |||
0 commit comments