feat(replicated): OHE-3231 expose the automation conversation archive delay as a ConfigOption - #1244
Merged
Merged
Conversation
… delay as a ConfigOption
The automation service now reads AUTOMATION_SANDBOX_CLEANUP_DELAY_SECONDS:
above 0, a finished run's sandbox is paused instead of deleted and the
watchdog deletes it once the delay has passed, so the conversation stays
resumable meanwhile. OHE-2833 requires that delay to be configurable during
Replicated installation, and the KOTS config exposed no automation tunables.
Add `automations_sandbox_cleanup_delay_seconds` ("Conversation Archive Delay
(seconds)") to the Automations group: a text item defaulting to "0", validated
as a non-negative integer, shown only while automations are enabled. Map it
into `automation.env` in the automations_enabled optionalValues block; the
umbrella `automation.env` map and the subchart's deduplicating env wrapper
already carry arbitrary AUTOMATION_* variables into both automation
deployments, so no chart file changes are needed.
The default "0" leaves existing installs archiving immediately. Values above
the sandbox Deletion Time have no further effect, since paused sandboxes are
deleted at that age regardless; the help text says so.
Refs OHE-3231, OHE-2833
hieptl
requested review from
aivong-openhands,
dylan-openhands,
jlav and
mamoodi
as code owners
September 14, 2026 04:31
Contributor
|
🚀 Released in openhands/0.70.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Exposes the automation service's new
AUTOMATION_SANDBOX_CLEANUP_DELAY_SECONDSsetting to self-hosted installs through the Replicated installer.Automation-generated conversations are archived the instant a run finishes, because the automation service deletes the run's sandbox right away. A conversation whose sandbox is gone is read-only and cannot be resumed, so a run that failed or did something unexpected cannot be inspected. The service now supports a delay: above 0, the finished run's sandbox is paused instead of deleted, and its watchdog deletes it once the delay has passed, keeping the conversation resumable meanwhile. The delay has to be configurable at install time, and the KOTS config exposed no automation tunables at all.
Two Replicated manifests change; no chart files are touched:
replicated/config.yaml— new itemautomations_sandbox_cleanup_delay_seconds, titled "Conversation Archive Delay (seconds)", in the existingautomations_configurationgroup.type: text,default: "0", regex^(0|[1-9][0-9]*)$with a non-negative-integer message, andwhen: automations_enabled, so it only appears for installs that run automations. The help text states that the delay is measured from run completion, that the sandbox is paused in the meantime, and that values above the sandbox Deletion Time have no further effect.replicated/openhands.yaml— in theautomations_enabledoptionalValuesblock (recursiveMerge: true), maps the item intoautomation.env.AUTOMATION_SANDBOX_CLEANUP_DELAY_SECONDS, quoted so the chart receives a string.The value reaches the pods through the plumbing that already exists: the umbrella chart's
automation.envmap and the automation subchart's deduplicating env wrapper, which renders arbitraryAUTOMATION_*variables into both the automation and events deployments. This is the same route the SaaS deployment already uses for itsAUTOMATION_*settings.Linear: OHE-3231 (part of OHE-2833)
Helm Chart Checklist
helm templatewithautomation.enabled=trueand the value set rendersAUTOMATION_SANDBOX_CLEANUP_DELAY_SECONDSinto the automation deployment, and thathelm unitteststill passes for the umbrella chart (154 tests) and the automation subchart (14 tests).values.yamlkey is added or renamed. The new config item usesdefault: "0", which is the automation service's current immediate-archive behaviour, so an existing install upgrades to identical behaviour until an operator changes the field.Additional Notes
automation.image.tagbump should land with or before this.secretsChecksumand thecheck-secret-checksumworkflow are unaffected.values.schema.jsonhas noautomationsection, so no schema change either.