Disabled tools can still be called by the agent
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 79/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
Bắt đầu tại agent-service/src/agent/texera-agent.ts và đọc sendMessage, createTools, cùng phần xử lý cài đặt disabledTools. Kiểm tra các bài kiểm thử về việc tạo hoặc gọi công cụ của agent, sau đó xác minh rằng một công cụ bị vô hiệu hóa không được truyền cho generateText hoặc không thể thực thi. Hoàn tất khi quy trình tái hiện không còn chạy executeOperator trong lúc nó bị vô hiệu hóa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happened?
If a tool is in settings.disabledTools, the agent can still call it, and the call still runs.
updateSettings saves disabledTools, and GET /api/agents/:id/system-info shows that tool as enabled: false. But sendMessage gives the model all tools:
const result = await generateText({
...
tools: this.tools,
createTools() never checks disabledTools, so a disabled tool is still given to the model.
Example on main with claude-haiku-4.5. The agent was created with {"settings": {"maxSteps": 5, "disabledTools": ["executeOperator"]}}. system-info showed:
[{"name":"deleteOperator","enabled":true},{"name":"addOperator","enabled":true},
{"name":"modifyOperator","enabled":true},{"name":"executeOperator","enabled":false}]
Prompt: "Add a CSV File Scan operator that reads the file data.csv, then call the executeOperator tool on it to run it." The agent called addOperator, then executeOperator({"operatorId":"op1"}), and the workflow really ran on the backend (it failed with FileNotFoundException, because the file does not exist).
Expected: tools in disabledTools should not be passed to generateText, or should be rejected when called.
Screenshots
Step 2, tool call: the agent calls executeOperator and it runs, even though system-info says enabled: false.

The chat and canvas: the agent added a CSV File Scan, ran it, and reported the error.

How to reproduce?
- Create an agent with
POST /api/agentsand"settings": {"disabledTools": ["executeOperator"]}. (The panel has no switch for this, so use the API.) GET /api/agents/<id>/system-infoshowsexecuteOperatorwithenabled: false.- In the agent panel, send:
Add a CSV File Scan operator that reads the file data.csv, then call the executeOperator tool on it to run it. - Step 2's details show an
executeOperatorcall and its result.
Version/Branch
1.4.0-incubating-SNAPSHOT (main)
Commit Hash (Optional)
57faa6b
What browsers are you seeing the problem on?
Chrome
Relevant log output
agent-service/src/agent/texera-agent.ts sendMessage: generateText({ tools: this.tools }); createTools() does not check settings.disabledTools
- Ngôn ngữ chính
- Scala
- Star
- 325
- Fork
- 196
- Merge trung bình
- 3 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 132
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/texera
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
apache/texera#9120 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Search bar autocomplete stops working after a model appears in the suggestionsCó thể đã có người làm @aglinxinyuan đã nhận 28 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/texera#8700 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
apache/texera#8682 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/texera
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
llm4s (org.llm4s) is not indexedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
scalacenter/scaladex#1834 ·
-
PlatformSpecific.hasGreenThreads incorrectly returns false for JDK updates and non-GA versionsCó thể đã có người làm @hearnadam đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
zio/zio#11303 · 1 reaction · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/pekko-persistence-jdbc#646 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
requires-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/datafusion-comet#7176 ·
Maintainer thường phản hồi trong vòng 2 ngày