This repository was archived by the owner on Oct 21, 2026. It is now read-only.
Repository navigation
feat(automation): delete finished run threads - #49
Merged
Merged
Conversation
- Add an option to delete successful fresh-run threads when their turn completes - Keep failed or stopped threads and show deleted status in run history - Cover pending cleanup, including turns completed while the server was down
- Track pending deletions beyond capped run history - Recheck after user activity and background task completion - Guard automatic deletes against stale or active threads
- Retry guarded deletes after unobserved thread changes - Preserve run deletion behavior when settings change during startup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
Added a Delete thread when done option for automations that start a fresh thread each run. Completed runs have their thread deleted; failed or stopped runs keep theirs. Run history shows when a thread was deleted.
Why
Some automations deliver their results elsewhere, such as a pushed branch or pull request comment. This option cleans up their completed run threads while preserving threads that may help explain a failure or stop.
UI Changes
The automation editor includes the new option, and run history indicates when a thread has been deleted.
Checklist