Skip to content
This repository was archived by the owner on Oct 21, 2026. It is now read-only.

feat(automation): delete finished run threads - #49

Merged
donnes merged 3 commits into
mainfrom
t3code/auto-delete-finished-threads
Sep 30, 2026
Merged

donnes merged 3 commits into
mainfrom
t3code/auto-delete-finished-threads

Conversation

@donnes

@donnes donnes commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

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

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

- 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
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Sep 30, 2026
- 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
@donnes
donnes merged commit 8e96dc3 into main Sep 30, 2026
14 checks passed
@donnes
donnes deleted the t3code/auto-delete-finished-threads branch September 30, 2026 13:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant