omi icon indicating copy to clipboard operation
omi copied to clipboard

[Bounty proposal] fix(frankfurter-app): exception text leaks into chat tool responses across 3 endpoints ($50 proposed)

Open gewenbo888 opened this issue 2 months ago • 1 comments

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

  1. 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").
  2. Preserved HTTP status code reporting and expected client input validation errors (amount must be..., unsupported currency:...).
  3. Added plugins/omi-frankfurter-app/test_error_handling.py (10/10 passing under standard library python3) with simulated sensitive string and private IP injection.
  4. Updated plugins/omi-frankfurter-app/test_main.py and registered frankfurter-error-handling-tests in .github/checks-manifest.yaml. All 48 tests pass.

PR: #15590 Destination: Base / EVM (gewenbo.eth / 0x240C74A953Fc04Fe8cD713c68b53e94d9b449F8C)

gewenbo888 avatar Sep 22 '26 00:09 gewenbo888

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! 🙏

undivisible avatar Oct 22 '26 11:10 undivisible