[Bounty proposal] fix(frankfurter-app): exception text leaks into chat tool responses across 3 endpoints ($50 proposed)
Following the contribution guide's invitation to propose paid work — @kodjima33, @josancamon19, would a US$50 bounty be appropriate for this? Proposed amount, not an existing award. Fix and hermetic tests are already submitted and verified in PR #15590.
Symptom
When transport failures, upstream HTTP errors, or unexpected runtime exceptions occur in plugins/omi-frankfurter-app, /tools/convert_currency, /tools/get_latest_rates, and /tools/list_supported_currencies caught (httpx.HTTPError, ValueError) and Exception and reflected {exc} directly into user-facing ChatToolResponse(error=...). This risks leaking internal URLs, socket exceptions, IP addresses, or underlying transport details into LLM context.
What changed
- Replaced unhandled/raw exception string interpolation across all 3 Frankfurter chat tools with sanitized client error responses while retaining structured server-side error logging via
logging.getLogger("omi_frankfurter_app"). - Preserved HTTP status code reporting and expected client input validation errors (
amount must be...,unsupported currency:...). - Added
plugins/omi-frankfurter-app/test_error_handling.py(10/10 passing under standard librarypython3) with simulated sensitive string and private IP injection. - Updated
plugins/omi-frankfurter-app/test_main.pyand registeredfrankfurter-error-handling-testsin.github/checks-manifest.yaml. All 48 tests pass.
PR: #15590
Destination: Base / EVM (gewenbo.eth / 0x240C74A953Fc04Fe8cD713c68b53e94d9b449F8C)
Thanks for putting this together. We aren't doing bounties at the moment, so we're closing the bounty proposal issues for now — thanks for the fix! 🙏