Skip to content

Commit 437bd82

Browse files
fix(webview): rename roo→zoo prefix in diagnostics handler
Rename leftover 'roo-diagnostics-' prefix to 'zoo-diagnostics-' in diagnosticsHandler.ts so diagnostic files are correctly branded. Fixes #193
1 parent ae27eea commit 437bd82

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)