Commit ba326ac
committed
fix: clear() wiping dynamically registered tools by tracking discovered state on references
clear() previously removed all non-manual elements, which destroyed
dynamically registered tools when setDiscoveryState() was called on
the next request cycle. Add isDiscovered flag to ElementReference so
clear() only removes elements that were imported via setDiscoveryState(),
preserving both manual and dynamic registrations.1 parent a98e01a commit ba326ac
File tree
10 files changed
+509
-76
lines changed- src/Capability
- Registry
- tests
- Inspector/Http/snapshots
- Unit/Capability
- Registry
10 files changed
+509
-76
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
194 | 168 | | |
195 | 169 | | |
196 | 170 | | |
| |||
344 | 318 | | |
345 | 319 | | |
346 | 320 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
351 | 325 | | |
352 | 326 | | |
353 | 327 | | |
| |||
360 | 334 | | |
361 | 335 | | |
362 | 336 | | |
363 | | - | |
| 337 | + | |
364 | 338 | | |
365 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
366 | 342 | | |
367 | 343 | | |
368 | 344 | | |
369 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
370 | 348 | | |
371 | 349 | | |
372 | 350 | | |
373 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
374 | 354 | | |
375 | 355 | | |
376 | 356 | | |
377 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
378 | 360 | | |
379 | 361 | | |
380 | 362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
0 commit comments