[Bounty proposal] fix(open-library-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 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
- Replaced unhandled/raw exception interpolation across all 3 chat tools with safe generic error responses.
- Preserved clean HTTP status codes (
{exc.response.status_code}) while preventing internal exception leakage. - Added
plugins/omi-open-library-app/test_error_handling.py(6/6 passing underpython -S) with simulated sensitive data injection. - Registered check in
.github/checks-manifest.yaml.
PR: #15537
Destination (Base Mainnet): 0x7badCdA295Dd7113f374aEA1008e7d5870D48556
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! 🙏