Skip to content

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

Merged
dsanders11 merged 3 commits into
electron:mainfrom
RobertWHurst:fix/start-interactive-tty-detection
May 13, 2026
Merged

fix(cli): detect TTY for interactive mode instead of hardcoding true#4219
dsanders11 merged 3 commits into
electron:mainfrom
RobertWHurst:fix/start-interactive-tty-detection

Conversation

@RobertWHurst
Copy link
Copy Markdown
Contributor

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • The changes are appropriately documented (if applicable).
  • The changes have sufficient test coverage (if applicable).
  • The testsuite passes successfully on my local machine (if applicable).

Summarize your changes:

A very simple change to detect if stdin belongs to a proper tty before enabling interactive mode. This makes running forge in non interactive contexts possible.

@RobertWHurst RobertWHurst requested a review from a team as a code owner April 17, 2026 03:52
Copy link
Copy Markdown
Member

@erickzhao erickzhao left a comment

Choose a reason for hiding this comment

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

@erickzhao erickzhao changed the title Detect TTY for interactive mode instead of hardcoding true fix(cli): Detect TTY for interactive mode instead of hardcoding true Apr 17, 2026
@erickzhao
Copy link
Copy Markdown
Member

Hey @RobertWHurst, this organization requires you to sign your commits before a PR is mergeable. Do you mind rebasing your PR with signed commits so I can merge? Thanks!

@RobertWHurst
Copy link
Copy Markdown
Contributor Author

absolutely. I'll do that soon. Sorry for the delayed response - busy week.

@RobertWHurst
Copy link
Copy Markdown
Contributor Author

Sorry for the delay. I haven't forgotten, just a busy month - working on a new product release. I'll do so soon.

@ckerr ckerr force-pushed the fix/start-interactive-tty-detection branch from d97b4a3 to 83a1674 Compare April 30, 2026 18:49
@RobertWHurst RobertWHurst force-pushed the fix/start-interactive-tty-detection branch from 83a1674 to 9b9fc8f Compare May 12, 2026 18:06
@RobertWHurst
Copy link
Copy Markdown
Contributor Author

Signed and verified. Again, sorry for the delay.

@erickzhao
Copy link
Copy Markdown
Member

sweet, thanks! :)

@erickzhao erickzhao added this pull request to the merge queue May 12, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks May 12, 2026
@erickzhao erickzhao added this pull request to the merge queue May 12, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks May 12, 2026
@dsanders11 dsanders11 added this pull request to the merge queue May 13, 2026
@dsanders11 dsanders11 removed this pull request from the merge queue due to a manual request May 13, 2026
@dsanders11 dsanders11 enabled auto-merge May 13, 2026 07:13
@dsanders11 dsanders11 changed the title fix(cli): Detect TTY for interactive mode instead of hardcoding true fix(cli): detect TTY for interactive mode instead of hardcoding true May 13, 2026
@dsanders11 dsanders11 added this pull request to the merge queue May 13, 2026
Merged via the queue into electron:main with commit 2a8c9ad May 13, 2026
14 checks passed
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.

4 participants