omi icon indicating copy to clipboard operation
omi copied to clipboard

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

Open Evos09 opened this issue 2 months ago • 5 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 #15528.

Symptom

When network failures, timeouts, connection resets, or unexpected runtime exceptions occur in plugins/omi-wikipedia-app, the endpoints /tools/search_articles, /tools/get_article_summary, and /tools/get_random_article catch httpx.HTTPError as exc and reflect {exc} verbatim into user-facing ChatToolResponse(error=...). Furthermore, unhandled exceptions outside httpx.HTTPError cause unhandled HTTP 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-wikipedia-app/test_error_handling.py (6/6 passing) with simulated sensitive data injection.
  4. Registered check in .github/checks-manifest.yaml. All 28 plugin tests pass hermetically.

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

Evos09 avatar Sep 21 '26 17:09 Evos09

PR #15528 was merged into main by @aryanorastar. Linking to resolve this bounty.

Evos09 avatar Sep 23 '26 03:09 Evos09

Claiming this proposal. Implementing exception sanitization + hermetic tests.

Payout (PayPal): [email protected]

Ljunqiang avatar Sep 23 '26 05:09 Ljunqiang

Standing down this claim — on closer look the linked PRs are already up (#15601 / #15599 / #15587 by @gewenbo888, or already merged for wikipedia). Not competing with an existing delivery. PayPal claim withdrawn for this issue.

Ljunqiang avatar Sep 23 '26 05:09 Ljunqiang

Fixed on main by #15528. Wikipedia chat tools already return a generic error.

aryanorastar avatar Sep 24 '26 06:09 aryanorastar

This task is already completed, verified, and merged into main via PR #15528 (approved by @kodjima33 and merged by @aryanorastar).

  • Current Blocker: None (Resolved & Merged).
  • Acceptance Criterion: Full hermetic test coverage (28/28 passed), exception leakage sanitized across all 3 endpoints.
  • Confirmed Payout Path:
    • EVM (Base Mainnet): 0x7badCdA295Dd7113f374aEA1008e7d5870D48556 (as specified in PR #15528) / 0x240C74A953Fc04Fe8cD713c68b53e94d9b449F8C (gewenbo.eth)

@autonoma-avalix Please note this issue is closed and fully delivered.

gewenbo888 avatar Sep 26 '26 09:09 gewenbo888