fix(builtin_tools): remove duplicate unreachable error-handling block (closes #350) #396

Closed
infra-runtime-be wants to merge 1 commits from runtime/fix-a2a-tools-duplicate-error-block into staging

1 Commits

Author SHA1 Message Date
7123ad4280 fix(builtin_tools): remove duplicate unreachable error-handling block
Some checks failed
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 9s
sop-tier-check / tier-check (pull_request) Failing after 8s
audit-force-merge / audit (pull_request) Has been skipped
Issue #350: staging commit bea89ce4 inserted a correct error-handling
block for string-form errors but left the pre-existing block after
the return, creating unreachable dead code. Fix: keep only the first
block (which includes the explanatory comment added in PR #367).

Main already has the correct single-block version. This change
aligns staging's builtin_tools/a2a_tools.py with main.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 05:29:08 +00:00