Repository navigation
Commit 816a674
committed
fix(tool-search): remove unused OpenClawConfig import and fix test to use applyToolCatalogCompaction
1. Removed unused OpenClawConfig import from tool-search-catalog.ts
(it was only used indirectly through resolveToolSearchConfig)
2. Fixed the regression test to directly call applyToolCatalogCompaction
instead of applyToolSearchCatalog, because the Code Mode simulation
requires passing isVisibleControlTool which is internal to the generic
compaction function.
The test now correctly verifies that alwaysVisibleTools is ignored in
Code Mode (mode='code'), keeping only control tools direct while
cataloging all other tools including those in alwaysVisibleTools.1 parent 747df8d commit 816a674
2 files changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | 323 | | |
329 | 324 | | |
330 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
331 | 328 | | |
332 | 329 | | |
333 | 330 | | |
| |||
336 | 333 | | |
337 | 334 | | |
338 | 335 | | |
| 336 | + | |
339 | 337 | | |
340 | 338 | | |
341 | 339 | | |
| |||
0 commit comments