You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/kotlin/com/coder/toolbox/util/CoderProtocolHandler.kt
+4-13
Original file line number
Diff line number
Diff line change
@@ -128,19 +128,10 @@ open class CoderProtocolHandler(
128
128
val agent = getMatchingAgent(params, workspace)
129
129
val status =WorkspaceAndAgentStatus.from(workspace, agent)
130
130
131
-
if (status.pending()) {
132
-
// TODO: Wait for the agent to be ready.
133
-
throwIllegalArgumentException(
134
-
"The agent \"${agent.name}\" has a status of \"${
135
-
status.toString().lowercase()
136
-
}\"; please wait then try again",
137
-
)
138
-
} elseif (!status.ready()) {
139
-
throwIllegalArgumentException(
140
-
"The agent \"${agent.name}\" has a status of \"${
141
-
status.toString().lowercase()
142
-
}\"; unable to connect"
143
-
)
131
+
if (!status.ready()) {
132
+
context.logger.error("Agent ${agent.name} for workspace $workspaceName from $deploymentURL is not started")
133
+
context.showErrorPopup(MissingArgumentException("Can't handle URI because agent ${agent.name} for workspace $workspaceName from $deploymentURL is not started"))
0 commit comments