[Bounty proposal] fix(linear-app): exception text leaks into chat tool responses across 7 tools ($100 proposed)
Following the contribution guide's invitation to propose paid work — @kodjima33, @josancamon19, would a US$100 bounty be appropriate for this? Proposed amount, not an existing award.
Product impact
• Primary loop layer: Security [✓] Internal host/network details reflected into chat tool responses (broken trust in the tool loop)
Symptom
Two layers leak exception text into chat tool responses:
linear_graphql_requestembeds transport failures:except requests.RequestException as e: return {"error": f"Request failed: {str(e)}"}— DNS/errno/host details from the plugin host.tool_add_commentthen echoes that text into the chat response viaFailed to add comment: {result['error']}.- All seven chat tools interpolate broad exception text:
except Exception as e: error=f"…: {str(e)}"—tool_create_issue(690),tool_list_my_issues(793),tool_list_recent_issues(893),tool_update_issue_status(991),tool_search_issues(1095),tool_get_issue(1172),tool_add_comment(1243).
Fix (PR #22983)
linear_graphql_request: transport failures return a fixed message "Linear API request failed: could not reach the API. Please try again later."- All seven chat tools: broad handlers return fixed per-action messages ("Failed to create issue. Please try again later." etc.) — exception text is never interpolated.
- Server-controlled GraphQL error text still surfaces (it is Linear's own message, not host internals); validation and auth gates are unchanged.
Tests
test_error_sanitization.py (hermetic, stdlib-only): 11 tests — all seven chat tools driven with auth mocked and the GraphQL seam raising a host-detail exception (errno/host/resolver must never reach the response), helper transport failure returns the fixed message, GraphQL server errors still surface, validation and auth-gate messages preserved. Registered in .github/checks-manifest.yaml as linear-error-sanitization-tests.
Precedent
Same failure class as CoinGecko (#15522), Google Calendar (#15493), Shopify (#15484 / #15485), ClickUp (#15361 / #15360), Slack (#15471 / #15469), Whoop (#15477 / #15476), and arXiv app (#15587) hardening.
Disclosed: authored with AI assistance (Z.ai agent swarm).
Bounty Payout Destination (EVM - Base Mainnet): 0x8c43E78E866258357A4c73610f62eEeda951002D
PR: #22983
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! 🙏