fix(web): apply Settings Engine (reactive/phased) to the wizard

- choosing Phased in Settings now unchecks the wizard Reactive engine box
- avoids the checkbox default re-enabling reactive and skipping tool recon
This commit is contained in:
CyberSecurityUP committed 2026-12-03 09:37:30 -03:00
1 parent b35bfb15c5
commit b29917381f
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) {