Skip to content

Conversation

@fredrikekelund
Copy link
Contributor

Related issues

Proposed Changes

I've made the following changes to improve the Studio CLI on Windows:

  • Remove the call statements preceding ELECTRON_EXECUTABLE and node. These were likely added as an analogue to exec in the bin/studio-cli.sh, but they are not necessary. In fact, they even break stdin parsing (see Linear issue for more details).
  • Capture the exit code from the CLI script and pass it to the exit command.
  • I've added enabledelayedexpansion. This is a more defensive approach, as it makes it so variables are expanded at runtime rather than at parse time.
  • More quotes, to account for any spaces in paths.

Testing Instructions

TBD

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

@fredrikekelund fredrikekelund requested a review from a team December 22, 2025 12:56
@fredrikekelund fredrikekelund self-assigned this Dec 22, 2025
Copy link
Contributor

@gcsecsey gcsecsey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took a dig at testing this, but I couldn't reproduce the original authentication issue on the dev/studio-cli-i2 branch. When running the auth login command, I could paste the token as expected on both branches, in both PowerShell and Command Prompt.

PowerShell Terminal
Image Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants