@henryqw/pi-herdr-clone 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extensions/clone-tab.ts +3 -0
- package/package.json +1 -1
package/extensions/clone-tab.ts
CHANGED
|
@@ -324,6 +324,9 @@ export default function herdrCloneExtension(pi: ExtensionAPI): void {
|
|
|
324
324
|
checkoutPath = typeof result?.workspace?.worktree?.checkout_path === "string" && result.workspace.worktree.checkout_path.trim()
|
|
325
325
|
? result.workspace.worktree.checkout_path
|
|
326
326
|
: undefined;
|
|
327
|
+
if (createdWorktree.killed) {
|
|
328
|
+
throw new Error("Herdr worktree create was killed before completion.");
|
|
329
|
+
}
|
|
327
330
|
const missing = [
|
|
328
331
|
[workspaceId, "workspace_id"],
|
|
329
332
|
[tabId, "tab_id"],
|