Repository navigation
Description
Describe the bug
New sessions show Advisor as Off even though the shared OMP global configuration enables it. The user also cannot find the advertised Advisor setting in Settings → Agent & Intelligence. Please clarify and synchronize global defaults, project launch settings, and per-chat UI state.
To reproduce
- Configure the active agent directory's
config.ymlwith:advisor: enabled: true syncBacklog: '1'
- Open OMPWeb and start a new chat.
- Inspect the per-chat Advisor state: the user reports it starts Off.
- Look for an Advisor/default control under Settings → Agent & Intelligence: the user reports it is absent.
Expected behavior
New sessions should honor and accurately reflect the enabled default, with a discoverable persistent-default control. If per-chat settings intentionally override the global setting, explain the precedence in the UI and distinguish the default from the effective runtime state.
Environment
- OS: Debian 12 (Bookworm), Docker container on Linux x86-64
- Node.js: 24.22.1
- omp: 18.12.6
- omp-web: @kahme247/ompweb 0.6.0
- Browser: not captured
Additional context / evidence and limits
- Server-side inspection confirmed
advisor.enabled: truein the active shared agentconfig.yml;PI_CODING_AGENT_DIRpoints to that directory. No credential/config dump is attached. - The affected project's registry also contains
launchConfig: { advisor: true }when inspected. Despite that, the user reports the session UI starts Off. - Installed README advertises “Agent & Intelligence (advisor, memory, compaction)” in web settings. The missing-settings-control symptom is user-reported; I have not independently inspected the rendered Settings UI.
- Installed
lib/agent-client.tskeeps per-chat spawn state in an initially emptySetand only appends?advisor=1when enabled there. - Current upstream
hooks/useAgentSession.tsinitializesadvisorEnabledwithuseState(false)and loads session-localomp-advisor-enabled:${sid}from localStorage, treating a missing key as false. This appears relevant to the default/indicator mismatch; these frontend lines were inspected on upstream main, not independently mapped to the installed compiled frontend. - Installed
lib/rpc-manager.tscombines per-chat and workspace launch flags, andbuildSessionSpawnArgsadds--advisorfor either. Installed settings handling also supportsadvisor.enabled.
The Off indicator does not establish that the underlying OMP advisor is actually disabled: OMP may independently read its global configuration, and the project launch flag can force it on. No model run was triggered to test advisor execution. Please investigate whether this is a UI-default synchronization problem, a runtime default problem, or both, and whether the documented Settings control was removed/moved intentionally.
No screenshots attached. No application/configuration changes were made for this investigation.
Activity