Skip to content

[Bug] Advisor setting missing and new sessions show Off despite enabled global default #323

Closed

Description

@avinashkanaujiya

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

  1. Configure the active agent directory's config.yml with:
    advisor:
      enabled: true
      syncBacklog: '1'
  2. Open OMPWeb and start a new chat.
  3. Inspect the per-chat Advisor state: the user reports it starts Off.
  4. 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: true in the active shared agent config.yml; PI_CODING_AGENT_DIR points 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.ts keeps per-chat spawn state in an initially empty Set and only appends ?advisor=1 when enabled there.
  • Current upstream hooks/useAgentSession.ts initializes advisorEnabled with useState(false) and loads session-local omp-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.ts combines per-chat and workspace launch flags, and buildSessionSpawnArgs adds --advisor for either. Installed settings handling also supports advisor.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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions