Key workspace status and ownership by ID, not directory
Multiple workspaces can share one checkout directory. Agent and terminal status, sidebar tabs, and ownership now attribute strictly by workspace ID, so a running or blocked agent in one workspace no longer shows up on its same-directory siblings. A one-time startup migration backfills workspace IDs onto legacy agents, and every agent and terminal is created with one thereafter. Directory lookups remain only for genuinely folder-derived git facts (branch, diff) and the archive-by-path adapter.
This commit is contained in:
@@ -254,6 +254,21 @@ describe("translation resources", () => {
|
||||
expect(en.openProject.tiles.addProject.title).toBe("Add a project");
|
||||
});
|
||||
|
||||
it("resolves the worktree delete prompt keys used by the sidebar prompt", () => {
|
||||
const strings = flattenStrings(en);
|
||||
|
||||
expect(strings["sidebar.workspace.confirmations.deleteWorktreePrompt.title"]).toBe(
|
||||
"Archive workspace",
|
||||
);
|
||||
expect(strings["sidebar.workspace.confirmations.deleteWorktreePrompt.message"]).toBe(
|
||||
"Also remove the worktree from disk?",
|
||||
);
|
||||
expect(strings["sidebar.workspace.confirmations.deleteWorktreePrompt.keep"]).toBe(
|
||||
"Keep on disk",
|
||||
);
|
||||
expect(strings["sidebar.workspace.confirmations.deleteWorktreePrompt.delete"]).toBe("Delete");
|
||||
});
|
||||
|
||||
it("includes provider selector and pairing keys for the Batch 4D migration", () => {
|
||||
expect(en.modelSelector.title).toBe("Select provider");
|
||||
expect(en.modelSelector.favorites).toBe("Favorites");
|
||||
|
||||
Reference in New Issue
Block a user