Files
windmill/frontend/src/lib
e869580787 nit(aichat): delete old messages when conversation becomes too long (#6258)
* delete old messages

* nit

* feat(aichat): add recursion bounds and improve token estimation

- Add maxDepth parameter (default 10) to deleteOldestMessage to prevent infinite recursion
- Enhance estimateTokenUsage to handle tool calls, content arrays, and function names
- Improves stability and accuracy of message cleanup when conversations become too long

Co-authored-by: centdix <centdix@users.noreply.github.com>

* nit

* cleaning

* better logic

* fix logic

* fix

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: centdix <centdix@users.noreply.github.com>
Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2025-07-23 16:36:41 +02:00
..
2025-04-28 19:29:56 +02:00
2024-08-21 15:37:26 +02:00
2024-09-20 15:38:38 +02:00
2025-03-14 12:44:52 +01:00
2024-08-14 02:09:22 +02:00
nit
2025-07-11 18:22:47 +00:00
2025-07-15 16:25:31 +00:00
2025-07-17 23:29:22 +00:00
2024-08-07 11:05:45 +02:00
2025-06-20 12:12:07 +02:00
2025-06-14 10:46:39 +02:00
2025-03-04 15:41:25 +01:00
2025-07-17 22:15:01 +00:00
2025-07-18 09:05:49 +00:00
2025-04-23 12:18:36 +02:00