test(recovery): admission keeps a fresh isolated continuation of a projectless task runnable

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
DottaandClaude Opus 5.5 committed 2026-11-12 19:32:03 -06:00
1 parent a89e7918d9
commit 86bc42585b
1 file changed
+8
@@ -154,6 +154,14 @@ describe("execution workspace policy helpers", () => {
).toEqual({ type: "git_worktree", existingBranch: "PAP-14754-run-redaction" });
});
it("admits a fresh isolated continuation of a projectless task whose binding the fallback cleared", () => {
const issue = { projectId: null, projectWorkspaceId: null, executionWorkspaceId: null,
executionWorkspacePreference: "reuse_existing" };
expect(isUnrunnableWorktreeCombo({ issue, resolvedMode: "isolated_workspace", resolvedStrategy: "git_worktree" })).toBe(true);
expect(isUnrunnableWorktreeCombo({ issue, resolvedMode: "isolated_workspace", resolvedStrategy: "git_worktree",
freshIsolatedContinuation: true })).toBe(false);
});
it("centralizes unrunnable isolated worktree detection", () => {
expect(
isUnrunnableWorktreeCombo({