Skip to content

feat(core): add explicit cloud opt-out to CNW#34580

Merged
FrozenPandaz merged 1 commit intomasterfrom
CLOUD-4242
Feb 25, 2026
Merged

feat(core): add explicit cloud opt-out to CNW#34580
FrozenPandaz merged 1 commit intomasterfrom
CLOUD-4242

Conversation

@jaysoo
Copy link
Member

@jaysoo jaysoo commented Feb 24, 2026

Current Behavior

The CNW cloud prompt is locked to auto-select deferred connection (CLOUD-4255), always generating a short URL but never writing nxCloudId to nx.json. Users have no explicit choice.

Expected Behavior

The cloud prompt now offers three explicit choices:

  • Yes: connect now, generate nxCloudId in nx.json, show strong completion message
  • Skip for now: deferred connection (no nxCloudId), still show short URL and update README
  • No: full opt-out, set neverConnectToCloud: true in nx.json, no URL, no README update, no cloud messaging

CLI args: --nxCloud=skip, --nxCloud=never (new), --nxCloud=yes. Non-interactive defaults to skip.

Closes CLOUD-4242

The CNW cloud prompt previously only offered Yes/Skip, making it
impossible to distinguish "not now" from "never." This adds a third
option so we can respect user intent and stop prompting opted-out users.

Prompt choices: Yes / Skip for now / No, don't ask again

- Yes: connects workspace to Nx Cloud (writes nxCloudId to nx.json)
- Skip for now: deferred connection, shows setup URL (existing behavior)
- No, don't ask again: sets neverConnectToCloud: true in nx.json,
  suppresses all cloud messaging

CLI: --nxCloud=yes|skip|never. Non-interactive defaults to skip.

Also fixes "set up" → "setup" typo in completion banner.
@jaysoo jaysoo requested a review from a team as a code owner February 24, 2026 19:36
@jaysoo jaysoo requested a review from MaxKless February 24, 2026 19:36
@netlify
Copy link

netlify bot commented Feb 24, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 8e004b5
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/699dfda64943ab000827b6da
😎 Deploy Preview https://deploy-preview-34580--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Feb 24, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 8e004b5
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/699dfda67d90ea000868dd62
😎 Deploy Preview https://deploy-preview-34580--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Feb 24, 2026

View your CI Pipeline Execution ↗ for commit 8e004b5

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 18m 6s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 59s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 8s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-02-24 19:58:18 UTC

@FrozenPandaz FrozenPandaz merged commit f7e46e3 into master Feb 25, 2026
24 checks passed
@FrozenPandaz FrozenPandaz deleted the CLOUD-4242 branch February 25, 2026 18:56
FrozenPandaz added a commit that referenced this pull request Feb 26, 2026
After #34580, non-interactive CNW generates .github/workflows/ci.yml,
which gets picked up by sharedGlobals in the expanded task inputs.
Update the snapshot to reflect this.
FrozenPandaz pushed a commit that referenced this pull request Feb 26, 2026
## Current Behavior

The CNW cloud prompt is locked to auto-select deferred connection
(CLOUD-4255), always generating a short URL but never writing nxCloudId
to nx.json. Users have no explicit choice.

## Expected Behavior

The cloud prompt now offers three explicit choices:
- Yes: connect now, generate nxCloudId in nx.json, show strong
completion message
- Skip for now: deferred connection (no nxCloudId), still show short URL
and update README
- No: full opt-out, set neverConnectToCloud: true in nx.json, no URL, no
README update, no cloud messaging

**CLI args:** `--nxCloud=skip`, `--nxCloud=never` (new),
`--nxCloud=yes`. Non-interactive defaults to skip.

Closes CLOUD-4242

(cherry picked from commit f7e46e3)
jaysoo pushed a commit that referenced this pull request Feb 26, 2026
## Current Behavior

After #34580, `determineNxCloudV2()` returns `'skip'` in non-interactive
mode, but the caller remaps it to `nxCloud = 'yes'` with
`skipCloudConnect = true`. This causes `setupCI()` to run and generate
`.github/workflows/ci.yml` in new workspaces — which didn't happen
before.

This breaks the `extras.test.ts` e2e snapshot test because
`.github/workflows/ci.yml` now appears in the expanded default task
inputs.

## Expected Behavior

Keep `nxCloud = 'skip'` when the cloud choice is `'skip'`, which
prevents CI file generation in non-interactive mode. This restores the
behavior prior to #34580.

## Related Issue(s)

Fixes the `extras.test.ts` e2e snapshot failure introduced by #34580.
FrozenPandaz added a commit that referenced this pull request Feb 26, 2026
## Current Behavior

After #34580, `determineNxCloudV2()` returns `'skip'` in non-interactive
mode, but the caller remaps it to `nxCloud = 'yes'` with
`skipCloudConnect = true`. This causes `setupCI()` to run and generate
`.github/workflows/ci.yml` in new workspaces — which didn't happen
before.

This breaks the `extras.test.ts` e2e snapshot test because
`.github/workflows/ci.yml` now appears in the expanded default task
inputs.

## Expected Behavior

Keep `nxCloud = 'skip'` when the cloud choice is `'skip'`, which
prevents CI file generation in non-interactive mode. This restores the
behavior prior to #34580.

## Related Issue(s)

Fixes the `extras.test.ts` e2e snapshot failure introduced by #34580.

(cherry picked from commit fcf4660)
FrozenPandaz pushed a commit that referenced this pull request Feb 26, 2026
## Current Behavior

The CNW cloud prompt is locked to auto-select deferred connection
(CLOUD-4255), always generating a short URL but never writing nxCloudId
to nx.json. Users have no explicit choice.

## Expected Behavior

The cloud prompt now offers three explicit choices:
- Yes: connect now, generate nxCloudId in nx.json, show strong
completion message
- Skip for now: deferred connection (no nxCloudId), still show short URL
and update README
- No: full opt-out, set neverConnectToCloud: true in nx.json, no URL, no
README update, no cloud messaging

**CLI args:** `--nxCloud=skip`, `--nxCloud=never` (new),
`--nxCloud=yes`. Non-interactive defaults to skip.

Closes CLOUD-4242

(cherry picked from commit f7e46e3)
FrozenPandaz added a commit that referenced this pull request Feb 26, 2026
## Current Behavior

After #34580, `determineNxCloudV2()` returns `'skip'` in non-interactive
mode, but the caller remaps it to `nxCloud = 'yes'` with
`skipCloudConnect = true`. This causes `setupCI()` to run and generate
`.github/workflows/ci.yml` in new workspaces — which didn't happen
before.

This breaks the `extras.test.ts` e2e snapshot test because
`.github/workflows/ci.yml` now appears in the expanded default task
inputs.

## Expected Behavior

Keep `nxCloud = 'skip'` when the cloud choice is `'skip'`, which
prevents CI file generation in non-interactive mode. This restores the
behavior prior to #34580.

## Related Issue(s)

Fixes the `extras.test.ts` e2e snapshot failure introduced by #34580.

(cherry picked from commit fcf4660)
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants