Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6d67abe

Browse files
committed
impl: prioritize workspace status over TBX agent status
TBX 2.7 API prioritizes connection status to the remote TBX agent over the workspace status. This would mean that a running workspace would be listed as disconnected instead of ready. This is confusing as it only happens for running workspaces and on top of that we also have a green badge that is rendered by TBX when the agent connection is established.
1 parent f3b2be2 commit 6d67abe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/com/coder/toolbox/models/WorkspaceAndAgentStatus.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ enum class WorkspaceAndAgentStatus(val label: String, val description: String) {
6868
isReachable = ready() || unhealthy(),
6969
// TODO@JB: How does this work? Would like a spinner for pending states.
7070
iconId = getStateIcon().id,
71+
isPriorityShow = true
7172
)
7273
}
7374

0 commit comments

Comments
 (0)