Skip to content

stop filing switched-off AI providers under "Needs setup" - #5620

Merged
atomantic merged 1 commit into
mainfrom
cos/task-mtiun3z0/agent-465bfd5f
Sep 1, 2026
Merged

stop filing switched-off AI providers under "Needs setup"#5620
atomantic merged 1 commit into
mainfrom
cos/task-mtiun3z0/agent-465bfd5f

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Summary

  • Disabled now outranks blocked in providerCardState. PortOS ships dozens of optional provider records; ranking BLOCKED first filed every switched-off provider missing a CLI or API key under Needs setup and painted it amber, making an install with a perfectly good provider read as degraded or half-configured.
  • A switched-off card still says what enabling it would take — the findings ride along in missing. They render as a muted SETUP TO ENABLE badge, an informational (not amber) readiness banner, and a muted runtime pill: a note for the day the user wants the provider, not an outstanding task.
  • "Needs setup" now means exactly one thing: a provider the user switched ON that still can't run. It stays second in the section order as the page's only actionable bucket.
  • Server side already counted only enabled providers (providersRow filters enabled !== false), so the Capability Map row and setup banner were already correct — a test now pins that so the two halves can't drift.

Test plan

  • client: 847 files / 10,625 tests pass; biome lint clean.
  • server: 1,807 files / 36,796 tests pass.
  • New coverage: the precedence flip and preserved findings (providers.test.js), the optional readiness tone and wording (ProviderReadiness.test.jsx), the Disabled filing plus muted runtime pill and section order (AIProviders.test.jsx), and the server tally ignoring switched-off providers (capabilityMap.test.js).

PortOS ships dozens of optional provider records. `providerCardState` ranked
BLOCKED above DISABLED, so every switched-off provider missing a CLI or an API
key was filed under "Needs setup" and painted amber — making an install with a
perfectly good provider read as degraded or half-configured.

Disabled now outranks blocked. The findings still ride along in `missing`, so a
switched-off card still says what enabling it would take — as a muted "SETUP TO
ENABLE" note, an informational readiness banner, and a muted runtime pill,
rather than an outstanding task. The server's capability row already counted
only enabled providers; a test now pins that.
@atomantic
atomantic merged commit 2e1debc into main Sep 1, 2026
7 checks passed
@atomantic
atomantic deleted the cos/task-mtiun3z0/agent-465bfd5f branch September 1, 2026 16:21
@atomantic
atomantic restored the cos/task-mtiun3z0/agent-465bfd5f branch September 1, 2026 16:22
@atomantic
atomantic deleted the cos/task-mtiun3z0/agent-465bfd5f branch September 1, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant