diff --git a/frontend/index.html b/frontend/index.html
index f77b52d..b98ee25 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -353,8 +353,10 @@ function escAttr(s){ return esc(s).replace(/"/g,'"'); }
function syncPipelineOptions(){
const agent=(document.querySelector('input[name="pipeline_mode"]:checked')||{}).value==='agent';
const local=document.querySelector('input[name="compute"][value="local"]');
- local.disabled=agent;
- if(agent&&local.checked) document.querySelector('input[name="compute"][value="openrouter"]').checked=true;
+ if(local){
+ local.disabled=agent;
+ if(agent&&local.checked) document.querySelector('input[name="compute"][value="openrouter"]').checked=true;
+ }
}
document.querySelectorAll('input[name="pipeline_mode"]').forEach(el=>el.addEventListener('change',syncPipelineOptions));
syncPipelineOptions();