feat(worktree): add managed workspace cloning (#30117)

This commit is contained in:
Dax 2026-05-31 11:57:44 -04:00 committed by GitHub
commit 5661af2034
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 2374 additions and 28 deletions

View file

@ -21,8 +21,10 @@ export const AccountPlugin = PluginV2.define({
return {
"catalog.transform": Effect.fn(function* (evt) {
const active = yield* accounts.activeAll().pipe(Effect.orDie)
if (active.size === 0) return
for (const item of evt.provider.list()) {
const account = yield* accounts.active(Auth.ServiceID.make(item.provider.id)).pipe(Effect.orDie)
const account = active.get(Auth.ServiceID.make(item.provider.id))
if (!account) continue
evt.provider.update(item.provider.id, (provider) => {
provider.enabled = {