Latest in AI
OpenHands 1.46 Git Sync: How to Keep Automation Activation Local
Version an automation definition without letting the same Git sync decide whether it is running in every environment.
An automation definition may be identical in staging and production, while one is meant to run and the other stays off. OpenHands 1.46 adds a switch to separate those decisions. The November 25 release and the merged Canvas change call it Keep automation activation status local.
This is useful because you can review what a job will do in Git and still decide when each OpenHands environment may run it. Before enabling the option, check how your release process currently uses activation fields in the repository.
Check whether your backend exposes the setting
Open Automate > Git Sync and look for the switch. The Canvas code keeps it hidden when the automation service does not report the option. Upgrading only a frontend does not prove the deployed backend has it. The automation service change describes an organization-level setting that is off by default unless the service default is configured otherwise.
Local means local to the OpenHands environment's stored state. It doesn't mean an automation moves to your laptop or that the Git definition stops syncing.
See what happens in both directions
With the option on, flipping an active automation off does not make a new pending Git change for that status alone. An edit to the definition still syncs, but a normal export of the definition omits the activation fields. On import, an existing automation keeps its local status. A newly imported automation starts inactive even if its YAML asks to enable it.
That is a useful shape for a reporting job that must be reviewed before it runs. It can surprise a team whose rollout process currently expects a Git change to activate the job.
Treat drafts as an exception
The upstream implementation explicitly leaves draft handling outside the new activation behavior. A draft still exports its draft state and follows the existing draft-import rules. Do not assume a draft and a disabled live automation are interchangeable. If your onboarding process uses draft promotion, test it separately and verify the status before connecting any meaningful action.
Rehearse with a job that does nothing outside staging
Use a disposable repository and a small report over dummy records. Start with the existing synced job inactive. In staging, toggle it and check the job status and Git Sync's pending count. Then change its description and sync. Check that the description reaches Git without an activation field being introduced by that export.
Next, import a new fixture definition with an active flag and verify that it arrives inactive under the new policy. Keep the test deadline and output in a disposable workspace. For a production pilot, record which human or deployment gate now activates each job. A merge is no longer enough for this workflow under the new setting.
Plan what happens if you turn the option off
The service change documents that turning the setting off can mark synced automations dirty so their statuses can be exported again. Check the pending diff before syncing. Do not treat a rollback as a display-only preference.
Keep run approval in the environment where it belongs. The repository can still tell you what a scheduled job is supposed to do without silently deciding whether that job is live today.
I help AI teams write practical guides their customers can use. Book a 30-minute call.