gui(agents): the effort bars follow the slider — moving it changed the level's name on the chip but left the bars at the level it opened with

This commit is contained in:
yetone committed 2026-09-25 05:02:18 +08:00
1 parent 06997e90eb
commit 8bade2eb7a
1 file changed
+1
+1
View File
@@ -542,6 +542,7 @@ function renderEffortPicker() {
value.textContent = effortName(option);
value.classList.toggle("empty", !option.value);
}
opened.anchor.querySelector(".effort-ic")?.replaceWith(effortIcon(opened.field));
// Persist every settled slider value, but keep the compact control open so
// the user can compare adjacent levels. Queue writes to preserve ordering
// when keyboard input changes several stops quickly.