Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 26, 2026

The agentSessionsWelcome view needs to be controlled by the ExP service without blocking welcome page load on network calls.

Changes

  • Added getCachedTreatment() to IWorkbenchAssignmentService: Returns synchronously from TAS client cache without awaiting network. Returns undefined if cache unavailable.

  • Welcome page routing logic: Three entry points now check agentSessionsWelcome treatment via cached value:

    • AgentSessionsWelcomeRunnerContribution: Shows agent sessions welcome if treatment is true OR config explicitly set to agentSessionsWelcomePage
    • StartupPageRunnerContribution: Skips regular welcome when treatment is true and config is welcomePage
    • workbench.action.openWalkthrough: Redirects to agent sessions welcome when treatment is true
  • Treatment constant: Extracted AGENT_SESSIONS_WELCOME_TREATMENT = 'agentSessionsWelcome' to shared location

Behavior

// Treatment enabled → shows agent sessions welcome
getCachedTreatment<boolean>('agentSessionsWelcome') === true

// Treatment disabled/unavailable → shows regular welcome (default)
getCachedTreatment<boolean>('agentSessionsWelcome') === false | undefined

// Override for local testing
"experiments.override.agentSessionsWelcome": true

Fallback to regular welcome preserves backward compatibility when cache is unavailable or treatment unset.

Original prompt

Can you make agentSessionsWelcome view to be behind the ExP service? Note: In order to determine whether to show the agent sessions welcome view or the regular welcome view we need to check the cache values of the exp service as opposed to delaying the welcome page load until the exp service is available


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 26, 2026 23:39
…grate with welcome pages

Co-authored-by: osortega <48293249+osortega@users.noreply.github.com>
…ability

Co-authored-by: osortega <48293249+osortega@users.noreply.github.com>
Copilot AI changed the title [WIP] Update agent sessions welcome view behind ExP service Gate agentSessionsWelcome view behind ExP service using cached treatment values Jan 26, 2026
Copilot AI requested a review from osortega January 26, 2026 23:48
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.

2 participants