Skip to content

ref(automations): Remove the unused status input from scheduled edits - #2909

Merged
dcramer merged 1 commit into
mainfrom
fix/scheduled-automation-blocked-reason
Nov 8, 2026
Merged

dcramer merged 1 commit into
mainfrom
fix/scheduled-automation-blocked-reason

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Item 6 of #2890.

scheduledAutomationEditSchema accepted status: "active" | "blocked", and editScheduledAutomation could save blocked with no statusReason. No caller sends status:

  • The web API's automationUpdateSchema already omitted it.
  • The update tool and version restore never set it.

Pause and resume (chat/automations/edit.ts) own status changes. This drops the field and the branches in editScheduledAutomation that read it, so an edit cannot change status at all. A new Schedule still clears a pending run-now occurrence, and a blocked or paused reason is kept.

Verified: the 10 Automation integration test files (98 tests), typecheck, lint.

via @dcramer.

--

View Session [Sentry]

`scheduledAutomationEditSchema` accepted `status: "active" | "blocked"`,
and `editScheduledAutomation` could save `blocked` with no reason. No
caller sends it: the web API omits it, and the update tool and version
restore never set it. Pause and resume own status changes.

Drop the field and the branches that read it, so an edit cannot change
status.
@vercel

vercel Bot commented Nov 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 7, 2026 9:42pm UTC

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

6 screenshot changes — 6 changed · 0 added · 0 removed

Review screenshots in Frameshift

Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Conversation Details Watched Linked Work · Mobile
Conversation Details Watched Linked Work · Mobile
Changed
Conversation Event Log Virtual · Mobile
Conversation Event Log Virtual · Mobile
Changed
Conversation Long Transcript Touch · Mobile
Conversation Long Transcript Touch · Mobile
Changed
Conversation Stop Active · Mobile
Conversation Stop Active · Mobile
Changed
Settings Mcp · Desktop
Settings Mcp · Desktop
Changed

@dcramer
dcramer merged commit c3baabc into main Nov 8, 2026
45 checks passed
@dcramer
dcramer deleted the fix/scheduled-automation-blocked-reason branch November 8, 2026 17:29

This branch was successfully deployed

1 active deployment
Preview – junior-docs — fdb1be2a Deployed Nov 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant