omi icon indicating copy to clipboard operation
omi copied to clipboard

[Bounty Proposal] Backend: Gmail tools exception leak & unhandled error prevention

Open gewenbo888 opened this issue 2 months ago • 1 comments

Bounty Proposal: Gmail Tools Exception Leak & Unhandled Error Prevention

  • Target Component: backend/utils/retrieval/tools/gmail_tools.py
  • Issue: get_gmail_messages_tool executed database/executor access outside exception guards, and returned raw exception strings ({str(e)}) upon failure, risking internal token traces or database path leaks (FC-secret-printed-to-plugin-logs).
  • Implemented Fix: #15624
    • Wrapped run_blocking inside try: block.
    • Sanitized access_err connection error strings.
    • Sanitized exception returns to generic messages with server-side exc_info=True.
    • Added hermetic unit test suite backend/tests/unit/test_gmail_tools_sanitization.py.
    • Passed all 29/29 manifest checks.
  • Proposed Bounty: $50.00 USDC
  • Payout Address: 0x240C74A953Fc04Fe8cD713c68b53e94d9b449F8C (ENS: gewenbo.eth, Network: Base / Arbitrum / Mainnet)

gewenbo888 avatar Sep 22 '26 02: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