Roo-Code/packages/types
Roo Code 44c495da2d feat: add per-workspace API profile selection
Implements per-workspace API profile selection as requested in #8010.
Addresses critical issues from review by @daniel-lxs:

1. Fix: Workspace selection no longer overwrites global config across windows.
   When scope="workspace", only the local cache is updated via setLocalValue(),
   avoiding leaking currentApiConfigName to other windows via shared globalState.

2. Fix: Toggling scope back to Global now clears workspace overrides via
   clearWorkspaceOverrides(), preventing stale workspace state from keeping
   the scope stuck on "workspace".

Backend changes:
- Add ConfigScope type and WorkspaceOverrides schema to ProviderSettingsManager
- Add workspace override methods (getWorkspaceOverrides, storeWorkspaceOverrides,
  clearWorkspaceOverrides, getConfigScope, getActiveProfileName)
- Modify activateProfile and setModeConfig to accept scope parameter
- Modify getModeConfigId to check workspace overrides first
- Add setLocalValue to ContextProxy for cache-only state updates
- Add scope field to WebviewMessage and currentConfigScope to ExtensionState

Frontend changes:
- Add scope toggle UI to ApiConfigSelector with [W] indicator
- Wire scope through ChatTextArea to pass with config changes
- Add i18n translation keys for scope UI elements

Testing:
- Add comprehensive workspace-scoped tests to ProviderSettingsManager.spec.ts
- Update ClineProvider test mocks with getConfigScope method
- All tests passing (175 across 5 test files)

Fixes #8010
2026-02-19 20:28:21 +00:00
..
npm Release: v1.112.0 (#11589) 2026-02-18 16:01:44 -08:00
scripts Fix publish-npm script (#7093) 2025-08-14 03:17:56 -07:00
src feat: add per-workspace API profile selection 2026-02-19 20:28:21 +00:00
.gitignore Task metadata (#7092) 2025-08-14 03:14:17 -07:00
eslint.config.mjs Task metadata (#7092) 2025-08-14 03:14:17 -07:00
package.json feat: add AI SDK dependencies and message conversion utilities (#11047) 2026-01-28 14:05:53 -05:00
tsconfig.json Task metadata (#7092) 2025-08-14 03:14:17 -07:00
tsup.config.ts Bump @roo-code/types to v1.42.0 (#6610) 2025-08-02 13:27:59 -07:00
vitest.config.ts Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00