Skip to content

feat(code): add cloud-based automation scheduling#1373

Open
annikaschmid wants to merge 5 commits intomainfrom
codex/automation-cloud-backend
Open

feat(code): add cloud-based automation scheduling#1373
annikaschmid wants to merge 5 commits intomainfrom
codex/automation-cloud-backend

Conversation

@annikaschmid
Copy link
Copy Markdown
Contributor

@annikaschmid annikaschmid commented Mar 30, 2026

Summary

  • Add full automations feature: create, edit, delete, and run scheduled automations that execute in cloud sandboxes
  • Cloud-based automation backend with API hooks (useAutomations) replacing local DB/scheduler
  • Automations UI with schedule configuration, timezone support, templates, and run-now capability
  • Cloud tasks visible in sidebar and command center alongside local workspace tasks
  • Improved API fetcher error handling for non-JSON responses
  • Enhanced task logs panel with cloud run log streaming
  • PostHog API client extended with automation CRUD and execution endpoints

Also includes upstream changes from main: signals inbox improvements, MCP apps, environments, skills view, Windows support, logo updates, and more.

How did you test this code?

  • Create a new automation with schedule and verify it appears in the list
  • Edit and delete automations via the UI
  • Run an automation manually with "Run now" and verify cloud task is created
  • Confirm automation tasks appear in sidebar and command center
  • Verify task logs stream correctly for cloud-run automations
  • Check error handling when API returns non-JSON errors

🤖 Generated with Claude Code

Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com

annikaschmid and others added 5 commits March 25, 2026 17:08
Adds the backend infrastructure for running skills on a cron schedule:
- automations + automation_runs DB tables with drizzle migration
- AutomationRepository for CRUD operations
- AutomationService with setTimeout-based scheduler, agent execution
- tRPC router with full CRUD, triggerNow, run history, subscriptions
- Shared types for automation schedules and run info

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Merges colleague's frontend (AutomationsView, store, templates, sidebar)
with the backend (DB schema, repository, service, tRPC router, scheduler).

Aligned shared types to use her Zod-based Automation schema with
scheduleTime + timezone model. Updated backend DB schema, repository,
service, and router to match.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Switch workspaceMode from "local" to "cloud" so automation tasks
execute in PostHog cloud sandboxes rather than local agent sessions.
Works even after laptop closes - missed runs catch up on app startup.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove local automation backend (DB repository, scheduler, service,
tRPC router) and replace with cloud API calls via PostHog client.
Automations are now managed server-side with CRUD hooks and cloud
task visibility in sidebar/command center.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@annikaschmid annikaschmid changed the title feat(code): move automation scheduling to cloud API feat(code): add cloud-based automation scheduling Mar 30, 2026
@annikaschmid annikaschmid requested review from joshsny and tatoalo March 30, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants