Skip to content

[Bug][Dashboard] Codex disable dialog and state are misleading #3406

Description

@turin-dev

Client or integration

OpenCodex dashboard

Area

Dashboard

Summary

Disabling Codex from the Integrations overview opens the Grok Build consequence dialog, and after confirmation the Codex card can retain its pre-toggle state until a full page reload. The status API also supplies the OpenCodex config path instead of Codex's effective $CODEX_HOME/config.toml, so the dialog cannot accurately identify the file it will change. Expected: Codex-specific consequences name the actual file, and the card refreshes its desired and observed state immediately after the toggle.

Reproduction

  1. Run ocx start with Codex routing injected and open the local dashboard.
  2. Open Integrations and click the enabled Codex switch.
  3. Observe that the confirmation dialog says “Disable the Grok Build integration?” and does not identify the effective Codex config file.
  4. Confirm Disable.
  5. Observe that the Codex card can still show the pre-toggle state until the page is reloaded.
  6. Expected: Codex-specific consequences identify $CODEX_HOME/config.toml; the switch reflects the desired state and the badge refreshes from observed routing.

Version

2.42.0 (ea3231a8293b)

Operating system

Linux (reproduced in the component test; the behavior is dashboard-side and expected across platforms)

Provider and model

Not provider-specific; any Codex routing configuration

Logs or error output

No runtime exception is raised; the defect is stale or misleading dashboard state.

Screenshots and supporting files

No screenshot attached; the behavior is deterministic and covered by a mounted regression test.

Redacted configuration

{}

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

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

    bugSomething isn't workingguiDashboard, tray, settings UI

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions