Skip to content

Suppress and reconcile Claude auth health alerts when Claude is not enabled #2204

Closed

Description

@integry

User reports inbox "System component unhealthy" for claudeAuth on a Codex-only instance with Claude not enabled.

Concrete source evidence on desktop candidate b5836ed:

  • packages/api/routes/statusRoutes.ts derives claudeAuth as connected only if agents.some(type === claude && status === connected), otherwise disconnected, including zero Claude agents.
  • packages/api/services/notificationProjectionService.ts SYSTEM_HEALTH_RULES unconditionally requires claudeAuth connected and projectSystemSnapshot projects a failure for disconnected.

Implement a small backend-first correction against desktop epic #1970 / 1950-epic-cross-platform-dsk, never main.
Acceptance:

  1. Determine Claude applicability from enabled/configured agents, not merely the selected task model. Codex-only/no enabled Claude must not generate Claude auth failure cards.
  2. Preserve genuine auth failure warnings when Claude is enabled (including mixed-provider instances); do not hide failures by marking everything healthy or swallowing unknown/error states.
  3. Reconcile already-created stale claudeAuth inbox warnings when Claude is disabled/not applicable; avoid new warning/recovery spam and retain unrelated inbox data/history according to existing reconciliation semantics.
  4. Preserve status API compatibility and consistent UI/CLI presentation of not-applicable auth state.
  5. Focused tests: Codex-only, no agents, disabled Claude, enabled healthy/unhealthy Claude, mixed providers, transition from enabled failure to disabled and back, existing stale card reconciliation.
    Reuse existing status/notification state machinery; no unrelated provider redesign or desktop packaging changes. Link focused PR with Closes this issue, leave open for Ultrafix and root validation. Related desktop acceptance Complete desktop end-to-end UX, visual polish, and smoke coverage #1962.

Activity

  1. integry commented on Sep 7, 2026

    @integry
    OwnerAuthor

    Please implement now against 1950-epic-cross-platform-dsk. AI/base labels are already set. Root traced the false positive to unconditional Claude health projection when status has no connected Claude agent; verify enabled-agent semantics and fix stale-card reconciliation as specified. Run focused tests, open PR with Closes #2204 and link it here. Leave open for Ultrafix and independent validation. Work independently of sidebar #2203 and tray/packaging changes.

  2. propr-dev commented on Sep 7, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 2204/gpt-5.6-sol-suppress-and-reconcile-cl-20260907-2137-obn
    • Base Branch: 1950-epic-cross-platform-dsk
    • Worktree: issue-2204-20260907-2137-gpt-5.6-sol-obn

    🔍 Track Task Execution

  3. added a commit that references this issue on Sep 7, 2026
  4. integry commented on Sep 7, 2026

    @integry
    OwnerAuthor

    Implemented and merged into desktop epic #1970 via #2206 (merge b158608). Codex-only/disabled Claude configurations report not_applicable and reconcile stale Claude inbox alerts. This is integrated source completion, not deployment: the isolated desktop backend still runs b5836ed and requires the next integrated runtime upgrade. Final integrated acceptance remains tracked in #1962; unrelated authentication race in #2210/#2211.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions