From 74566b329a769eafa1ad843282cbb00f84cbabf2 Mon Sep 17 00:00:00 2001 From: Milan Bhandari Date: Wed, 23 Sep 2026 18:51:56 -0400 Subject: [PATCH] Restore readFile import so source windows open again #513 moved checkout reads to checkoutFs and dropped readFile from the node:fs/promises import. #515, written before that, added readWorkspace, which still calls readFile. Each passed CI alone; together every source window request fails with 'ReferenceError: readFile is not defined', so Source tree and Open file do nothing. The workspace file lives under .git/dev-fast, not in a checkout, so plain node:fs is correct here, matching the write in the same function. Co-Authored-By: Claude Opus 5.5 Agent-Session: 8b958fd7-34fd-47a8-b6dd-c7d8c2f89db4 --- packages/review/src/review-api/local-data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/review/src/review-api/local-data.ts b/packages/review/src/review-api/local-data.ts index 304983b3e..94cf48fed 100644 --- a/packages/review/src/review-api/local-data.ts +++ b/packages/review/src/review-api/local-data.ts @@ -1,6 +1,6 @@ import { execFile } from "node:child_process"; import { type FSWatcher, existsSync, watch } from "node:fs"; -import { mkdir, realpath, stat, writeFile } from "node:fs/promises"; +import { mkdir, readFile, realpath, stat, writeFile } from "node:fs/promises"; import path from "node:path"; import { promisify } from "node:util";