diff --git a/apps/cli/src/__tests__/extension-host.test.ts b/apps/cli/src/__tests__/extension-host.test.ts index 63c9232181..2d25a0712b 100644 --- a/apps/cli/src/__tests__/extension-host.test.ts +++ b/apps/cli/src/__tests__/extension-host.test.ts @@ -569,7 +569,7 @@ describe("ExtensionHost", () => { callPrivate(host, "handleAskMessage", 123, "tool", toolInfo, false) - expect(outputSpy).toHaveBeenCalledWith("\n[tool] write_file") + expect(outputSpy).toHaveBeenCalledWith("\n[Tool Request] write_file") expect(outputSpy).toHaveBeenCalledWith(" path: /test/file.txt") }) @@ -582,7 +582,7 @@ describe("ExtensionHost", () => { callPrivate(host, "handleAskMessage", 123, "tool", toolInfo, false) // Content is now shown (all tool parameters are displayed) - expect(outputSpy).toHaveBeenCalledWith("\n[tool] write_file") + expect(outputSpy).toHaveBeenCalledWith("\n[Tool Request] write_file") expect(outputSpy).toHaveBeenCalledWith( " content: This is the content that will be written to the file. It might be long.", ) @@ -591,7 +591,7 @@ describe("ExtensionHost", () => { it("should handle tool type with invalid JSON in non-interactive mode", () => { callPrivate(host, "handleAskMessage", 123, "tool", "not json", false) - expect(outputSpy).toHaveBeenCalledWith("\n[tool]", "not json") + expect(outputSpy).toHaveBeenCalledWith("\n[Tool Request] unknown") }) it("should not display duplicate messages for same ts", () => { diff --git a/apps/cli/src/ui/components/__tests__/Icon.test.tsx b/apps/cli/src/ui/components/__tests__/Icon.test.tsx index 318f83bb71..73c20d945d 100644 --- a/apps/cli/src/ui/components/__tests__/Icon.test.tsx +++ b/apps/cli/src/ui/components/__tests__/Icon.test.tsx @@ -135,9 +135,9 @@ describe("Icon", () => { process.env.ROOCODE_NERD_FONT = "1" resetNerdFontCache() - // Nerd Font icons are surrogate pairs (length 2) - expect(getIconChar("folder").length).toBe(2) - expect(getIconChar("file").length).toBe(2) + // Nerd Font icons are single characters (length 1) + expect(getIconChar("folder").length).toBe(1) + expect(getIconChar("file").length).toBe(1) }) it("should respect useNerdFont override", () => { @@ -151,7 +151,7 @@ describe("Icon", () => { resetNerdFontCache() // Force Nerd Font - expect(getIconChar("folder", true).length).toBe(2) + expect(getIconChar("folder", true).length).toBe(1) }) it("should return empty string for unknown icon", () => {