oliarmak-web opened a new pull request, #9259: URL: https://github.com/apache/texera/pull/9259
### What changes were proposed in this PR? Tool helpers represent failures as strings beginning with `[ERROR]`, while `onStepFinish` previously checked only for a structured `error` property. Genuine tool failures were therefore persisted with `isError: false` and presented as successful in subsequent agent context. This change preserves the existing tool-result contract while: - classifying `[ERROR]` string results as failures; - retaining support for structured error objects; - adding regression coverage for failed and successful tool calls; - verifying persisted `isError` and the status shown in the following agent turn. ### Any related issues, documentation, discussions? Closes #9120 Related: #9244, whose tool-history presentation relies on accurate persisted failure status. ### How was this PR tested? From `agent-service`: - `npx --yes bun test` (313 passed, 0 failed) - `npx --yes bun run typecheck` - `npx --yes bun run format:check` - `git diff --check` ### Was this PR authored or co-authored using generative AI tooling? Generated-by: OpenAI Codex (GPT-5) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
