Merge pull request #108 from JoasASantos/fix/settings-reactive-prefill

fix(web): apply Settings Engine choice to the wizard
This commit is contained in:
Joas A Santos authored and GitHub committed 2026-12-03 09:37:37 -03:00
commit 6961466c03
1 file changed
+8
+8
View File
@@ -665,6 +665,14 @@ async function loadProviders() {
sel.addEventListener('change', onProviderChange);
try {
const cfg = await api('/api/config/settings');
// Settings → Engine is the default for new runs; without this the wizard's
// reactive checkbox stayed checked and every web run used the reactive
// engine (no tool-recon / URL harvest) even when the operator chose phased.
const rbox = $('#fieldReactive');
if (rbox) {
if (cfg.reactive === 'off') rbox.checked = false;
else if (cfg.reactive === 'on') rbox.checked = true;
}
if (cfg.defaultModel) {
const parts = cfg.defaultModel.split(':');
if (parts.length >= 2) {