Commit 6744696
fix(workflow-executor): guard selectedTool lookup and resolve related collection schema
- Replace non-null assertion with explicit McpToolNotFoundError when AI
selects a tool name that doesn't match any available tool
- Resolve related collection name from parent schema before looking up
the related schema in cache, fixing cases where relation name differs
from target collection name
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f970c8a commit 6744696
2 files changed
Lines changed: 6 additions & 2 deletions
File tree
- packages/workflow-executor/src
- adapters
- executors
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
0 commit comments