-
Notifications
You must be signed in to change notification settings - Fork 881
Change order of coder agents in web interface #7964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @jaulz, thanks for opening the issue. I can think of a couple of options that may help here.
resource "coder_agent" "coder" {
ssh = false
} This would remove the agent from the pool of possible agents to connect to. If you only have one, you'll get the desired behavior. Otherwise you'll need to specify which agent you want (
resource "coder_agent" "agent2" {
priority = 2
}
resource "coder_agent" "agent1" {
priority = 1
} This could be reflected in the UI and also when e.g. generating ssh configs. (This could be called
This doesn't help with SSH, but perhaps another option is to allow each user to manually sort their workspaces. Could be combined with option 1 and it might be useful even in the presence of option 2. Do any of these sound like what you would like to see in the Coder? PS. If you can share, I would love to know more about your use-case for multiple agents. |
@mafredri yep, point 2 actually sounds like a good solution which would be even better than just having a |
Not sure about putting layout controls in the template HCL. We have a similar problem with the display of agent / resource metadata. Maybe we should introduce a new product concept for layout. |
@ammario the actual idea would be that the priority can be used to define the default agent. The actual order in the layout would just be a nice side effect 😊 |
@ammario could you elaborate why this one is not planned? Thanks! |
@jaulz — that's stalebot so it's more a matter of insufficient engineering resources to tackle this than thinking it's out of scope of the Coder project. I see one approach that may be orthogonal with our existing concepts:
@mafredri since you were thinking about this recently I'm curious for your thought on the idea. |
As per my observation, this current order is random and the agent that connects first goes to the top. |
@ammario I think that's an acceptable strategy for both agent and metadata. Currently we use While we're at it, I think it'd be a good idea to ensure we have a robust ordering in the case of collision/absence of prioritization (e.g. alphabetical), which behaves the same way everywhere. (It'd be how we pick the default agent to SSH to, for instance.) OTOH, I think it's sensible to have |
|
I'm going with this issue. |
Is there any possibility to change the order of coder agents in web interface when you view the workspace? I have multiple agents and my main workspace is listed last. This is not a big deal but when I try to connect from CLI to my workspace (via
coder ssh
) it connects to the one listed first.The text was updated successfully, but these errors were encountered: