omi icon indicating copy to clipboard operation
omi copied to clipboard

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

Open Evos09 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 tests are already up as PR #15537.

Symptom

When network failures, timeouts, connection resets, or unexpected runtime exceptions occur in plugins/omi-open-library-app, the endpoints /tools/search_books, /tools/get_book_details, and /tools/search_subject catch except (httpx.HTTPError, ValueError) as exc and reflect {exc} verbatim into user-facing ChatToolResponse(error=...). Furthermore, unhandled exceptions outside those classes cause unhandled 500 errors.

What changed

  1. Replaced unhandled/raw exception interpolation across all 3 chat tools with safe generic error responses.
  2. Preserved clean HTTP status codes ({exc.response.status_code}) while preventing internal exception leakage.
  3. Added plugins/omi-open-library-app/test_error_handling.py (6/6 passing under python -S) with simulated sensitive data injection.
  4. Registered check in .github/checks-manifest.yaml.

PR: #15537 Destination (Base Mainnet): 0x7badCdA295Dd7113f374aEA1008e7d5870D48556

Evos09 avatar Sep 21 '26 18:09 Evos09

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