Skip to content

The agent that grows with you

fix(desktop): offer New cron from the empty scheduled-jobs detail

Adolan0559c367ef41
diff --git a/apps/desktop/src/app/cron/index.tsx b/apps/desktop/src/app/cron/index.tsx
index 1c3a4c4443f..7e0d468f0ac 100644
--- a/apps/desktop/src/app/cron/index.tsx
+++ b/apps/desktop/src/app/cron/index.tsx
@@ -717,6 +717,13 @@ export function CronView({ onClose, onOpenSession, setStatusbarItemGroup: _setSt
// No selection and no search — "Try a broader search query" here
// just confused people staring at an empty panel with zero jobs.
<PanelEmpty
+ action={
+ jobs.length === 0 ? (
+ <Button onClick={() => setEditor({ mode: 'create' })} size="sm">
+ {c.newCron}
+ </Button>
+ ) : undefined
+ }
description={c.emptyDescNew}
icon="watch"
title={jobs.length === 0 ? c.emptyTitleNew : undefined}