Skip to content

The open-source app everyone uses to manage agents at work

fix: use deterministic UUID in feedback-service test to avoid phone redaction

Devin Foleye13c3f7c6c8f
diff --git a/server/src/__tests__/feedback-service.test.ts b/server/src/__tests__/feedback-service.test.ts
index 898ae0aa8b..03b4f4c680 100644
--- a/server/src/__tests__/feedback-service.test.ts
+++ b/server/src/__tests__/feedback-service.test.ts
@@ -187,7 +187,11 @@ describe("feedbackService.saveIssueVote", () => {
const targetCommentId = randomUUID();
const earlierCommentId = randomUUID();
const laterCommentId = randomUUID();
- const runId = randomUUID();
+ // Use a deterministic UUID whose hyphen-separated segments cannot be
+ // mistaken for a phone number by the PII redactor's phone regex.
+ // Random UUIDs occasionally produce digit pairs like "4880-8614" that
+ // cross segment boundaries and match the phone pattern.
+ const runId = "abcde123-face-beef-cafe-abcdef654321";
const instructionsDir = fs.mkdtempSync(path.join(os.tmpdir(), "paperclip-feedback-instructions-"));
tempDirs.push(instructionsDir);
const instructionsPath = path.join(instructionsDir, "AGENTS.md");