Move shared keychain migration from renderer to main process

Replace crossAppIPC-based secret handshake with direct shared keychain
writes in the main process:

- MacOSCrossAppSecretSharing now reads safeStorage+SQLite and writes to
  shared keychain via SharedKeychainMainService (no crossAppIPC needed)
- Code.app migrates on startup; Agents app spawns Code.app once if
  keychain is incomplete
- NativeSecretStorageService no longer does migration — just reads/writes
  shared keychain for cross-app keys
This commit is contained in:
Alex Dima
2026-04-24 15:58:47 +02:00
parent 24838ca669
commit dfb67da92c
3 changed files with 86 additions and 263 deletions
+1 -1
View File
@@ -1275,12 +1275,12 @@ export class CodeApplication extends Disposable {
this._register(new MacOSCrossAppSecretSharing(
accessor.get(IStorageMainService),
accessor.get(IEncryptionMainService),
accessor.get(ISharedKeychainMainService),
accessor.get(IStateService),
this.logService,
this.environmentMainService,
accessor.get(ILaunchMainService),
this.lifecycleMainService,
crossAppIPCService,
));
}