The GitHub Actions job "Release Auditing" on texera.git/main has succeeded. Run started by GitHub user github-merge-queue[bot] (triggered by github-merge-queue[bot]).
Head commit for run: af586679fcd5244c16037b1cc86d28db5d79e5f8 / oliarmak-web <[email protected]> fix(agent-service): classify error-prefixed tool results as failed (#9259) ### What changes were proposed in this PR? Tool failures returned as `[ERROR]` strings and SDK-generated `tool-error` parts must be persisted as failures so subsequent agent turns receive the correct status. This change builds stored results from step content, matches results to calls by `toolCallId`, and reuses normalized failure status to prevent delegate execution after rejected modifications. A shared `isErrorResult` predicate keeps string classification beside `createErrorResult`. Thrown errors are stored as readable messages so they survive JSON snapshots and appear in subsequent context. Calls without a recorded result are marked failed. History formatting uses the normalized `isError` flag. Regression coverage includes error-prefixed output, SDK-rejected calls, reordered results, throwing tools (Error, string and null values), length-limited calls that never execute, and suppression of execution after rejected modifications. ### 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`: - `bun test`: 347 passed, 0 failed - `bun run typecheck`: passed - `bun run format:check`: passed - `git diff --check`: passed The new behavior assertions reproduced the failures before the production fix. Validation used Bun 1.3.3 and the repository’s frozen lockfile. The full test run required local socket access for the server tests. GitHub CI results remain separate from these local checks. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: OpenAI Codex Report URL: https://github.com/apache/texera/actions/runs/44377835534 With regards, GitHub Actions via GitBox
