Skip to content

Commit 4b316fd

Browse files
fix(web): clear deleted checkout labels from the sidebar (pingdotgg#25063)
1 parent 139ec80 commit 4b316fd

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎apps/server/src/ws.ts‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3157,7 +3157,15 @@ export const layerWsRpc = (
31573157
[WS_METHODS.vcsCreateWorktree]: (input) =>
31583158
gitWorkflow.createWorktree(input).pipe(Effect.tap(() => refreshGitStatus(input.cwd))),
31593159
[WS_METHODS.vcsRemoveWorktree]: (input) =>
3160-
gitWorkflow.removeWorktree(input).pipe(Effect.tap(() => refreshGitStatus(input.cwd))),
3160+
gitWorkflow.removeWorktree(input).pipe(
3161+
Effect.tap(() => refreshGitStatus(input.cwd)),
3162+
// Subscribers of the removed checkout learn it is no longer a repository.
3163+
Effect.tap(() =>
3164+
vcsStatusBroadcaster
3165+
.refreshLocalStatus(input.path)
3166+
.pipe(Effect.ignoreCause({ log: true }), Effect.forkDetach, Effect.asVoid),
3167+
),
3168+
),
31613169
[WS_METHODS.vcsCreateRef]: (input) =>
31623170
gitWorkflow.createRef(input).pipe(Effect.tap(() => refreshGitStatus(input.cwd))),
31633171
[WS_METHODS.vcsSwitchRef]: (input) =>

0 commit comments

Comments
 (0)