fix: make doctor platform-aware

This commit is contained in:
Federico Jaramillo Martinez
2026-05-25 14:56:21 +02:00
parent 4bfd4acd40
commit 57a6a4a69f
5 changed files with 82 additions and 13 deletions
@@ -42,6 +42,8 @@ describe("node-pty macOS spawn-helper diagnostics", () => {
expect(formatted.ok).toBe(false);
expect(formatted.lines).toContain(` PI WEB tracking issue: ${PI_WEB_SPAWN_HELPER_ISSUE_URL}`);
expect(formatted.lines).toContain(` chmod +x '${fixture.helperPath}'`);
expect(formatted.lines).toContain(" Then run `pi-web doctor` again and retry opening a terminal.");
expect(formatted.lines.join("\n")).not.toContain("restart");
});
it("passes when the selected helper is executable", async () => {
+1 -1
View File
@@ -98,7 +98,7 @@ export function formatNodePtyDarwinSpawnHelperCheck(check: NodePtyDarwinSpawnHel
` PI WEB tracking issue: ${PI_WEB_SPAWN_HELPER_ISSUE_URL}`,
" Proposed workaround:",
` ${check.fixCommand}`,
" Then restart the pi-web-sessiond/pi-web-server processes.",
" Then run `pi-web doctor` again and retry opening a terminal.",
],
};
}