Repository navigation
Replies: 1 comment
|
+1, with one more data point and a variant of the ask. On a single macOS desktop (Apple Silicon, v0.1.12), The variant: we read finished subagent threads back in a weekly review, so purging them outright loses something we use. What would help us most is a retention setting that keeps a thread's messages and tool-call summaries readable but truncates or compresses the stored tool output after N days, optionally only for delegated/subagent threads, and then reclaims the space. Purging, as proposed above, would be a stricter level of the same setting. |
Uh oh!
There was an error while loading. Please reload this page.
Request: a supported retention setting for thread content: physically purge finished subagent/delegated child threads after N days, and optionally cut old tool output in top-level threads, then reclaim the space.
Why: on a headless
t3 serve(0.1.9, Linux, ~45 concurrent agent threads),statev2.sqlitereached 16.8 GiB in 22 days, about 1.9 GB/day, with 0 reclaimable pages (t3 doctor --dry-run). The event-log prune from #29806 works: older sequence ranges keep about 1% of events. What grows now is projection content:orchestration_v2_projection_turn_itemshas 1.11M rows averaging 4.2 KB; 58% of them belong to delegated-task threads. By payload,command_executionoutput anddynamic_tooloutput are the bulk.Symptom: as the file grows, writes queue. Over 35 min:
sql.transactionp95 12.5 s, max 69 s;Orchestrator.dispatchMessage17 s. The desktop app then shows " did not confirm the message within 60 seconds" and puts the prompt back in the composer.Archive and delete only stamp a column, and #28903 / #30587 were closed as feature requests, so this is that feature request. We now run our own nightly purge across the ~30 thread-keyed tables, gated on a schema check. A built-in setting would be much safer than SQL against internal tables. For example:
threadRetention: { childThreadsAfterDays: 7, toolOutputAfterDays: 30 }, plus an offline compaction int3 doctor.All reactions