fix(core): reduce memory peaks in long sessions

This commit is contained in:
starptech 2026-06-03 16:26:06 +02:00
commit fe28f3b1dd
21 changed files with 2332 additions and 105 deletions

View file

@ -0,0 +1,8 @@
ALTER TABLE `part` ADD `data_model` text;
--> statement-breakpoint
UPDATE part
SET data_model = json_remove(data, '$.state.metadata')
WHERE length(CAST(data AS BLOB)) > 65536
AND json_extract(data, '$.type') = 'tool'
AND json_extract(data, '$.state.status') = 'completed'
AND length(CAST(json_extract(data, '$.state.metadata') AS BLOB)) > 65536;

File diff suppressed because it is too large Load diff