Repository navigation
Commit e72a0ec
committed
fix(tables): follow the folder selector consolidation, and name the real delete guard
Rebasing onto staging after the File folder work landed (#7393). Two
adjustments to what that merge changed, and one correction.
`readFolderPath` moved from under the sub-block component tree to
`lib/folders/selection.ts`, and the `sim-folder-tree-selector` subblock
type was consolidated into the pre-existing `folder-selector`. Both are
better homes; this follows them.
The delete-cascade assertion named the wrong layer. It claimed "the
block's own schema is what an Agent tool surface is built from", which
contradicts what this same change established for the move destination:
`createLLMToolSchema` reads `toolConfig.params`, not the block's
subblocks. So the guard that actually keeps a model out of the recursive
delete is the TOOL param's `visibility: 'user-only'` — it drives both
the omission from the model's schema and `modelBlockedParams`, which
`stripModelBlockedParams` then removes from the model's arguments before
merge. The subblock's `paramVisibility` governs the tool-input row UI via
`isToolParamUserRequired`, which is a real thing but not a guard. Both
are still set; the test now asserts the tool param first and says which
one enforces.1 parent 8530364 commit e72a0ec
5 files changed
Lines changed: 23 additions & 12 deletions
File tree
- apps/sim
- blocks/blocks
- tools/generated
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
240 | | - | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
| |||
342 | 343 | | |
343 | 344 | | |
344 | 345 | | |
345 | | - | |
346 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
347 | 358 | | |
348 | 359 | | |
349 | 360 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
544 | | - | |
| 544 | + | |
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
| 577 | + | |
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
| 605 | + | |
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
| 633 | + | |
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
| 705 | + | |
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
| |||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
0 commit comments