Skip to content

Commit 1fbfdf6

Browse files
committed
fix: misleading "No workspaces yet" during manual authentication
There is a brief moment between manual authentication and workspace poller initialization and execution where we see a "No workspaces yet" which is misleading. Instead, a loading indicator/message should be displayed.
1 parent 970f4c5 commit 1fbfdf6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
- ssh configuration is simplified, background hostnames have been discarded.
88

9+
### Fixed
10+
11+
- misleading message saying that there are no workspaces rendered during manual authentication
12+
913
## 0.2.0 - 2025-04-24
1014

1115
### Added

src/main/kotlin/com/coder/toolbox/CoderRemoteProvider.kt

+7
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ class CoderRemoteProvider(
262262
// start initialization with the new settings
263263
this@CoderRemoteProvider.client = restClient
264264
coderHeaderPage = NewEnvironmentPage(context, context.i18n.pnotr(restClient.url.toString()))
265+
environments.update {
266+
LoadableState.Loading
267+
}
265268
pollJob = poll(restClient, cli)
266269
}
267270
}
@@ -326,6 +329,10 @@ class CoderRemoteProvider(
326329
context.secrets.rememberMe = true
327330
this.client = client
328331
pollJob?.cancel()
332+
333+
environments.update {
334+
LoadableState.Loading
335+
}
329336
pollJob = poll(client, cli)
330337
goToEnvironmentsPage()
331338
}

0 commit comments

Comments
 (0)