Skip to content

Commit 02b60e8

Browse files
committed
Merge branch 'main' into fix-outdated-workspaces
2 parents db82812 + 77f39cf commit 02b60e8

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
### Fixed
66

7-
- outdated and stopped workspaces are now updated and started when handling URI
7+
- `Stop` action is now available for running workspaces that have an out of date template.
8+
- outdated and stopped workspaces are now updated and started when handling URI
89

910
## 0.3.0 - 2025-06-10
1011

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,15 @@ class CoderRemoteEnvironment(
126126
update(workspace.copy(latestBuild = build), agent)
127127
}
128128
})
129-
} else {
130-
actions.add(Action(context.i18n.ptrl("Stop")) {
131-
context.cs.launch {
132-
tryStopSshConnection()
133-
134-
val build = client.stopWorkspace(workspace)
135-
update(workspace.copy(latestBuild = build), agent)
136-
}
137-
})
138129
}
130+
actions.add(Action(context.i18n.ptrl("Stop")) {
131+
context.cs.launch {
132+
tryStopSshConnection()
133+
134+
val build = client.stopWorkspace(workspace)
135+
update(workspace.copy(latestBuild = build), agent)
136+
}
137+
})
139138
}
140139
return actions
141140
}

0 commit comments

Comments
 (0)