-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Description
Describe the bug
windscribe-cli disconnect exits with error if it's disconnected already.
OS and app information:
- OS: MacOS Version 15.6.1 (Build 24G90)
- App version: windscribe-cli v2.19.7
To Reproduce
Steps to reproduce the behavior:
- start windscribe app without disconnecting
- run
windscribe-cli disconnectin terminal - the command exit with code 1
$ windscribe-cli disconnect; echo $?
{"tm": "2026-01-12 00:44:49.327", "lvl": "info", "mod": "cli", "msg": "=== Started ==="}
{"tm": "2026-01-12 00:44:49.327", "lvl": "info", "mod": "cli", "msg": "OS Version: \"MacOS Version 15.6.1 (Build 24G90)\""}
{"tm": "2026-01-12 00:44:49.327", "lvl": "debug", "mod": "cli", "msg": "CLI pid: 13128"}
{"tm": "2026-01-12 00:44:49.369", "lvl": "debug", "mod": "cli", "msg": "Connected to app"}
{"tm": "2026-01-12 00:44:49.370", "lvl": "info", "mod": "cli", "msg": "\"Already disconnected\""}
Already disconnected
1Returning an error causes issues when scripting.
Expected behavior
Exit with code 0 representing success. The desired state is already achieved before the command so there's no need to return an error.
Metadata
Metadata
Assignees
Labels
No labels