port(upstream): #2526 - hide disabled provider connections in combo picker - #273
Conversation
There was a problem hiding this comment.
💡 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".
…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.
63a50d6 to
a638e15
Compare
There was a problem hiding this comment.
💡 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".
…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.
a638e15 to
a7e46b8
Compare
…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.
a7e46b8 to
2fbfafb
Compare
…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.
2fbfafb to
14f6b96
Compare
Summary
filterActiveConnections()helper insrc/shared/utils/connectionStatus.js(hides onlyisActive === false; legacy rows without the flag and no-auth connections stay visible), applied at the combo-page fetch site insrc/app/(dashboard)/dashboard/combos/page.js. Addstests/unit/connection-status.test.js(6 cases) anddocs/ports/upstream-2526.md.Type
fix:— bug fix (port of upstream fix; commit typeportper repo commitlint)Breaking changes
Testing
test:cisuite via.omc/gate.shunder pinned Node 20.20.2.npm run lint(0 errors),npm run build(success),bash .omc/gate.sh .omc/wt-port-up-2526.Checklist
port(upstream):— registered commitlint type)docs/ports/upstream-2526.mdper port-plan doc-artifact rule