Skip to content

Commit b7e3073

Browse files
committed
impl: use the latest build number available
The URI handler expects a product code a build number. If the build number is no longer available we defaulted to latest version available and popped up a confirmation window to make sure the user wants to go forward with the new version Netflix pointed out that the confirmation dialog disrupts the workflow. With this PR we only log that we fall back to latest version available in order to streamline the handler.
1 parent 3ac53e8 commit b7e3073

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Changed
6+
7+
- URI handling no longer waits for confirmation to use latest build if the provided build number is too old
8+
59
## 0.7.1 - 2025-10-13
610

711
### Fixed

src/main/kotlin/com/coder/toolbox/util/CoderProtocolHandler.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,7 @@ open class CoderProtocolHandler(
369369
val buildNumberIsNotAvailable = availableVersions.firstOrNull { it.contains(buildNumber) } == null
370370
if (buildNumberIsNotAvailable) {
371371
val selectedIde = availableVersions.maxOf { it }
372-
context.logAndShowInfo(
373-
"$productCode-$buildNumber not available",
374-
"$productCode-$buildNumber is not available, we've selected the latest $selectedIde"
375-
)
372+
context.logger.info("$productCode-$buildNumber is not available, we've selected the latest $selectedIde")
376373
return selectedIde
377374
}
378375
return "$productCode-$buildNumber"

0 commit comments

Comments
 (0)