mirror of
https://github.com/tiennm99/ccs.git
synced 2026-08-14 12:25:27 +00:00
fix(cliproxy): resolve windows auth browser not opening
- skip TTY check on Windows (process.stdin.isTTY returns undefined) - Windows desktop environments always have browser capability - also fix help-command version to read from package.json Closes #42
This commit is contained in:
@@ -94,8 +94,10 @@ function isHeadlessEnvironment(): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Non-interactive (piped stdin)
|
||||
if (!process.stdin.isTTY) {
|
||||
// Non-interactive (piped stdin) - skip on Windows
|
||||
// Windows npm wrappers don't set isTTY correctly (returns undefined, not true)
|
||||
// Windows desktop environments always have browser capability
|
||||
if (process.platform !== 'win32' && !process.stdin.isTTY) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user