refactor(cli): unify turn recovery policy between TUI and headless (#950)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-02-12 21:52:13 -08:00
committed by GitHub
parent 45bd0a6af9
commit 1f44612a01
7 changed files with 605 additions and 222 deletions

View File

@@ -21,7 +21,7 @@ describe("approval recovery wiring", () => {
expect(segment).toContain("extractConflictDetail(preStreamError)");
expect(segment).toContain("getPreStreamErrorAction(");
expect(segment).toContain('preStreamAction === "resolve_approval_pending"');
expect(segment).toContain("shouldAttemptApprovalRecovery(");
expect(segment).toContain("rebuildInputWithFreshDenials(");
});
@@ -39,7 +39,7 @@ describe("approval recovery wiring", () => {
const segment = source.slice(start, end);
expect(segment).toContain("approvalPendingDetected &&");
expect(segment).toContain("shouldAttemptApprovalRecovery(");
expect(segment).not.toContain("!hasApprovalInPayload &&");
});