Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review (codex): only persist a round field on a real edit, not bare blur
[._.]/ Adam Eivyf719c618f085
diff --git a/client/src/components/pipeline/AutopilotPanel.jsx b/client/src/components/pipeline/AutopilotPanel.jsxindex 6147925aa0..c3ae994fc5 100644--- a/client/src/components/pipeline/AutopilotPanel.jsx+++ b/client/src/components/pipeline/AutopilotPanel.jsx@@ -35,8 +35,13 @@ const clampRound = (n, fallback) => {};// A single convergence-round field for the Options popover. Allows '' mid-edit-// (so the field can be cleared) and clamps + persists the chosen value on blur.+// (so the field can be cleared) and clamps + persists the chosen value on blur —+// but ONLY when the user actually changed it. A bare focus+blur (tabbing through+// Options) must not persist the display fallback or mark the field dirty, or it+// would clobber a saved limit before settings load and block the load from+// applying it.function RoundInput({ id, label, settingKey, value, setValue, defaultValue, persist }) {+ const dirtyRef = useRef(false);return (<div className="flex items-center gap-2"><label htmlFor={id} className="text-xs text-gray-300">{label}</label>@@ -46,8 +51,10 @@ function RoundInput({ id, label, settingKey, value, setValue, defaultValue, persmin={ROUND_MIN}max={ROUND_MAX}value={value}- onChange={(e) => setValue(e.target.value === '' ? '' : Number(e.target.value))}+ onChange={(e) => { dirtyRef.current = true; setValue(e.target.value === '' ? '' : Number(e.target.value)); }}onBlur={() => {+ if (!dirtyRef.current) return; // untouched — don't persist/clamp/mark dirty+ dirtyRef.current = false;const v = clampRound(value, defaultValue);setValue(v);persist({ [settingKey]: v });