feat: cron channel targeting + cron management UI page#77
Open
HaoweiChan wants to merge 1 commit intoTraderAlice:masterfrom
Open
feat: cron channel targeting + cron management UI page#77HaoweiChan wants to merge 1 commit intoTraderAlice:masterfrom
HaoweiChan wants to merge 1 commit intoTraderAlice:masterfrom
Conversation
Add optional `channel` field to cron jobs enabling delivery to a specific connector (e.g. "telegram", "web") instead of always using last-interacted. Propagated through CronJob → CronFirePayload → CronListener → ConnectorCenter. Add full CronPage UI: job listing, create/edit modal, enable/disable toggle, run-now, delete with confirmation, and recent cron events table. Includes OpenSpec specs for both features. Made-with: Cursor
ab81296 to
5b42989
Compare
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
channelfield to cron jobs, allowing each job to deliver results to a specific connector (e.g. "telegram", "web") instead of always using last-interacted channel. Propagated throughCronJob→CronFirePayload→CronListener→ConnectorCenter./cron): job listing with status badges, create/edit modal, enable/disable toggle, run-now trigger, delete with confirmation, and recent cron events table.channelsupport to cron AI tools (cronAdd,cronUpdate) and API routes.Changes
Backend
src/task/cron/engine.ts:channelfield onCronJob,CronJobCreate,CronJobPatch,CronFirePayloadsrc/task/cron/listener.ts: PasschanneltoconnectorCenter.notify()src/task/cron/tools.ts:channelparam oncronAddandcronUpdatetoolssrc/connectors/web/routes/cron.ts: Acceptchannelin POST bodysrc/core/connector-center.ts:channeloption inNotifyOpts, targeted delivery innotify()andnotifyStream()Frontend
ui/src/pages/CronPage.tsx: New page with full CRUD, run-now, events tableui/src/App.tsx: Route registration for/cronui/src/components/Sidebar.tsx: Navigation entry with clock iconui/src/api/cron.ts:channelparam support inadd()andupdate()ui/src/api/types.ts:channelfield onCronJobinterfaceOpenSpec
openspec/specs/cron-channel-targeting/spec.mdopenspec/specs/cron-ui-page/spec.mdTest plan
/cronand lists existing jobsMade with Cursor