Skip to content

fix(cli): detect TTY for interactive mode instead of hardcoding true#4259

Open
erickzhao wants to merge 1 commit into
nextfrom
forward-port-tty
Open

fix(cli): detect TTY for interactive mode instead of hardcoding true#4259
erickzhao wants to merge 1 commit into
nextfrom
forward-port-tty

Conversation

@erickzhao
Copy link
Copy Markdown
Member

Ports #4219 from main

…4219)

* fix(start): detect TTY for interactive mode instead of hardcoding true

* ci: trigger new CI run

---------

Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
@erickzhao erickzhao requested a review from a team as a code owner May 15, 2026 06:30
@github-actions github-actions Bot added the next label May 15, 2026
@MarshallOfSound
Copy link
Copy Markdown
Member

@claude review

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

LGTM — clean port of #4219 (already merged to main): one-line TTY detection fix plus tests.

Extended reasoning...

Overview

This PR ports #4219 from main to (presumably) a release branch. The substantive change is a single line in packages/api/cli/src/electron-forge-start.ts: interactive: true becomes interactive: process.stdin.isTTY ?? false. A new spec file adds three test cases covering TTY=true, TTY=undefined, and the -- arg-passthrough path.

Security risks

None. The change reads a process property to choose a boolean and does not affect any auth, IO, or untrusted-data paths.

Level of scrutiny

Low. This is a one-line behavior fix in CLI bootstrap code, with the original PR (#4219) already merged on main (commit e7f7700 is visible in the recent commit log). The port carries the same diff plus tests.

Other factors

The added tests directly cover the new behavior. The ?? false fallback is correct since process.stdin.isTTY is true | undefined. No outstanding reviewer comments.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants