You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constresult=detectNonRetryableHarnessGuard("cannot create a new goal because this thread already has a goal; use update_goal only when the existing goal is complete");
it("detects goal already active markers across newlines",()=>{
81
+
constresult=detectNonRetryableHarnessGuard("this thread already has a goal\nuse update_goal to update it");
82
+
expect(result.goalAlreadyActive).toBe(true);
83
+
});
84
+
85
+
it("does not detect goal active from first phrase alone",()=>{
86
+
constresult=detectNonRetryableHarnessGuard("this thread already has a goal");
87
+
expect(result.goalAlreadyActive).toBe(false);
88
+
});
89
+
90
+
it("detects goal already active when embedded in longer output",()=>{
91
+
constresult=detectNonRetryableHarnessGuard("[codex] cannot create a new goal because this thread already has a goal; use update_goal only when the existing goal is complete\nExit code: 1");
0 commit comments