Repository navigation
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 59cd4febe4
ℹ️ 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".
|
I checked this against a smaller manual account-routing change for the same operator need: #553. There is real overlap in the core routing feature:
The main difference is scope. This PR also includes reset-display/account-list work, quota display appearance settings, Docker/dev-deploy changes, and dashboard sorting. Those may be useful, but they make the routing behavior harder to review as one unit. For mergeability, I think the account-routing part should be either split into a focused PR, or kept here with a clear OpenSpec delta for the selection contract:
One naming note: UI labels like |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e2b67dd6f6
ℹ️ 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".
| $escapedCommand = $Command.Replace('"', '\"') | ||
| $startInfo = New-Object System.Diagnostics.ProcessStartInfo | ||
| $startInfo.FileName = "ssh" | ||
| $startInfo.Arguments = "$DevHost `"$escapedCommand`"" |
There was a problem hiding this comment.
Prevent shell expansion in SSH command wrapper
Invoke-Ssh wraps remote commands in double quotes without escaping $/`/\, so any command string containing shell metacharacters is reinterpreted by the local or remote shell. In this commit, $targetBranch is interpolated into the rebuild command, and valid branch names can include characters like $; that can deploy the wrong branch (e.g. $USER expansion) or execute unintended shell fragments. Use a safer transport (argument array/heredoc/single-quoted remote command with explicit escaping) before passing user- or git-derived values.
Useful? React with 👍 / 👎.
|
Closing this older broad priority PR in favor of the narrower #553 review path. #553 now carries the manual routing-policy version of this behavior and explicitly fixes #428/#540 with a smaller, current branch. This PR is conflict/dirty and still has current-head Codex findings, so keeping both open makes the queue ambiguous without preserving a separate merge unit. If any dashboard sorting/reset-display behavior from this branch is still wanted after #553 lands, it should come back as a separate scoped follow-up. |
fixes #540
Summary
gold,silver,bronze) end-to-end across API, DB, proxy selection, and dashboard/account viewsWhy
Priority-aware selection makes it possible to prefer certain accounts before falling back to usage/reset-based ordering. The settings toggle keeps the new behavior opt-in, while still letting admins assign and change priorities independently of routing strategy.
Validation
npm test -- --run src/features/accounts/components/accounts-page.test.tsxnpm test -- --run src/features/dashboard/components/account-cards.test.tsx src/features/dashboard/components/account-card.test.tsx