- Notifications
You must be signed in to change notification settings - Fork4
impl: support for Toolbox 2.7#135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Merged
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
With the new TBX API we can update the title of a UI pagewithout recreating the page and using hacks to force TBXto update the internal state.
Used by the Toolbox 2.7
We still need to switch from the coder setup page back to the main screenonce the coder cli and the rest api poller is initialized.
Similar with the initial setup page we can use the new TBX API toupdate the title of the uri handling page without recreating it and usinghacks to force TBX to update the internal state.
TBX 2.7 API prioritizes connection status to the remote TBX agent overthe workspace status. This would mean that a running workspace would belisted as disconnected instead of ready. This is confusing as it onlyhappens for running workspaces and on top of that we also have a greenbadge that is rendered by TBX when the agent connection is established.
A new API was added to allow proxy authentication
The new TBX 2.7 API allows us to change the message displayedwhile loading the workspaces from "Loading environments" to"Loading workspaces"
The new TBX 2.7 api exposes basic auth credentials for proxy.
The new API introduced in TBX 2.7, and HTTP proxy authentication works flawlessly. However,SOCKS5 proxy authentication does not appear to be properly supported in the current TBXimplementation.While users can configure a SOCKS5 proxy with basic authentication, Toolbox fails toauthenticate successfully. Coder uses OkHttp as the HTTP client, which in turn delegatesSOCKS5 authentication to the JVM (java.net.SocksSocketImpl). We can configure a java.net.Authenticator with the credentials exposed by the new TBX API. However, since theAuthenticator is set globally, doing so would affect all plugins — including TBX itself —which may not be desirable.
Introduces support for Toolbox 2.7
matifali approved these changesJun 28, 2025
Uh oh!
There was an error while loading.Please reload this page.
Toolbox 2.7 came with small upgrades for kotlin, coroutines andthe serialization library. This PR stays in sync.
A new Toolbox 2.7 build is available with newer API
The IDE resolution can start before the workspace are polledand the remote provider is initialized. This commit waits forthe first poll to run before continuing to installing and launchingthe IDE. Otherwise, Toolbox will raise an error that the env. does not exist.
With the new API we don't need to generate a new page with a new title (the deployment URL)so we can remove the existing workaround that triggered a redraw of the new UI page.
f0ssel approved these changesJul 3, 2025
Toolbox 2.7 provides support plugin aliasing in the URIas part ofhttps://youtrack.jetbrains.com/issue/TBX-14481
Toolbox 2.7 allows the ide to open paths (via uri handling) on the remote thatwere not previously a proper IDEA project.There is a minor issue that I raised inhttps://youtrack.jetbrains.com/issue/TBX-14952/ withpaths that point out to folders or files that do not exist. In this case, TBX pops up a dialogsaying "Connecting to remote host..." and it stays like that forever.
In previous TBX versions (2.6 and before) there was no progress while establishing the SSHconnection, which is why we added a custom "SSHing" label with a circular progress bar whileconnecting to the SSH. While providing feedback tohttps://youtrack.jetbrains.com/issue/TBX-14925 I've noticed that TBX no longer renders "SSHing..", instead we have a "Connecting" label. This is apparently a new feature introduced in TBX 2.7.
The URI handling logic is now able to switch from a different provider screenback to Coder's main screen.
A short 2–3 second delay occurs while initializing the REST client, resolving the CLI, and generating the SSH config—during this time, there was no visual feedback indicating activity.
1a2212b intomain 5 checks passed
Uh oh!
There was an error while loading.Please reload this page.
Member
matifali commentedJul 7, 2025
2.7 EAP is availble |
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading.Please reload this page.
Things that were changed or added to TBX 2.7:
Support for Proxy Authentication
The new API introduced in TBX 2.7, and HTTP proxy authentication works flawlessly. However, SOCKS5 proxy authentication does not appear to be properly supported in the current TBX implementation.
While users can configure a SOCKS5 proxy with basic authentication, Toolbox fails to authenticate successfully. Coder uses OkHttp as the HTTP client, which in turn delegates SOCKS5 authentication to the JVM (java.net.SocksSocketImpl). We can configure a java.net.Authenticator with the credentials exposed by the new TBX API. However, since the Authenticator is set globally, doing so would affect all plugins — including TBX itself — which may not be desirable.
Customizable messages while loading the workspaces
The new TBX 2.7 API allows us to change the message displayed while loading the workspaces from "Loading environments" to "Loading workspaces"
UI pages with customizable titles
Support for custom aliases in the URI handling protocol