stack/apps
aadesh18 5573927429
Ask AI Huge Response (#1328)
This PR fixes the bug where analytics tool returns a lot of rows, which
results in huge token count. We do it by checking the number of
characters in the tool call, and if it is more than 50000 characters, we
send an error message rather than the rows and ask the ai to make more
focused queries.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* AI assistant shows friendlier, categorized error messages and captures
unexpected errors for diagnosis.
  * UI now displays classifier-derived, user-friendly AI error text.

* **Bug Fixes & Improvements**
* Enforced a hard size budget for SQL query results and gracefully
handles oversized responses.
* Centralized safer database error messaging to avoid leaking internal
details.
* Strengthened AI guidance to prefer narrower queries, safer column
selection, and pairing GROUP BY with ORDER BY + LIMIT.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-13 15:12:07 -07:00
..
backend Ask AI Huge Response (#1328) 2026-04-13 15:12:07 -07:00
dashboard Ask AI Huge Response (#1328) 2026-04-13 15:12:07 -07:00
dev-launchpad chore: update package versions 2026-04-13 11:31:28 -07:00
e2e Fix sign-up rule tests 2026-04-13 14:31:54 -07:00
hosted-components chore: update package versions 2026-04-13 11:31:28 -07:00
mock-oauth-server chore: update package versions 2026-04-13 11:31:28 -07:00
oauth-mock-server In-source unit tests (#429) 2025-02-14 11:47:52 -08:00