Add a Schedules screen to manage recurring agents#1246
Open
boudra wants to merge 3 commits into
Open
Conversation
Adds a Schedules section in the sidebar header (below Sessions) for viewing and managing new-agent schedules: recurring jobs that spawn an agent on a cron or interval cadence. - Borderless table showing provider icon, model, cadence, next run, and status, with row actions to edit, pause/resume, run now, and delete. - Create/edit sheet that reuses the agent provider/model/mode/working- directory pickers, plus an interval/cron cadence editor with presets, validation, and a UTC preview. - Responsive: hover-revealed row actions on desktop, an always-visible action menu on mobile. - Data layer over the existing schedule RPCs (list/create/update/pause/ resume/delete/run-once) with optimistic pause, resume, and delete. Scope is limited to new-agent schedules for now.
The "model selector can open, close, reopen, and close again" test still flaked on loaded CI runners even after re-tapping the backdrop: the model-selector sheet re-renders as its model list settles, and Gorhom drops backdrop presses during that churn, so the tap never dismisses within the retry window. Fall back to dragging the sheet handle down, which drives Gorhom's pan-to-close directly and is unaffected by the backdrop churn (mirrors the resilient close in e2e/helpers/app.ts). The backdrop tap remains the primary path, and the post-close "stays hidden" guard that protects the dismiss-then-re-present regression is unchanged. Verified locally by forcing the fallback (backdrop tap disabled): the handle drag closes the sheet on its own.
Merge the provider and model pickers into the single nested selector the draft screen uses, render it as a full-width field, mute the placeholder, proportion the cadence segmented controls, unify the cron preset chips, and route the sheet scroll through the themed scrollbar.
There was a problem hiding this comment.
boudra has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.
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.
Adds a Schedules screen for creating, editing, pausing, and deleting recurring agents, plus a consistency pass on the form.
What's in it
Form consistency pass
Verification
npm run typecheck— green (full workspace).npm run linton touched files — clean.npm run formatapplied.