Skip to content

Output panel: scratch org expiration warning displays org.username instead of org.alias #7099

@AndrewStopchenko-SO

Description

@AndrewStopchenko-SO

Summary

Upon startup, the "Warning: The following orgs expire in the next 5 days:" message currently shows scratch org's as username value. This message used to display scratch org's alias before.

Reverting the "Salesforce Org Management" Extension to 65.18.0 version brings back the alias behavior.

Steps To Reproduce:

  1. Create a new scratch org using the CLI command; provide 1-5 duration days so that it immediately falls into "expires in next 5 days" category: sf org create scratch -f .\config\project-scratch-def.json -a scratch_test1 -w 15 -y 3
  2. Reopen the VSCode (or restart the extensions host), wait until all extensions initialize.
  3. Review the Output Panel warning message.

Expected result

Warning message should display the alias value ("scratch_test1") for the expires-soon scratch org.

Actual result

Warning message shows the username value (e.g. "test-9xnbgm4ke6xt@example.com") instead.

Additional information

sf org list output for the scratch orgs in question - all of them have the alias assigned:
Image

Warning message with username values listed:
Image

Warning message with alias values listed ("Salesforce Org Management" Extension reverted to 65.18.0 version):

Image

Salesforce Extension Version in VS Code: 66.3.2

Salesforce CLI Version: @salesforce/cli/2.128.5 win32-x64 node-v22.22.1

OS and version: Windows_NT x64 10.0.19045

VS Code version: 1.113.0

Most recent version of the extensions where this was working: 65.18.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions