openwork icon indicating copy to clipboard operation
openwork copied to clipboard

[Bug]: Install scheduler reports success but does not unlock automations

Open jcllobet opened this issue 7 months ago • 1 comments

Title: [Bug]: Install scheduler reports success but does not unlock automations

Summary: * The UI can show Scheduler install requested. while Automations stays blocked or the reload and install state behaves inconsistently.

Steps to reproduce: *

  1. Open Settings -> Automations in a workspace where opencode-scheduler is not installed.
  2. Click Install scheduler.
  3. Observe the toast and the Automations gate state.
  4. Stay on the page or navigate away and back without restarting OpenWork.

Expected behavior: * The scheduler is added successfully and the page consistently prompts for reload, or the user sees a direct error explaining why installation failed.

Actual behavior: * The UI shows Scheduler install requested. but Automations can remain locked, and the install or reload state can appear stuck, reset, or non-functional.


Label: bug

jcllobet avatar Apr 10 '26 06:04 jcllobet

Opened a fix here: https://github.com/different-ai/openwork/pull/1461 The issue was caused by a stale local schedulerInstallRequested flag that could remain true even after the scheduler plugin became installed, which kept the Automations gate active. The fix clears that flag when installation is reflected in plugin state, and also clears it on install failure.

pascalandr avatar Apr 16 '26 15:04 pascalandr