Skip to content

Confirm interactive RSC permission updates#2906

Merged
heyitsaamir merged 2 commits into
mainfrom
heyitsaamir-validate-rsc-permissions
Jul 1, 2026
Merged

Confirm interactive RSC permission updates#2906
heyitsaamir merged 2 commits into
mainfrom
heyitsaamir-validate-rsc-permissions

Conversation

@heyitsaamir

Copy link
Copy Markdown
Collaborator

Summary

  • Add an explicit confirmation prompt before uploading interactive RSC permission edits
  • Show a concise add/remove summary before confirmation
  • Respect --yes by bypassing the prompt

Validation

  • npm -w @microsoft/teams.cli test -- rsc-set.test.ts rsc-web-app-info.test.ts
  • npx turbo build --filter=@microsoft/teams.cli

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 30, 2026 21:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds an explicit confirmation step to the interactive RSC permission editor in the Teams CLI, to prevent accidental uploads while still supporting non-interactive “auto-confirm” flows via --yes.

Changes:

  • Add confirmPermissionUpdate() helper to print a concise add/remove summary and prompt for approval.
  • Gate the interactive upload (setRscPermissions) behind the new confirmation, with a “No changes uploaded.” early-exit path.
  • Bypass the prompt when --yes is active via isAutoConfirm().

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@heyitsaamir heyitsaamir requested a review from nickwalkmsft June 30, 2026 21:25
@nickwalkmsft

Copy link
Copy Markdown
Member

@heyitsaamir I just happened to see this feedback in the docs repo the other day:

MicrosoftDocs/msteams-docs#14067

Is that assertion correct? This seems like an appropriate place to add said big warning banner (if I'm understanding this PR correctly).

@heyitsaamir

Copy link
Copy Markdown
Collaborator Author

@heyitsaamir I just happened to see this feedback in the docs repo the other day:

MicrosoftDocs/msteams-docs#14067

Is that assertion correct? This seems like an appropriate place to add said big warning banner (if I'm understanding this PR correctly).

I believe this is the same as #2737 which has been fixed for a few months.

@heyitsaamir heyitsaamir requested review from corinagum and lilyydu June 30, 2026 23:04
@heyitsaamir heyitsaamir merged commit 553685c into main Jul 1, 2026
3 checks passed
@heyitsaamir heyitsaamir deleted the heyitsaamir-validate-rsc-permissions branch July 1, 2026 18:23
heyitsaamir added a commit that referenced this pull request Jul 2, 2026
## Summary

Prepare stable CLI 3.0.2 by merging current `main` into `release/v3` and
setting explicit stable release metadata.

## CLI package commits since 3.0.1

- `1f11cdaf1` perf(cli): add in-memory caching for redundant TDP reads
(#2902)
- `2a969dd29` Fix CLI template issues and remove AI/MCP/MCPClient
templates (#2904)
- `553685c6b` Confirm interactive RSC permission updates (#2906)
- `082e79830` Merge main into release/v3 for CLI 3.0.2
- `17d2170a6` Prepare CLI 3.0.2 release

## Validation

- `npx turbo build --filter=@microsoft/teams.cli`
- `npm -w @microsoft/teams.cli test`

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Corina <14900841+corinagum@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Umang <3513186+umangsehgal@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: SirajShaik-MSFT <v-sirshaikh@microsoft.com>
Co-authored-by: Hugo Gonzalez <hugogonzalez@microsoft.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Kavin <115390646+singhk97@users.noreply.github.com>
Co-authored-by: Rido <rido-min@users.noreply.github.com>
Co-authored-by: Ricky Castaneda <126518272+MSFTRickyCastaneda@users.noreply.github.com>
Co-authored-by: Shanmathi Mayuram Krithivasan <37715033+ShanmathiMayuramKrithivasan@users.noreply.github.com>
Co-authored-by: Nick Walker <nickwalk@microsoft.com>
Co-authored-by: Mehak Bindra <mhk0397@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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