+
- Unattended Permissions
+ Workspace Target
-
-
- Missed Schedule Policy
-
-
-
+ {workspaceMode === "project" && projectRoot && workspaceProjects.length > 1 && (
+
+
+ Repository
+
+
+ )}
+
+ {workspaceMode === "project" && projectRoot && (
+
+
+ Checkout Isolation
+
+
+ )}
+
+ {workspaceMode === "project" && projectRoot && isolation === "worktree" && (
+
+
+ Base Branch
+
+
+
+ )}
- {agentSettings.newTaskApprovals === "ask" && permissions !== "default" && (
-
-
- Your interactive New Tasks setting is Asking for approval, so scheduled turns are capped to ask before
- edits and commands.
-
-
- )}
+
+
- {permissions === "allowAll" && workspaceMode === "project" && isolation === "local" && (
-
-
- Warning: Autonomous mode on a local checkout can modify your working files directly. Prefer an isolated
- Git worktree.
-
-
- )}
+ {advancedOpen && (
+
+
+
+
+ Unattended Permissions
+
+
-
-
-
- setMaxRunsStr(e.target.value)}
- placeholder="50"
- />
-
+
+
+ Session Continuity
+
+
+
-
-
- setDisableAfterStr(e.target.value)}
- />
-
+ {agentSettings.newTaskApprovals === "ask" && permissions !== "default" && (
+
+
+ Your interactive New Tasks setting is Asking for approval, so scheduled turns are capped to ask
+ before edits and commands.
+
+
+ )}
+
+ {permissions === "allowAll" && workspaceMode === "project" && isolation === "local" && (
+
+
+ Warning: Autonomous mode on a local checkout can modify your working files directly. Prefer an
+ isolated Git worktree.
+
+
+ )}
+
+ {workspaceMode === "project" && isolation === "worktree" && continuity === "newTask" && (
+
+ )}
+
+
+
+
+ Missed Schedule Policy
+
+
+
+
+
+
+ setMaxRunsStr(e.target.value)}
+ placeholder="50"
+ />
+
+
+
+
+
+
+ setDisableAfterStr(e.target.value)}
+ />
+
+
+
+ )}
diff --git a/src/features/agents/Automations.module.css b/src/features/agents/Automations.module.css
index 8d4d9fff0..bf2e20585 100644
--- a/src/features/agents/Automations.module.css
+++ b/src/features/agents/Automations.module.css
@@ -1,61 +1,67 @@
+/* Agent Automations editor tab, creation dialog, and status widgets (Islands style). */
+
.editor {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
- background: var(--bg-app);
+ overflow-y: auto;
+ background: var(--bg-editor);
color: var(--fg);
font-size: var(--fs-ui);
}
+.column {
+ display: flex;
+ flex-direction: column;
+ flex: 1;
+ width: 100%;
+ max-width: 820px;
+ margin: 0 auto;
+ padding: 20px 28px 24px;
+ box-sizing: border-box;
+ min-height: 0;
+}
+
.header {
display: flex;
- align-items: center;
+ align-items: flex-start;
justify-content: space-between;
- flex-wrap: wrap;
- gap: var(--space-2);
- padding: 12px 18px 10px;
- border-bottom: 1px solid var(--border);
- background: var(--bg-elev);
+ gap: var(--space-3);
+ padding-bottom: 14px;
}
.headerMain {
display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: var(--space-2);
+ flex-direction: column;
+ gap: var(--space-1);
min-width: 0;
}
.headerTitle {
- display: inline-flex;
- align-items: center;
- gap: var(--space-1-5);
margin: 0;
- font-size: 14px;
+ font-size: 16px;
font-weight: 600;
+ letter-spacing: -0.01em;
+ line-height: 1.3;
color: var(--fg-strong);
}
.headerActions {
display: flex;
align-items: center;
- flex-wrap: wrap;
- gap: var(--space-1-5);
+ flex-shrink: 0;
+ gap: var(--space-1);
}
-.hostPill {
+.hostMeta {
display: inline-flex;
align-items: center;
- gap: var(--space-1);
- height: 22px;
- padding: 0 8px;
- border-radius: var(--radius-small);
- background: var(--bg-floating-toolbar);
- box-shadow: inset 0 0 0 1px var(--border);
- color: var(--fg-secondary);
- font-size: var(--fs-tiny);
- white-space: nowrap;
+ flex-wrap: wrap;
+ gap: var(--space-1-5);
+ color: var(--fg-muted);
+ font-size: var(--fs-small);
+ line-height: 1.4;
}
.statusDot {
@@ -78,35 +84,42 @@
background: var(--danger);
}
-.tabBar {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 14px;
- border-bottom: 1px solid var(--border);
- background: var(--bg-elev);
- gap: var(--space-2);
-}
-
-.filterRow {
+/* Compact navigation tabs and inline search/filter on one hairline row. */
+.navRow {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: var(--space-2);
- padding: 10px 18px 6px;
+ padding-bottom: 8px;
+ border-bottom: 1px solid var(--border);
+}
+
+.navControls {
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: var(--space-1-5);
+ margin-left: auto;
}
.searchWrap {
- flex: 1;
- min-width: 180px;
- max-width: 360px;
+ width: 220px;
+ max-width: 100%;
+ min-width: 150px;
}
-.filterRight {
- display: flex;
+.tabBadge {
+ display: inline-flex;
align-items: center;
- gap: var(--space-1-5);
+ justify-content: center;
+ min-width: 16px;
+ height: 16px;
+ padding: 0 3px;
+ color: var(--fg-muted);
+ font-size: var(--fs-tiny);
+ font-variant-numeric: tabular-nums;
+ line-height: 1;
}
.bannerWarn {
@@ -114,10 +127,10 @@
align-items: center;
justify-content: space-between;
gap: var(--space-2);
- margin: 10px 18px 0;
+ margin-bottom: 12px;
padding: 8px 12px;
border-radius: var(--radius-control);
- background: var(--bg-floating-toolbar);
+ background: var(--bg-elev);
box-shadow: inset 0 0 0 1px var(--warning);
color: var(--fg-strong);
font-size: var(--fs-small);
@@ -132,19 +145,19 @@
.body {
flex: 1;
- min-height: 0;
- overflow-y: auto;
- padding: 8px 18px 20px;
display: flex;
flex-direction: column;
- gap: var(--space-2);
+ gap: var(--space-3);
+ padding: 16px 0 20px;
+ min-height: 0;
}
+/* Framed list with hairline dividers, matching Settings > Agents > Skills. */
.listFrame {
display: flex;
flex-direction: column;
border-radius: var(--radius-control);
- background: var(--bg-elev);
+ background: var(--bg-editor);
box-shadow: inset 0 0 0 1px var(--border);
overflow: hidden;
}
@@ -167,7 +180,7 @@
.rowFocused {
background: var(--bg-hover);
- box-shadow: inset 2px 0 0 var(--link);
+ box-shadow: inset 2px 0 0 var(--accent);
}
.rowLeft {
@@ -201,6 +214,12 @@
text-overflow: ellipsis;
}
+.rowSchedule {
+ color: var(--fg-secondary);
+ font-size: var(--fs-small);
+ white-space: nowrap;
+}
+
.rowPrompt {
color: var(--fg-muted);
font-size: var(--fs-small);
@@ -215,7 +234,7 @@
flex-wrap: wrap;
gap: var(--space-1-5);
font-size: var(--fs-tiny);
- color: var(--fg-secondary);
+ color: var(--fg-subtle);
}
.tag {
@@ -225,7 +244,7 @@
height: 18px;
padding: 0 6px;
border-radius: var(--radius-small);
- background: var(--bg-floating-toolbar);
+ background: var(--bg-elev);
color: var(--fg-secondary);
font-size: var(--fs-tiny);
white-space: nowrap;
@@ -236,7 +255,7 @@
}
.tagUnread {
- background: var(--link);
+ background: var(--accent);
color: #fff;
font-weight: 600;
}
@@ -262,15 +281,18 @@
flex-shrink: 0;
}
-.emptyCard {
+/* Open, cardless empty state with a single-column hairline template list. */
+.emptySection {
display: flex;
flex-direction: column;
- align-items: flex-start;
gap: var(--space-3);
- padding: 18px;
- border-radius: var(--radius-control);
- background: var(--bg-elev);
- box-shadow: inset 0 0 0 1px var(--border);
+ padding-top: 4px;
+}
+
+.emptyHeader {
+ display: flex;
+ flex-direction: column;
+ gap: var(--space-1);
}
.emptyTitle {
@@ -284,40 +306,42 @@
margin: 0;
color: var(--fg-muted);
font-size: var(--fs-small);
- line-height: 1.45;
- max-width: 620px;
+ line-height: 1.5;
+ max-width: 600px;
}
-.templatesGrid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
- gap: var(--space-2);
- width: 100%;
-}
-
-.templateBtn {
+.templateRow {
display: flex;
- flex-direction: column;
- align-items: flex-start;
- gap: var(--space-1);
+ align-items: center;
+ justify-content: space-between;
+ gap: var(--space-3);
+ width: 100%;
padding: 10px 12px;
- border-radius: var(--radius-control);
- border: none;
- background: var(--bg-app);
- box-shadow: inset 0 0 0 1px var(--border);
+ border: 0;
+ background: transparent;
color: var(--fg);
font: inherit;
text-align: left;
- cursor: pointer;
}
-.templateBtn:hover {
+.templateRow + .templateRow {
+ box-shadow: inset 0 1px 0 var(--border);
+}
+
+.templateRow:hover {
background: var(--bg-hover);
}
+.templateMain {
+ display: flex;
+ flex-direction: column;
+ gap: var(--space-0-5);
+ min-width: 0;
+}
+
.templateTitle {
- font-weight: 600;
- font-size: var(--fs-small);
+ font-weight: 500;
+ font-size: var(--fs-ui);
color: var(--fg-strong);
}
@@ -326,12 +350,28 @@
color: var(--fg-muted);
}
-/* Dialog form */
+.templatePlus {
+ flex-shrink: 0;
+ color: var(--fg-muted);
+}
+
+.footerBar {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: var(--space-2);
+ padding-top: 12px;
+ border-top: 1px solid var(--border);
+ color: var(--fg-secondary);
+ font-size: var(--fs-small);
+}
+
+/* Dialog form (aligned to Dialog's 16px titlebar / footer insets). */
.dialogForm {
display: flex;
flex-direction: column;
gap: var(--space-3);
- padding: 4px 0;
+ padding: 4px 16px 12px;
font-size: var(--fs-ui);
}
@@ -339,58 +379,109 @@
display: flex;
flex-direction: column;
gap: var(--space-1);
+ min-width: 0;
}
.fieldRow {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: var(--space-3);
+}
+
+.workspaceRow {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: var(--space-2);
}
.fieldLabel {
font-size: var(--fs-small);
- font-weight: 600;
- color: var(--fg-strong);
+ font-weight: 500;
+ color: var(--fg-secondary);
}
.fieldHint {
font-size: var(--fs-tiny);
color: var(--fg-muted);
- line-height: 1.4;
+ line-height: 1.45;
+}
+
+/* Unified prompt surface matching the HomeEditor composer frame. */
+.promptBox {
+ display: flex;
+ flex-direction: column;
+ border-radius: var(--radius-control);
+ background: var(--bg-field, var(--bg-app));
+ box-shadow: inset 0 0 0 1px var(--border-button);
+ transition: box-shadow var(--dur-fast) var(--ease);
+}
+
+.promptBox:focus-within {
+ box-shadow:
+ inset 0 0 0 1px var(--focus-ring),
+ 0 0 0 1px var(--focus-ring);
}
.promptTextarea {
width: 100%;
- min-height: 92px;
- padding: 8px 10px;
- border-radius: var(--radius-control);
- border: 1px solid var(--border);
- background: var(--bg-app);
+ min-height: 84px;
+ padding: 8px 10px 6px;
+ border: 0;
+ background: transparent;
color: var(--fg-strong);
font-family: var(--font-ui, inherit);
font-size: var(--fs-ui);
- line-height: 1.45;
+ line-height: 1.5;
resize: vertical;
box-sizing: border-box;
}
.promptTextarea:focus {
outline: none;
- border-color: var(--link);
}
-.pickerBar {
+.promptTextarea::placeholder {
+ color: var(--fg-faint);
+}
+
+/* Standalone monospace textarea used in Import / Export markdown dialogs. */
+.codeTextarea {
+ width: 100%;
+ min-height: 168px;
+ padding: 8px 10px;
+ border: 0;
+ border-radius: var(--radius-control);
+ background: var(--bg-field, var(--bg-app));
+ box-shadow: inset 0 0 0 1px var(--border-button);
+ color: var(--fg-strong);
+ font-family: var(--font-mono);
+ font-size: var(--fs-small);
+ line-height: 1.5;
+ resize: vertical;
+ box-sizing: border-box;
+}
+
+.codeTextarea:focus {
+ outline: none;
+ box-shadow:
+ inset 0 0 0 1px var(--focus-ring),
+ 0 0 0 1px var(--focus-ring);
+}
+
+.promptBar {
display: flex;
align-items: center;
flex-wrap: wrap;
- gap: var(--space-1-5);
+ gap: var(--space-1);
+ padding: 4px 6px;
+ border-top: 1px solid var(--border);
}
.weekdayRow {
display: flex;
align-items: center;
flex-wrap: wrap;
- gap: var(--space-1-5);
+ gap: var(--space-1);
}
.dayBtn {
@@ -398,30 +489,87 @@
min-width: 34px;
padding: 0 8px;
border-radius: var(--radius-small);
- border: 1px solid var(--border);
- background: var(--bg-app);
+ box-shadow: inset 0 0 0 1px var(--border-button);
+ background: var(--bg-field, var(--bg-app));
color: var(--fg-secondary);
font-size: var(--fs-tiny);
- cursor: pointer;
+}
+
+.dayBtn:hover {
+ background: var(--bg-hover);
}
.dayBtnActive {
- border-color: var(--link);
- background: var(--bg-hover);
+ box-shadow: inset 0 0 0 1px var(--accent);
+ background: var(--bg-selected);
color: var(--fg-strong);
- font-weight: 600;
+ font-weight: 500;
}
-.previewBox {
+.previewLine {
+ display: flex;
+ align-items: baseline;
+ flex-wrap: wrap;
+ gap: var(--space-1);
+ font-size: var(--fs-tiny);
+ color: var(--fg-muted);
+ line-height: 1.4;
+}
+
+.previewLabel {
+ color: var(--fg-secondary);
+ font-weight: 500;
+}
+
+.previewError {
+ color: var(--danger);
+}
+
+.advancedSection {
display: flex;
flex-direction: column;
- gap: var(--space-0-5);
- padding: 7px 10px;
- border-radius: var(--radius-control);
- background: var(--bg-floating-toolbar);
- box-shadow: inset 0 0 0 1px var(--border);
- font-size: var(--fs-tiny);
+ border-top: 1px solid var(--border);
+ padding-top: 8px;
+}
+
+.advancedToggle {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: var(--space-2);
+ width: 100%;
+ padding: 4px 2px;
+ border-radius: var(--radius-small);
color: var(--fg-secondary);
+ font-size: var(--fs-small);
+ font-weight: 500;
+ text-align: left;
+}
+
+.advancedToggle:hover {
+ color: var(--fg-strong);
+}
+
+.advancedTitle {
+ display: inline-flex;
+ align-items: center;
+ gap: var(--space-1);
+}
+
+.advancedSummary {
+ color: var(--fg-muted);
+ font-size: var(--fs-tiny);
+ font-weight: 400;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.advancedBody {
+ display: flex;
+ flex-direction: column;
+ gap: var(--space-3);
+ padding-top: 10px;
}
.errorBox {
@@ -436,45 +584,21 @@
font-size: var(--fs-small);
}
-/* Sidebar hub row */
-.hubBar {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: var(--space-1-5);
- padding: 4px 8px;
- border-bottom: 1px solid var(--border);
- flex-shrink: 0;
-}
-
-.hubBtn {
- display: flex;
- align-items: center;
- gap: var(--space-1-5);
- flex: 1;
- min-width: 0;
- padding: 3px 6px;
- border: none;
- border-radius: var(--radius-small);
- background: none;
- color: var(--fg-strong);
- font: inherit;
- font-size: var(--fs-small);
- text-align: left;
- cursor: pointer;
-}
-
-.hubBtn:hover {
- background: var(--bg-hover);
-}
-
-.hubMeta {
- margin-left: auto;
+/* Sidebar tool window header badge dot for unread/attention runs. */
+.headerBadgeWrap {
+ position: relative;
display: inline-flex;
- align-items: center;
- gap: var(--space-1-5);
- color: var(--fg-muted);
- font-size: var(--fs-tiny);
+}
+
+.headerBadgeDot {
+ position: absolute;
+ top: 4px;
+ right: 4px;
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: var(--accent);
+ pointer-events: none;
}
/* Session provenance banner & schedule strip */
diff --git a/src/features/agents/AutomationsEditor.tsx b/src/features/agents/AutomationsEditor.tsx
index b50055daf..1a70f7647 100644
--- a/src/features/agents/AutomationsEditor.tsx
+++ b/src/features/agents/AutomationsEditor.tsx
@@ -293,6 +293,35 @@ export function AutomationsEditor({
}
};
+ const { host } = snapshot;
+ const projectActiveSchedules = useMemo(
+ () => snapshot.automations.filter((a) => a.enabled && a.trigger.kind !== "manual").length,
+ [snapshot.automations],
+ );
+
+ const headerMoreMenu = (): MenuItem[] => [
+ {
+ kind: "item",
+ id: "import",
+ label: "Import .automation.md",
+ icon: "download",
+ disabled: untrustedProject,
+ run: () => setImportOpen(true),
+ },
+ ...(projectActiveSchedules > 0
+ ? [
+ {
+ kind: "item" as const,
+ id: "pause-all",
+ label: "Pause All",
+ icon: "pause",
+ disabled: untrustedProject,
+ run: () => void handlePauseAll(),
+ },
+ ]
+ : []),
+ ];
+
const automationMenu = (auto: AgentAutomation_Serialize): MenuItem[] => [
{
kind: "item",
@@ -340,394 +369,394 @@ export function AutomationsEditor({
},
];
- const { host } = snapshot;
- const projectActiveSchedules = useMemo(
- () => snapshot.automations.filter((a) => a.enabled && a.trigger.kind !== "manual").length,
- [snapshot.automations],
- );
-
return (
-
-
-
-
- Agent Automations
-
-
- 0 && styles.statusDotOn)}
- aria-hidden="true"
- />
-
- {host.remote ? tx("Remote Daemon") : tx("Local Host")}
- ·
-
- {host.activeSchedules === 1 ? tx("1 active schedule") : tx`${host.activeSchedules} active schedules`}
-
- {host.bootServiceRegistered && (
- <>
- ·
-
- Auto-starts on login
-
- >
- )}
-
-
-
-
-
- {projectActiveSchedules > 0 && (
-
- )}
- void executeAction("file.settings", AUTOMATIONS_PAGE)}
- />
-
-
-
-
- {loadError && (
-
-
- {loadError}
-
- )}
-
- {host.bootServiceError && (
-
-
- {host.bootServiceError}
-
- )}
-
- {untrustedProject && (
-
-
-
-
- This project is untrusted. Workspace automations stay paused until you trust the project.
+
+
+
+
+ Agent Automations
+
+
+ 0 && styles.statusDotOn)}
+ aria-hidden="true"
+ />
+ {host.remote && }
+ {host.remote ? tx("Remote Daemon") : tx("Local Host")}
+ ·
+
+ {host.activeSchedules === 1 ? tx("1 active schedule") : tx`${host.activeSchedules} active schedules`}
+
+ {host.bootServiceRegistered && (
+ <>
+ ·
+
+ Auto-starts on login
+
+ >
+ )}
-
- )}
-
-
setAutomationsTab(id as "schedules" | "runs")}
- items={[
- {
- id: "schedules",
- label: Schedules,
- text: "Schedules",
- trailing: snapshot.automations.length ? {snapshot.automations.length} : undefined,
- },
- {
- id: "runs",
- label: Run History,
- text: "Run History",
- trailing:
- host.unreadRuns > 0 ? (
- {host.unreadRuns}
- ) : snapshot.runs.length ? (
- {snapshot.runs.length}
+
+
+ void executeAction("file.settings", AUTOMATIONS_PAGE)}
+ />
+ showContextMenu(e, headerMoreMenu())} />
+
+
+
+ {loadError && (
+
+
+ {loadError}
+
+ )}
+
+ {host.bootServiceError && (
+
+
+ {host.bootServiceError}
+
+ )}
+
+ {untrustedProject && (
+
+
+
+
+ This project is untrusted. Workspace automations stay paused until you trust the project.
+
+
+
+ )}
+
+
+ setAutomationsTab(id as "schedules" | "runs")}
+ items={[
+ {
+ id: "schedules",
+ label: Schedules,
+ text: "Schedules",
+ trailing: snapshot.automations.length ? (
+ {snapshot.automations.length}
) : undefined,
- },
- ]}
- />
-
-
-
-
-
Run History,
+ text: "Run History",
+ trailing:
+ host.unreadRuns > 0 ? (
+ {host.unreadRuns}
+ ) : snapshot.runs.length ? (
+ {snapshot.runs.length}
+ ) : undefined,
+ },
+ ]}
/>
+
+
+
+
+
+ {activeTab === "runs" && (
+ <>
+
- {activeTab === "schedules" ? (
-
+
+
+ {activeTab === "schedules" ? (
+ filteredAutomations.length === 0 ? (
+
+
+
+ {query ? No matching automations : Automate recurring agent workflows}
+
+ {!query && (
+
+
+ Schedules run directly on your local host or remote daemon—even when editor windows are closed
+ or after an OS reboot—using isolated Git worktrees so your working tree stays clean.
+
+
+ )}
+
+ {!query && (
+
+ {STARTER_TEMPLATES.map((tpl) => (
+
+ ))}
+
+ )}
+
+ ) : (
+
+ {filteredAutomations.map((auto) => (
+
showContextMenu(e, automationMenu(auto))}
+ >
+
+
+
+
+
+ {auto.name}
+ {describeTrigger(auto.trigger, tx)}
+ {!auto.enabled && (
+
+ Paused
+
+ )}
+ {auto.unreadRuns > 0 && (
+
+ {auto.unreadRuns === 1 ? tx("1 unread") : tx`${auto.unreadRuns} unread`}
+
+ )}
+
+
{auto.prompt.text}
+ {auto.pausedReason && (
+
+ {auto.pausedReason}
+
+ )}
+
+ {providerName(auto.provider)}
+ ·
+
+ {auto.workspace.kind === "chatOnly"
+ ? tx("Chat only")
+ : auto.workspace.isolation === "worktree"
+ ? `${basename(auto.workspace.root)} · ${tx("Worktree")}`
+ : `${basename(auto.workspace.root)} · ${tx("Local checkout")}`}
+
+ ·
+ {auto.continuity === "sameTask" ? tx("Rolling session") : tx("Fresh session")}
+ {auto.enabled && auto.nextRunMs ? (
+ <>
+ ·
+
+ Next: {formatShortTimestamp(auto.nextRunMs)}
+
+ >
+ ) : null}
+ {auto.maxRuns ? (
+ <>
+ ·
+
+ {auto.runCount}/{auto.maxRuns} runs
+
+ >
+ ) : null}
+
+
+
+
+
+
+ void handleToggleEnabled(auto)}
+ />
+ openAutomationDialog({ editing: auto })}
+ />
+ showContextMenu(e, automationMenu(auto))}
+ />
+
+
+ ))}
+
+ )
+ ) : filteredRuns.length === 0 ? (
+
+
+
+ No automation runs yet
+
+
+
+ Scheduled and manual runs appear here with diff summaries, approval badges, and one-click session
+ transcripts.
+
+
+
+
+ ) : (
+
+ {filteredRuns.map((run) => (
+
void handleOpenRun(run)}
+ >
+
+
+
+
+
+ {run.automationName} #{run.runNumber}
+
+ {run.status === "needsInput" && (
+
+
+ Needs approval
+
+ )}
+ {run.unread && (
+
+ Unread
+
+ )}
+ {run.origin.kind === "scheduled" && run.origin.catchUp && (
+
+ Catch-up
+
+ )}
+
+ {run.error && (
+
+ {run.error}
+
+ )}
+
+ {formatShortTimestamp(run.startedMs)}
+ ·
+ {run.origin.kind === "manual" ? tx("Manual run") : tx("Scheduled run")}
+ {run.branch && (
+ <>
+ ·
+ {run.branch}
+ >
+ )}
+ {(run.added > 0 || run.removed > 0) && (
+ <>
+ ·
+ +{run.added}
+ -{run.removed}
+ >
+ )}
+ {run.worktreeCleaned && (
+ <>
+ ·
+
+ Zero-diff worktree cleaned
+
+ >
+ )}
+
+
+
+
+
e.stopPropagation()}>
+ {run.unread && (
+ void backend.markRead(run.id, null).then(() => refreshAutomations(backend))}
+ />
+ )}
+ {run.taskId && (
+
+ )}
+
+
+ ))}
+ {snapshot.runsNextCursor != null && (
+
+
+
+ )}
+
+ )}
+
+
+ {activeTab === "schedules" && (
+
void handleToggleAutoStart(v)}
label="Keep automations running when OpenIDEA is closed"
/>
- ) : (
-
-
- )}
-
-
-
- {activeTab === "schedules" ? (
- filteredAutomations.length === 0 ? (
-
-
- {query ? No matching automations : Automate recurring agent workflows}
-
- {!query && (
- <>
-
-
- Schedules run directly on your local host or remote daemon—even when editor windows are closed or
- after an OS reboot—using isolated Git worktrees so your working tree stays clean.
-
-
-
- {STARTER_TEMPLATES.map((tpl) => (
-
- ))}
-
- >
- )}
-
- ) : (
-
- {filteredAutomations.map((auto) => (
-
showContextMenu(e, automationMenu(auto))}
- >
-
-
-
-
-
- {auto.name}
- {describeTrigger(auto.trigger, tx)}
- {!auto.enabled && (
-
- Paused
-
- )}
- {auto.unreadRuns > 0 && (
-
- {auto.unreadRuns === 1 ? tx("1 unread") : tx`${auto.unreadRuns} unread`}
-
- )}
-
-
{auto.prompt.text}
- {auto.pausedReason && (
-
- {auto.pausedReason}
-
- )}
-
- {providerName(auto.provider)}
- ·
-
- {auto.workspace.kind === "chatOnly"
- ? tx("Chat only")
- : auto.workspace.isolation === "worktree"
- ? `${basename(auto.workspace.root)} · ${tx("Worktree")}`
- : `${basename(auto.workspace.root)} · ${tx("Local checkout")}`}
-
- ·
- {auto.continuity === "sameTask" ? tx("Rolling session") : tx("Fresh session")}
- {auto.enabled && auto.nextRunMs ? (
- <>
- ·
-
- Next: {formatShortTimestamp(auto.nextRunMs)}
-
- >
- ) : null}
- {auto.maxRuns ? (
- <>
- ·
-
- {auto.runCount}/{auto.maxRuns} runs
-
- >
- ) : null}
-
-
-
-
-
-
- void handleToggleEnabled(auto)}
- />
- openAutomationDialog({ editing: auto })}
- />
- showContextMenu(e, automationMenu(auto))}
- />
-
-
- ))}
-
- )
- ) : filteredRuns.length === 0 ? (
-
-
- No automation runs yet
-
-
-
- Scheduled and manual runs appear here with diff summaries, approval badges, and one-click session
- transcripts.
-
-
-
- ) : (
-
- {filteredRuns.map((run) => (
-
void handleOpenRun(run)}
- style={{ cursor: run.taskId ? "pointer" : "default" }}
- >
-
-
-
-
-
- {run.automationName} #{run.runNumber}
-
- {run.status === "needsInput" && (
-
-
- Needs approval
-
- )}
- {run.unread && (
-
- Unread
-
- )}
- {run.origin.kind === "scheduled" && run.origin.catchUp && (
-
- Catch-up
-
- )}
-
- {run.error && (
-
- {run.error}
-
- )}
-
- {formatShortTimestamp(run.startedMs)}
- ·
- {run.origin.kind === "manual" ? tx("Manual run") : tx("Scheduled run")}
- {run.branch && (
- <>
- ·
- {run.branch}
- >
- )}
- {(run.added > 0 || run.removed > 0) && (
- <>
- ·
- +{run.added}
- -{run.removed}
- >
- )}
- {run.worktreeCleaned && (
- <>
- ·
-
- Zero-diff worktree cleaned
-
- >
- )}
-
-
-
-
-
e.stopPropagation()}>
- {run.unread && (
- void backend.markRead(run.id, null).then(() => refreshAutomations(backend))}
- />
- )}
- {run.taskId && (
-
- )}
-
-
- ))}
- {snapshot.runsNextCursor != null && (
-
-
-
- )}
-
)}
@@ -770,8 +799,7 @@ export function AutomationsEditor({
diff --git a/src/platform/locales/text/en.json b/src/platform/locales/text/en.json
index 4a4edad68..2f13548b5 100644
--- a/src/platform/locales/text/en.json
+++ b/src/platform/locales/text/en.json
@@ -4844,9 +4844,12 @@
"Cron expression": "Cron expression",
"One-shot": "One-shot",
"Manual only": "Manual only",
- "Accept edits (edit workspace files without asking; ask before commands)": "Accept edits (edit workspace files without asking; ask before commands)",
- "Allow all (capped by your interactive approval setting)": "Allow all (capped by your interactive approval setting)",
- "Ask for approval (ask before edits and commands)": "Ask for approval (ask before edits and commands)",
+ "Accept edits": "Accept edits",
+ "Edit workspace files without asking; ask before commands": "Edit workspace files without asking; ask before commands",
+ "Allow all": "Allow all",
+ "Capped by your interactive approval setting": "Capped by your interactive approval setting",
+ "Ask for approval": "Ask for approval",
+ "Ask before edits and commands": "Ask before edits and commands",
"Your interactive New Tasks setting is Asking for approval, so scheduled turns are capped to ask before edits and commands.": "Your interactive New Tasks setting is Asking for approval, so scheduled turns are capped to ask before edits and commands.",
"Fresh session on each run": "Fresh session on each run",
"Reuse rolling session": "Reuse rolling session",
@@ -4882,7 +4885,7 @@
"No workspace (chat only)": "No workspace (chat only)",
"Session Continuity": "Session Continuity",
"Checkout Isolation": "Checkout Isolation",
- "Isolated Git worktree (Recommended)": "Isolated Git worktree (Recommended)",
+ "Isolated Git worktree": "Isolated Git worktree",
"Base Branch": "Base Branch",
"Auto-delete temporary worktree when the run makes zero file changes": "Auto-delete temporary worktree when the run makes zero file changes",
"Schedule": "Schedule",
diff --git a/src/platform/locales/text/zh.json b/src/platform/locales/text/zh.json
index 088f32696..828827a15 100644
--- a/src/platform/locales/text/zh.json
+++ b/src/platform/locales/text/zh.json
@@ -11567,9 +11567,12 @@
"Cron expression": "Cron 表达式",
"One-shot": "单次执行",
"Manual only": "仅手动触发",
- "Accept edits (edit workspace files without asking; ask before commands)": "接受编辑(自动允许工作区文件编辑,执行命令前询问)",
- "Allow all (capped by your interactive approval setting)": "全部允许(上限受交互式审批设置约束)",
- "Ask for approval (ask before edits and commands)": "每次询问(编辑文件与执行命令前均询问)",
+ "Accept edits": "接受编辑",
+ "Edit workspace files without asking; ask before commands": "自动允许工作区文件编辑,执行命令前询问",
+ "Allow all": "全部允许",
+ "Capped by your interactive approval setting": "上限受交互式审批设置约束",
+ "Ask for approval": "每次询问",
+ "Ask before edits and commands": "编辑文件与执行命令前均询问",
"Your interactive New Tasks setting is Asking for approval, so scheduled turns are capped to ask before edits and commands.": "当前交互式“新建任务”设置为“请求批准”,因此定时运行的权限上限也会在编辑与执行命令前询问。",
"Fresh session on each run": "每次运行新建会话",
"Reuse rolling session": "复用滚动会话",
@@ -11605,7 +11608,7 @@
"No workspace (chat only)": "无工作区(仅聊天)",
"Session Continuity": "会话延续方式",
"Checkout Isolation": "工作区隔离",
- "Isolated Git worktree (Recommended)": "独立 Git worktree(推荐)",
+ "Isolated Git worktree": "独立 Git worktree",
"Base Branch": "基础分支",
"Auto-delete temporary worktree when the run makes zero file changes": "运行未产生文件改动时自动删除临时 worktree",
"Schedule": "运行计划",