Skip to content

Commit 6b749ea

Browse files
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
1 parent b42e037 commit 6b749ea

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/core/webview/__tests__/diagnosticsHandler.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe("generateErrorDiagnostics", () => {
7474
})
7575

7676
expect(result.success).toBe(true)
77-
expect(result.filePath).toContain("roo-diagnostics-")
77+
expect(result.filePath).toContain("zoo-diagnostics-")
7878

7979
// Verify we attempted to read API history
8080
expect(fs.readFile).toHaveBeenCalledWith(path.join("/mock/task-dir", "api_conversation_history.json"), "utf8")
@@ -83,7 +83,7 @@ describe("generateErrorDiagnostics", () => {
8383
expect(fs.writeFile).toHaveBeenCalledTimes(1)
8484
const [writtenPath, writtenContent] = vi.mocked(fs.writeFile).mock.calls[0]
8585
// taskId.slice(0, 8) = "test-tas" from "test-task-id"
86-
expect(String(writtenPath)).toContain("roo-diagnostics-test-tas")
86+
expect(String(writtenPath)).toContain("zoo-diagnostics-test-tas")
8787
expect(String(writtenContent)).toContain(
8888
"// Please share this file with Zoo Code Support (support@zoocode.dev) to diagnose the issue faster",
8989
)

src/core/webview/diagnosticsHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export async function generateErrorDiagnostics(params: GenerateDiagnosticsParams
7373
// Create a temporary diagnostics file
7474
const tmpDir = os.tmpdir()
7575
const timestamp = Date.now()
76-
const tempFileName = `roo-diagnostics-${taskId.slice(0, 8)}-${timestamp}.json`
76+
const tempFileName = `zoo-diagnostics-${taskId.slice(0, 8)}-${timestamp}.json`
7777
const tempFilePath = path.join(tmpDir, tempFileName)
7878

7979
await fs.writeFile(tempFilePath, fullContent, "utf8")

0 commit comments

Comments
 (0)