Fix sidebar project removal
Remove projects through a daemon RPC so the sidebar can delete the project record after archiving its active workspaces. Reopening a removed directory recreates the missing project record so local projects keep their derived basename, and History skips orphaned archived workspace rows. Fixes #1583.
This commit is contained in:
@@ -340,4 +340,18 @@ describe("checkout PR schemas", () => {
|
||||
githubCheckDetails: true,
|
||||
});
|
||||
});
|
||||
|
||||
test("accepts the project removal server_info feature flag", () => {
|
||||
expect(
|
||||
ServerInfoStatusPayloadSchema.parse({
|
||||
status: "server_info",
|
||||
serverId: "srv_test",
|
||||
features: {
|
||||
projectRemove: true,
|
||||
},
|
||||
}).features,
|
||||
).toEqual({
|
||||
projectRemove: true,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user