This commit is contained in:
Naveen R. Iyer 2026-08-27 11:48:04 -07:00 committed by GitHub
commit ac161e0922
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3516,7 +3516,12 @@
const toolIds = [];
const toolServerIds = [];
for (const toolId of selectedToolIds) {
// Include this model's own attached tools so they apply in multi-model chats,
// independent of the composer's selectedToolIds lifecycle.
const modelDefaultToolIds = (model?.info?.meta?.toolIds ?? []).filter((id) =>
$tools.find((t) => t.id === id)
);
for (const toolId of [...new Set([...selectedToolIds, ...modelDefaultToolIds])]) {
if (toolId.startsWith('direct_server:')) {
let serverId = toolId.replace('direct_server:', '');
// Check if serverId is a number