{# AGENT-DETAIL header · INLINE-EDITABLE harness · model · reasoning (the CTO's original "red-underlined" spec). Renders the three header config fields as subtle inline POSTs to POST /agents/{project}/{agent}/config, which calls the SAME app.settings.save_agent_override the Settings → Configure card uses — so a change here shows in Configure and vice-versa (the app-DB-backed `agent_overrides["{project}:{agent}"]` store is NOT forked). CONSOLE-LOCAL BY DESIGN (feature-gap #81, the CTO's reversed decision): these overrides stay console-local on save — the registry is NOT written on save (it stays authoritative). Committing the config to the Cortex agent registry is the explicit "Promote to registry" action in the SPA config modal; see app.registry_sync. Changing the HARNESS re-populates the MODEL + REASONING options client-side from ad-harness-map (no round-trip), exactly like the Configure card; the change then POSTs and this whole sub-line is swapped back (outerHTML) with the new effective state + a transient "saved" pill. Context (from main._agent_detail_view): selected_key : project key (for the POST path) agent : flattened agent view (name, etc.) agent_compound : "name@project" ad_cfg : per-agent config view model (harness, model, reasoning, harness_label, model_is_catalog, model_options, model_groups, reasoning_levels, ov_harness/model/reasoning, reg_* hints) — SAME shape as a Configure row ad_harness_options : [{value,label}] for the harness {% for opt in ad_harness_options %} {% endfor %} {# tolerate an unknown current harness (still show it as selected) #} {% if ad_cfg.harness and ad_cfg.harness not in (ad_harness_options | map(attribute='value') | list) %} {% endif %} {% if ad_cfg.ov_harness %}{% endif %} {# ---------- model (inline · populated per harness) ---------- #} {% if ad_cfg.ov_model %}{% endif %} {# ---------- reasoning / effort (inline · per harness) ---------- #} {% if ad_cfg.ov_reasoning %}{% endif %} {# transient save confirmation (swapped in after a POST) #} {% if ad_save_error %} save failed {% elif ad_saved %} saved {% endif %}