qt-cli, qt-core: Allow multiple qt-cli server instances#427
Merged
benchoq merged 1 commit intoqt-labs:devfrom Feb 24, 2026
Merged
qt-cli, qt-core: Allow multiple qt-cli server instances#427benchoq merged 1 commit intoqt-labs:devfrom
benchoq merged 1 commit intoqt-labs:devfrom
Conversation
3dfd121 to
2f05073
Compare
This commit allows multiple REST server instances to run simultaneously, enabling multiple webviews that use qtcli to be opened in VSCode. Add additional commands and options to the qtcli: - qtcli server start --socket <name> - qtcli server stop all - qtcli server start --exit-on-idle - qtcli server start --exit-on-idle --heartbeat <duration, e.g. 10s, 500ms> - qtcli server ls When --exit-on-idle is specified, the qtcli server will automatically close, unless it receives any request from the client within a specific timeout. Maximum idle time for the server will be three times the heartbeat duration. This ensures that the qtcli server process is not left running without a client. Webviews in qt-core have been updated to reflect these changes: - Webviews now generate a socket ID and pass it to qtcli. - QtcliRestClient posts /heartbeat requests to keep the server alive. - Add QtcliRestServer class to start qtcli with the proper arguments Task-number: [VSCODEEXT-289](https://qt-project.atlassian.net/browse/VSCODEEXT-289)
2f05073 to
6015cd9
Compare
OrkunTokdemir
approved these changes
Feb 24, 2026
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
Sign up for free
to 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.
This commit allows multiple REST server instances to run simultaneously, enabling multiple webviews that use qtcli to be opened in VSCode.
Add additional commands and options to the qtcli:
When --exit-on-idle is specified, the qtcli server will automatically close, unless it receives any request from the client within a specific timeout. Maximum idle time for the server will be three times the heartbeat duration.
This ensures that the qtcli server process is not left running without a client.
Webviews in qt-core have been updated to reflect these changes:
Task-number: VSCODEEXT-289