Commit 38bfb52
fix: sql_analyze reports "unknown error" for successful analyses (AI-5975) (#426)
sql.analyze returned success:false when it found lint/semantic/safety
issues, causing telemetry to log ~4,000 false "unknown error" failures
per day. Finding issues IS a successful analysis.
- Change success flag to true when analysis completes without exceptions
- Surface actual error messages to metadata.error so telemetry can
distinguish real failures from successful analyses
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: anandgupta42 <93243293+anandgupta42@users.noreply.github.com>1 parent 8e11c7f commit 38bfb52
File tree
2 files changed
+4
-3
lines changed- packages/opencode/src/altimate
- native/sql
- tools
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments