Skip to content

port(upstream): #2526 - hide disabled provider connections in combo picker - #273

Merged
bloodf merged 3 commits into
devfrom
port/upstream-2526
Jul 16, 2026
Merged

bloodf merged 3 commits into
devfrom
port/upstream-2526

Conversation

@bloodf

@bloodf bloodf commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • What changed: Ports fix(combos): hide disabled provider connections decolua/9router#2526 — the combo picker now hides explicitly disabled provider connections. New filterActiveConnections() helper in src/shared/utils/connectionStatus.js (hides only isActive === false; legacy rows without the flag and no-auth connections stay visible), applied at the combo-page fetch site in src/app/(dashboard)/dashboard/combos/page.js. Adds tests/unit/connection-status.test.js (6 cases) and docs/ports/upstream-2526.md.
  • Why it changed: Upstream bugfix — disabled connections were still selectable as combo targets, letting users build combos against providers they had turned off.

Type

  • fix: — bug fix (port of upstream fix; commit type port per repo commitlint)

Breaking changes

  • No

Testing

  • What was tested: the new helper across enabled/disabled/legacy/no-auth/mixed/invalid-input cases; full test:ci suite via .omc/gate.sh under pinned Node 20.20.2.
  • Commands run: npm run lint (0 errors), npm run build (success), bash .omc/gate.sh .omc/wt-port-up-2526.
  • Evidence: new test file passed all 6 cases in the gate run (tests/.test-results.json: 5024 total, 4946 passed). The 18 raw failures reported by the gate are all pre-existing DB/encryption/migration/quota/security suites unrelated to this 4-file UI diff — no imports shared with touched files; system load was 40-80/16 cores during the run (peers reported identical flake signatures on clean baselines).

Checklist

  • Tests added or updated for behavioral changes
  • No new dependencies without explicit justification
  • Conventional commit used (port(upstream): — registered commitlint type)
  • CHANGELOG updated if this change is user-facing — documented in docs/ports/upstream-2526.md per port-plan doc-artifact rule
  • No secrets, keys, credentials, or tokens committed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 63a50d608f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/app/(dashboard)/dashboard/combos/page.js
bloodf pushed a commit that referenced this pull request Jul 16, 2026
…icker

Codex P2 on PR #273: providerIdsToShow unconditionally unioned providerNodes ids, re-adding custom compatible-provider nodes whose connections are all disabled. connection.provider === node id, so activeConnectionIds already carries exactly the active nodes; drop the bypass.
@bloodf
bloodf force-pushed the port/upstream-2526 branch from 63a50d6 to a638e15 Compare July 16, 2026 03:26

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a638e15f9d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/shared/components/ModelSelectModal.js
bloodf pushed a commit that referenced this pull request Jul 16, 2026
…icker

Codex P2 on PR #273: providerIdsToShow unconditionally unioned providerNodes ids, re-adding custom compatible-provider nodes whose connections are all disabled. connection.provider === node id, so activeConnectionIds already carries exactly the active nodes; drop the bypass.
bloodf pushed a commit that referenced this pull request Jul 16, 2026
Codex P2 on PR #273: media-providers/combo/[id] passed raw /api/providers connections (including isActive === false) to ModelSelectModal. Apply filterActiveConnections at the fetch boundary so disabled media providers are hidden and cannot be saved into combos that fail at runtime.
@bloodf
bloodf force-pushed the port/upstream-2526 branch from a638e15 to a7e46b8 Compare July 16, 2026 03:54
bloodf pushed a commit that referenced this pull request Jul 16, 2026
…icker

Codex P2 on PR #273: providerIdsToShow unconditionally unioned providerNodes ids, re-adding custom compatible-provider nodes whose connections are all disabled. connection.provider === node id, so activeConnectionIds already carries exactly the active nodes; drop the bypass.
bloodf pushed a commit that referenced this pull request Jul 16, 2026
Codex P2 on PR #273: media-providers/combo/[id] passed raw /api/providers connections (including isActive === false) to ModelSelectModal. Apply filterActiveConnections at the fetch boundary so disabled media providers are hidden and cannot be saved into combos that fail at runtime.
@bloodf
bloodf force-pushed the port/upstream-2526 branch from a7e46b8 to 2fbfafb Compare July 16, 2026 04:11
CortexOS added 3 commits July 16, 2026 04:40
…icker

Codex P2 on PR #273: providerIdsToShow unconditionally unioned providerNodes ids, re-adding custom compatible-provider nodes whose connections are all disabled. connection.provider === node id, so activeConnectionIds already carries exactly the active nodes; drop the bypass.
Codex P2 on PR #273: media-providers/combo/[id] passed raw /api/providers connections (including isActive === false) to ModelSelectModal. Apply filterActiveConnections at the fetch boundary so disabled media providers are hidden and cannot be saved into combos that fail at runtime.
@bloodf
bloodf force-pushed the port/upstream-2526 branch from 2fbfafb to 14f6b96 Compare July 16, 2026 04:44
@bloodf
bloodf merged commit de4fe4a into dev Jul 16, 2026
3 checks passed
@bloodf
bloodf deleted the port/upstream-2526 branch July 17, 2026 02:50
@bloodf bloodf mentioned this pull request Jul 20, 2026
7 of 8 tasks
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