From 6b749ea2746e164a263377f37795010c3c2d02aa Mon Sep 17 00:00:00 2001 From: "Dr. Armando Vaquera (proyectoauraorg)" Date: Wed, 20 May 2026 13:43:54 -0600 Subject: [PATCH] fix: replace roo-diagnostics- prefix with zoo-diagnostics- Closes #193 The temporary diagnostics file generated via the 'Report Issue' feature retained the legacy 'roo-diagnostics-' prefix from the Roo Code fork. This commit replaces it with 'zoo-diagnostics-' to match Zoo Code branding. Changes: - diagnosticsHandler.ts: rename temp file template from roo-diagnostics- to zoo-diagnostics- - diagnosticsHandler.spec.ts: update two assertions that matched the old prefix --- src/core/webview/__tests__/diagnosticsHandler.spec.ts | 4 ++-- src/core/webview/diagnosticsHandler.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/webview/__tests__/diagnosticsHandler.spec.ts b/src/core/webview/__tests__/diagnosticsHandler.spec.ts index fcfe216209..38d55e01c5 100644 --- a/src/core/webview/__tests__/diagnosticsHandler.spec.ts +++ b/src/core/webview/__tests__/diagnosticsHandler.spec.ts @@ -74,7 +74,7 @@ describe("generateErrorDiagnostics", () => { }) expect(result.success).toBe(true) - expect(result.filePath).toContain("roo-diagnostics-") + expect(result.filePath).toContain("zoo-diagnostics-") // Verify we attempted to read API history expect(fs.readFile).toHaveBeenCalledWith(path.join("/mock/task-dir", "api_conversation_history.json"), "utf8") @@ -83,7 +83,7 @@ describe("generateErrorDiagnostics", () => { expect(fs.writeFile).toHaveBeenCalledTimes(1) const [writtenPath, writtenContent] = vi.mocked(fs.writeFile).mock.calls[0] // taskId.slice(0, 8) = "test-tas" from "test-task-id" - expect(String(writtenPath)).toContain("roo-diagnostics-test-tas") + expect(String(writtenPath)).toContain("zoo-diagnostics-test-tas") expect(String(writtenContent)).toContain( "// Please share this file with Zoo Code Support (support@zoocode.dev) to diagnose the issue faster", ) diff --git a/src/core/webview/diagnosticsHandler.ts b/src/core/webview/diagnosticsHandler.ts index b82e209dce..6d242531c1 100644 --- a/src/core/webview/diagnosticsHandler.ts +++ b/src/core/webview/diagnosticsHandler.ts @@ -73,7 +73,7 @@ export async function generateErrorDiagnostics(params: GenerateDiagnosticsParams // Create a temporary diagnostics file const tmpDir = os.tmpdir() const timestamp = Date.now() - const tempFileName = `roo-diagnostics-${taskId.slice(0, 8)}-${timestamp}.json` + const tempFileName = `zoo-diagnostics-${taskId.slice(0, 8)}-${timestamp}.json` const tempFilePath = path.join(tmpDir, tempFileName) await fs.writeFile(tempFilePath, fullContent, "utf8")