Skip to content

[BUG]: sf project deploy start hangs with no output when stdout is not a TTY (regression after 2.152.12) #3690

Open

Description

@Paul-Kalynyn

Before You Submit

  • I'm using the latest version of Salesforce CLI
  • I've searched the existing issues
  • I've run sf doctor to diagnose common issues

Related Issue

No response

Command

sf project deploy start --target-org --source-dir force-app/main/default/lwc/ --test-level NoTestRun --ignore-conflicts

Org Type

Scratch Org

Did this work before?

Yes, this is a regression

Last Working Version

2.152.12

Summary

Since a recent update, sf project deploy start never returns when its output is not attached to an interactive terminal (e.g. run by Cursor's AI agent shell on Windows with Git Bash, or piped to another command). The deploy itself succeeds on the org within seconds, but the CLI prints nothing and the process never exits. The same command with --json finishes normally, and the same command on 2.152.12 finishes normally.

Repository to Reproduce

No response

Steps to reproduce

Environment: Windows 10, Git Bash, Node 24.14.1, Salesforce CLI 2.158.7, scratch org, any SFDX project with an LWC.

Reproduction 1 (Cursor):

  1. Open an SFDX project in Cursor on Windows (shell: Git Bash).
  2. In Cursor Agent mode, ask the agent to run:
    sf project deploy start --target-org --source-dir force-app/main/default/lwc/ --test-level NoTestRun --ignore-conflicts
  3. Check the org: the deployment shows Succeeded within ~5 seconds.
  4. The agent's command keeps running with no output until it is killed manually (waited 80+ seconds).
  5. Run the same command with --json appended: it completes normally in ~15 seconds.

Reproduction 2 (without Cursor, from Git Bash):

  1. Run: sf project deploy start --target-org --source-dir force-app/main/default/lwc/ --test-level NoTestRun --ignore-conflicts 2>&1 | cat
  2. Command produces no output and does not exit (I stopped it after 60 seconds; exit code 124 under timeout 60).
  3. Run the same command directly in an interactive terminal, or with --json: it completes normally in ~15 seconds.
  4. Install 2.152.12 and repeat step 1: it completes normally with exit code 0 in ~18 seconds.

Expected Result

The command prints the deploy progress and result and exits with code 0 after roughly 15 seconds, as it does on 2.152.12.

Actual Result

The deployment finishes successfully on the org (status Succeeded within ~5 seconds), but the CLI process prints nothing to stdout and never exits.

Error Message

System Information

{
  "architecture": "win32-x64",
  "cliVersion": "@salesforce/cli/2.158.7",
  "nodeVersion": "node-v24.14.1",
  "osVersion": "Windows_NT 10.0.17763",
  "rootPath": "<redacted>\\node_modules\\@salesforce\\cli",
  "shell": "<redacted>\\Git\\usr\\bin\\bash.exe",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 4.0.6 (core)",
    "@oclif/plugin-commands 5.0.9 (core)",
    "@oclif/plugin-help 7.0.6 (core)",
    "@oclif/plugin-not-found 4.0.7 (core)",
    "@oclif/plugin-plugins 7.0.13 (core)",
    "@oclif/plugin-search 2.0.10 (core)",
    "@oclif/plugin-update 5.0.10 (core)",
    "@oclif/plugin-version 3.0.7 (core)",
    "@oclif/plugin-warn-if-update-available 4.0.5 (core)",
    "@oclif/plugin-which 4.0.6 (core)",
    "@salesforce/cli 2.158.7 (core)",
    "agent 2.2.4 (core)",
    "apex 4.4.7 (core)",
    "api 2.0.28 (core)",
    "auth 6.0.5 (core)",
    "code-analyzer 5.12.0 (user) published 204 days ago (Mon Apr 27 2026) (latest is 5.16.0)",
    "data 5.1.26 (core)",
    "deploy-retrieve 4.3.2 (core)",
    "info 4.0.24 (core)",
    "lightning-dev 6.2.17 (user) published 234 days ago (Fri Mar 27 2026) (latest is 6.2.22)",
    "limits 4.0.6 (core)",
    "marketplace 2.0.25 (core)",
    "org 7.0.13 (core)",
    "packaging 3.0.17 (core)",
    "schema 4.0.16 (core)",
    "settings 3.0.23 (core)",
    "signups 2.6.78 (user) published 128 days ago (Sun Jul 12 2026) (latest is 3.0.18)",
    "sobject 2.0.22 (core)",
    "telemetry 4.2.4 (core)",
    "templates 57.6.0 (core)",
    "trust 4.1.0 (core)",
    "user 6.0.11 (core)",
    "sfdmu 5.8.0 (user) published 136 days ago (Fri Jul 03 2026)"
  ]
}

Additional Information

Versions tested (same project, same scratch org, same command, output piped):

  • 2.142.7: works
  • 2.152.12: works
  • 2.152.13: works
  • 2.158.7: hangs (control run: no output for 60s, killed)
    Deploying with --json works on 2.158.7 as a workaround.

Screenshots or Log Files

No response

Activity

  1. github-actions commented on Nov 17, 2026

    @github-actions

    Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

  2. git2gus commented on Nov 17, 2026

    @git2gus

    This issue has been linked to a new work item: W-24941873

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigatingWe're actively investigating this issueregressionIssue that regresses existing functionalityvalidatedVersion information for this issue has been validated

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions