From e4208fb38526ef5df8c8434a2c3d00dfd4ee74e4 Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Mon, 28 Sep 2026 17:40:13 -0700 Subject: [PATCH] aesel phone: fs shim gains rmSync cd5b85426e let go of the ~/.ac-token refresh lock with rmSync in ac-session.mjs. The phone imports that module through its own node:fs shim, which had no rmSync, so the phone build failed to load it and phone-session.test.mjs failed on import. The shim now deletes the path, as unlinkSync already does; the phone keeps no token, so it never runs. --- aesel/phone/shim/fs.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aesel/phone/shim/fs.mjs b/aesel/phone/shim/fs.mjs index 3ddbe89fcb..f0bf4a6210 100644 --- a/aesel/phone/shim/fs.mjs +++ b/aesel/phone/shim/fs.mjs @@ -78,11 +78,16 @@ export function mkdirSync() {} export function unlinkSync(path) { files.delete(path); } +// The token-refresh lock (a directory) is let go with rmSync; with no token +// here there is no lock, and a missing path is not an error under `force`. +export function rmSync(path) { + files.delete(path); +} export function watch() { return { close() {} }; } -export default { existsSync, readFileSync, writeFileSync, mkdirSync, unlinkSync, watch }; +export default { existsSync, readFileSync, writeFileSync, mkdirSync, unlinkSync, rmSync, watch }; // Read-only structural tools can inspect only explicitly mounted virtual files. export const realpathSync = path => path; -- 2.51.2