The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
Copy inherited config as default when unchecking inherit checkbox
dottaaff56c22972d
diff --git a/ui/src/pages/ExecutionWorkspaceDetail.tsx b/ui/src/pages/ExecutionWorkspaceDetail.tsxindex a031ed8489..b166e43239 100644--- a/ui/src/pages/ExecutionWorkspaceDetail.tsx+++ b/ui/src/pages/ExecutionWorkspaceDetail.tsx@@ -547,9 +547,17 @@ export function ExecutionWorkspaceDetail() {id="inherit-runtime-config"type="checkbox"checked={form.inheritRuntime}- onChange={(event) =>- setForm((current) => current ? { ...current, inheritRuntime: event.target.checked } : current)- }+ onChange={(event) => {+ const checked = event.target.checked;+ setForm((current) => {+ if (!current) return current;+ // When unchecking "inherit" and the field is empty, copy inherited config as a starting point+ if (!checked && !current.workspaceRuntime.trim() && inheritedRuntimeConfig) {+ return { ...current, inheritRuntime: checked, workspaceRuntime: formatJson(inheritedRuntimeConfig) };+ }+ return { ...current, inheritRuntime: checked };+ });+ }}/><label htmlFor="inherit-runtime-config">Inherit project workspace runtime config</label></div>