mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
🐛 fix: slove the execAgents tools exec types not correct (#13807)
* fix: slove the execAgents tools exec types not correct * fix: should inject source:discovery when tools type is lost * fix: delete the source inject test
This commit is contained in:
parent
922f7ace41
commit
116495bd1e
1 changed files with 4 additions and 1 deletions
|
|
@ -101,7 +101,10 @@ export class ToolResolver {
|
|||
tools.push(...newTools);
|
||||
enabledToolIds.push(activation.id);
|
||||
|
||||
if (activation.source) {
|
||||
// Only set source if not already present — the operation-level sourceMap
|
||||
// may already have the correct routing source (e.g., 'lobehubSkill', 'klavis')
|
||||
// and the activation source ('discovery') should not overwrite it.
|
||||
if (activation.source && !sourceMap[activation.id]) {
|
||||
sourceMap[activation.id] = this.mapSource(activation.source);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue