Add cron-based scheduling with prompt templates integration#164
Merged
chriswritescode-dev merged 16 commits intomainfrom Mar 22, 2026
Merged
Add cron-based scheduling with prompt templates integration#164chriswritescode-dev merged 16 commits intomainfrom
chriswritescode-dev merged 16 commits intomainfrom
Conversation
Add coverage reporting and exercise recovery, cancellation, and async failure paths so the schedules feature has stronger backend validation.
Keep cron schedules migratable, trim run polling payloads, and expose the health endpoint so Docker preview and PR feedback match the intended behavior.
…eted after 3 iterations
…t, removing intervalMinutesToCronExpression utility
- Create PromptTemplateSchema and related types in shared package - Add database layer with prompt-templates.ts and migration 009 - Implement REST API routes for prompt templates CRUD operations - Add PromptTemplateService for business logic - Create React hook usePromptTemplates and API client - Add PromptTemplateDialog component for template management - Register prompt-templates routes in main index.ts - Add comprehensive test coverage for routes
- Extract JobsTab, JobDetailTab, and RunHistoryTab components - Replace monolithic Schedules page with modular component structure - Update ScheduleJobDialog to integrate prompt templates - Refactor schedule-utils to remove deprecated code - Improve UI with better tab navigation and run detail panels - Add RunHistoryTab with log, assistant output, and error views - Update minor UI components (tabs, header) for consistency
- Add try/catch around updateScheduleJobRunState calls - Implement session status recovery for completed sessions - Add finalizeRecoveredRun for handling recovered session states - Properly dispose session monitors and clean up active runs - Compute next run time correctly for manual triggers - Add comprehensive tests for schedule database queries - Update OpenCode API client for better integration - Minor updates to RepoDetail and SessionDetail pages
- Add --watch-path flag to limit file watching to source directories - Improves dev server performance by reducing watch scope
# Conflicts: # backend/src/db/migrations/index.ts # frontend/src/pages/SessionDetail.tsx
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Why
Replaces setInterval polling with cron-based scheduling for better reliability and resource efficiency. Prompt templates enable reusable schedule configurations.
What Is Included
Type Of Change
Checklist