Skip to content

Conversation

@raman-kumar8
Copy link

Fixes #290157

The agent harness choice (Local, Background, Cloud, Claude) was resetting to 'Local' on window reload because the selection was not persisted.

This change:

  • Adds storage key 'agentSessionsWelcome.selectedSessionProvider'
  • Restores persisted selection in constructor (defaults to Local)
  • Stores selection when user changes it

]

Copilot AI review requested due to automatic review settings January 24, 2026 18:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes issue #290157 where the agent harness selection (Local, Background, Cloud, Claude) was resetting to 'Local' on window reload.

Changes:

  • Adds persistent storage for agent harness selection using storage key agentSessionsWelcome.selectedSessionProvider
  • Restores the persisted selection in the constructor with fallback to Local
  • Stores the selection when the user changes it via the session type picker

Fixes microsoft#290157

The agent harness choice (Local, Background, Cloud, Claude) was resetting
to 'Local' on window reload because the selection was not persisted.

This change:
- Adds storage key 'agentSessionsWelcome.selectedSessionProvider'
- Restores persisted selection in constructor (defaults to Local)
- Stores selection when user changes it
@raman-kumar8 raman-kumar8 force-pushed the fix/persist-agent-harness-selection-290157 branch from 541e0f3 to 4e9cca9 Compare January 24, 2026 19:05
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.

Reload does not maintain agent harness choice

2 participants