Skip to content

Reuse active viya compute session when switching profiles #1641

@scottdover

Description

@scottdover

Describe the bug

There is currently an issue where we create a new session every time a user switches to a profile. When switching to a profile that has a current session, we should reuse that instead of creating a new session.

Steps to reproduce

Two pods/sessions are getting started with profile switching.
Steps to reproduce:
1.Create a new Viya profile and Sign in to load SAS Content/Sever pane, it has one pod/session as expected
2.Switch to a different profile with connection type SAS9.4(Local)
3.Switch back to the newly created Viya profile, it will have two pods/sessions

SAS code (if applicable)

Expected behavior

Ideally, we'd reuse a created session instead of spinning up a new session when switching to a profile.

Screenshots

No response

Client OS

No response

Extension version

origin/main

SAS version

Viya 2025.09

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions