[Bounty proposal] fix(public-holidays-app): exception text leaks into chat tool responses across 4 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 #15520.
Symptom
All 4 chat tool endpoints in plugins/omi-public-holidays-app return raw exception strings ({exc}) directly to client callers and the LLM context:
/tools/get_public_holidaysreturnedChatToolResponse(error=f"holiday lookup failed: {exc}")/tools/get_next_public_holidaysreturnedChatToolResponse(error=f"upcoming holiday lookup failed: {exc}")/tools/get_long_weekendsreturnedChatToolResponse(error=f"long-weekend lookup failed: {exc}")/tools/list_supported_countriesreturnedChatToolResponse(error=f"country list request failed: {exc}")- Additionally, handlers only caught
httpx.HTTPError, leaving any formatting or parsing exceptions unhandled and risking unhandled server crashes. test_main.pyhad broken import resolution onimport main.
Whatever internal socket failure, DNS error, network timeout, or host path occurred in these paths was leaked back to the HTTP client or LLM context.
Fix
- All endpoints now catch general exceptions and return fixed, generic error messages without leaking internal trace details.
- Repaired path resolution in
test_main.py(8/8 passing). - Added comprehensive hermetic unit tests in
test_error_handling.py(4/4 passing) verifying no sensitive trace or exception text leaks into responses across all endpoints. - Registered
public-holidays-error-handling-testsin.github/checks-manifest.yaml.
Precedent
Same failure class as Slack app (#15469 - merged), Whoop app (#15476), Google Calendar app (#15493), Dropbox app (#15497), Twitter Chat Tools app (#15517), ClickUp app (#15361 / #15360), and GitHub app (#13912) exception leakage hardening.
PR: #15520
Proposed Bounty Reward: $50.00 USD
Bounty Payout Destination (Base Mainnet / EVM): 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! 🙏