cli: show environment status after login#2793
Merged
heyitsaamir merged 2 commits intomainfrom Apr 28, 2026
Merged
Conversation
After a successful login, automatically display sideloading and Azure CLI status so users get immediate feedback without needing to run `teams status`. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a post-login “environment status” display by reusing the same sideloading (TDP) + Azure CLI checks currently shown by teams status, improving immediate feedback after successful authentication.
Changes:
- Extracted TDP sideloading + Azure CLI checks into
checkAndDisplayEnvironment()instatus.ts. - Invoked
checkAndDisplayEnvironment()automatically afterteams logincompletes. - Suppressed spinner rendering in non-interactive mode, falling back to plain
logger.infooutput.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/cli/src/commands/status.ts | Extracts environment check + display logic into a shared helper used by status and other flows. |
| packages/cli/src/commands/auth/login.ts | Runs environment checks after login and wires in the shared helper. |
Avoids coupling login command to status command module. Co-Authored-By: Claude <noreply@anthropic.com>
singhk97
approved these changes
Apr 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
teams loginsucceeds, automatically runs the same sideloading + Azure CLI checks thatteams statusshowsstatus.tsinto a sharedcheckAndDisplayEnvironment()function used by both commandslogger.infooutputTest plan
teams login(interactive) — shows sideloading + Azure CLI status with spinners after loginTEAMS_NO_INTERACTIVE=1 teams login— shows same info without spinnersteams status— unchanged behaviorteams status --json— JSON output unchangednpm run test— all tests pass