Failed tool calls are marked as succeeded (isError is always false)
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
- 80/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
- Lĩnh vực
- ai, backend-api-design
Hướng nghiên cứu
Bắt đầu tại agent-service/src/agent/texera-agent.ts, ở onStepFinish, sau đó đọc createErrorResult trong agent-service/src/agent/tools/tools-utility.ts để xác nhận định dạng đầu ra lỗi. Kiểm tra cách kết quả của công cụ được ghi lại và hiển thị trong lịch sử lượt; hoàn tất khi kết quả lỗi được ghi nhận là thất bại và bản tái hiện cho thấy lời gọi công cụ thất bại ở lượt tiếp theo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happened?
When a tool call fails, the agent still marks it as succeeded.
In agent-service/src/agent/texera-agent.ts, onStepFinish sets:
isError: !!(tr.output as any)?.error,
But the tools return errors as a plain string, from createErrorResult in tools/tools-utility.ts:
export function createErrorResult(error: string): string {
return `[ERROR] ${error}`;
}
A string has no .error field, so isError is always false. Then the turn history shows every call as - <tool> (succeeded).
Example on main: addOperator and modifyOperator both returned [ERROR] Source operator "op7" not found. Both were saved with isError: false, and the next turn showed - addOperator (succeeded) and - modifyOperator (succeeded). Together with #9115, the agent gets no sign at all that the call failed.
Expected: isError should be true when the tool returns an error, for example when the output starts with [ERROR].
Screenshots
Step 1, tool call: the result starts with [ERROR].

Step 3, what the agent was given: the same call shows as - addOperator (succeeded).

How to reproduce?
- Open an empty workflow, create an agent, and send:
Add a Limit operator that keeps 10 rows, and connect its input to the existing operator op7. - Click "Export ReAct steps as JSON". Step 1's
toolResults[0].outputstarts with[ERROR], butisErrorisfalse. Step 2's input shows- addOperator (succeeded).
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 onStepFinish: isError: !!(tr.output as any)?.error
agent-service/src/agent/tools/tools-utility.ts:30 createErrorResult returns a string
- Ngôn ngữ chính
- Scala
- Star
- 325
- Fork
- 196
- Merge trung bình
- 3 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 131
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
-
Disabled tools can still be called by the agentCó thể đã có người làm @shaynhornik đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
apache/texera#9122 · 2 bình luận · 1 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
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 2 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ự
-
area:verification status:backlog
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
KD5UJC-XYZ/scarab#459 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A-api C-bug S-ready-for-human
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
ergoplatform/ergo#2838 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ 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 1 ngày trước. Đ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