mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-16 20:12:20 +01:00
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:
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({
|
||||
|
||||
Reference in new issue
Block a user