Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

Keep the retry's own outcome in the error when the document-free retry fails

Joshua France974ec91e5e16
diff --git a/src/harness/pi-harness.ts b/src/harness/pi-harness.ts
index 38c5461f1..8431a7339 100644
--- a/src/harness/pi-harness.ts
+++ b/src/harness/pi-harness.ts
@@ -2201,7 +2201,10 @@ export function createPiHarness(opts?: PiHarnessOptions): Harness {
abort: () => entry.agentSession.abort(),
});
if (userAborted) return false;
- if (outcome !== "ok") throw new NonRetryableTurnError(documentRejection.message);
+ if (outcome !== "ok")
+ throw new NonRetryableTurnError(
+ `${documentRejection.message} (retry without inline documents was ${outcome})`,
+ );
return true;
};
const recoverFailedRound = async (): Promise<void> => {