fix(tools): sanitize database execution errors - #6645
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview When tool execution fails with a Tests mock Reviewed by Cursor Bugbot for commit c93972b. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThe PR prevents database permission-preflight failures from exposing SQL, bound parameters, or raw stacks while retaining redacted diagnostics and retrying transient failures.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains; the previously reported raw-stack disclosure is removed from the database-error logging path, and the import-order report was invalidated by the established repository convention.
|
| Filename | Overview |
|---|---|
| apps/sim/tools/index.ts | Adds permission-preflight database retries and replaces raw database error metadata with sanitized diagnostics and a generic caller-facing message. |
| apps/sim/tools/index.test.ts | Verifies transient retries, retry exhaustion, cancellation precedence, generic error responses, and removal of SQL parameters and raw stacks from logs. |
Reviews (3): Last reviewed commit: "fix(tools): preserve preflight cancellat..." | Re-trigger Greptile
|
@cursor review |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit c93972b. Configure here.
Summary
Type of Change
Testing
Checklist