Skip to content

feat(agent): add delete and clear history for scheduled task runs#937

Open
Aarjav Jain (A2rjav) wants to merge 1 commit intobrowseros-ai:devfrom
A2rjav:fix/926-delete-clear-scheduled-task-runs
Open

feat(agent): add delete and clear history for scheduled task runs#937
Aarjav Jain (A2rjav) wants to merge 1 commit intobrowseros-ai:devfrom
A2rjav:fix/926-delete-clear-scheduled-task-runs

Conversation

@A2rjav
Copy link
Copy Markdown

Summary

Closes #926

  • Adds a Trash2 delete button on each completed/failed run in the Scheduled Tasks results list — running tasks cannot be deleted
  • Adds a Clear All History button at the top of the results panel
  • Wires onDeleteRun / onClearRuns callbacks from ScheduledTasksPageScheduledTaskResults
  • Adds clearJobRuns() to useScheduledJobRuns hook (sets scheduledJobRunStorage to [])
  • Adds SCHEDULED_TASK_RUN_DELETED_EVENT and SCHEDULED_TASK_RUNS_CLEARED_EVENT analytics events

Test plan

  • Create a scheduled task and run it manually a few times
  • Verify delete (Trash2) button appears on completed/failed runs but NOT on running runs
  • Click delete on a single run → run disappears, others remain
  • Refresh page → deleted run does not reappear (removed from storage)
  • Click Clear All History → all runs removed, results tab shows empty state
  • Refresh page → no runs visible

🤖 Generated with Claude Code

Closes browseros-ai#926

- Add individual Trash2 delete button per completed/failed run in ScheduledTaskResults
- Add 'Clear All History' button at top of results list
- Wire onDeleteRun/onClearRuns callbacks through ScheduledTasksPage
- Add clearJobRuns() to useScheduledJobRuns hook (sets storage to [])
- Track SCHEDULED_TASK_RUN_DELETED_EVENT and SCHEDULED_TASK_RUNS_CLEARED_EVENT

Running tasks cannot be deleted; delete buttons only appear for non-running runs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 4, 2026

PR author is not in the allowed authors list.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

All contributors have signed the CLA. Thank you!
Posted by the CLA Assistant Lite bot.

@A2rjav
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Ability to delete/clear individual scheduled task run results from history

1 participant