fix: учитывать отключенные tools в лимите провайдера#683
Merged
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: xlabtg#682
Collaborator
Author
Working session summaryГотово: исправление запушено в PR: #683 Что сделано:
Проверки прошли:
Рабочее дерево чистое. This summary was automatically extracted from the AI working session output. |
Collaborator
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (433.1K + 6.9M cached) input tokens, 28.8K output tokens, $12.503953 cost 🤖 Models used:
📎 Log file uploaded as Gist (3918KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Collaborator
Author
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что исправлено
Fixes #682.
Отключенные через admin panel tools больше не учитываются как активные при startup-проверке лимита провайдера и при индексации Tool RAG. При этом management API по-прежнему видит все зарегистрированные tools, чтобы отключенные элементы можно было снова включить.
Изменения
ToolRegistry:getEnabledTools()иenabledCountисключаютlevel: off.off.Воспроизведение и тест
Регрессионные тесты создают tool с
scope_level = offвtool_configи проверяют, что он остается доступен вgetAll()для управления, но исключается изgetEnabledTools()/enabledCount. Отдельно проверены runtime disable/enable callbacks и регистрация plugin tool, отключенного в DB.Проверки
npm run typechecknpm run lintnpm run format:checknpm test -- src/agent/tools/__tests__/registry.test.ts src/webui/__tests__/tools-rag-persistence.test.tsnpm testnpm run buildЗамечания
Во время установки зависимостей остались существующие предупреждения
npm audit/allow-scripts, а при build - существующие предупреждения Vite поlottie-webeval и крупным chunks. Они не связаны с этим исправлением.