Skip to content

Selected custom agent is not persisted across VS Code restarts #319152

Description

@mirekholec

Version: 1.122.1 (Universal)
Commit: 8761a55
Date: 2026-05-29T09:25:37+02:00 (1 day ago)
Electron: 39.8.8
ElectronBuildId: 13870025
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.1.0

When using a custom agent within a workspace, the selected agent should be remembered after closing and reopening VS Code. Instead, the agent selection always resets to the default agent on startup.

This is particularly annoying when I have created an optimized agent with my preferred set of tools... having to re-select it manually every time I reopen the workspace adds unnecessary friction to the workflow.

Steps to Reproduce:

  1. Open a workspace in VS Code
  2. Select a custom agent (other than the default)
  3. Close VS Code
  4. Reopen the same workspace

Expected behavior:
The last selected agent remains active after reopening the workspace.

Actual behavior:
The selection reverts to the default agent every time VS Code is restarted.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions