diff --git a/scripts/scenarios/start-app.ts b/scripts/scenarios/start-app.ts index 5dc7de2460..86c250c1fc 100644 --- a/scripts/scenarios/start-app.ts +++ b/scripts/scenarios/start-app.ts @@ -53,6 +53,9 @@ export const prepareHome = Effect.fn("startApp.prepareHome")(function* (home: st yield* fs.makeDirectory(path.join(home, "userdata"), { recursive: true }); yield* fs.makeDirectory(path.join(home, "bin")); // Editor discovery is cached, so the recording shim must exist before the server starts. + const hostnamectl = path.join(home, "bin", "hostnamectl"); + yield* fs.writeFileString(hostnamectl, "#!/bin/sh\nprintf Scenario\n"); + yield* fs.chmod(hostnamectl, 0o755); const editor = path.join(home, "bin", "cursor"); yield* fs.writeFileString( editor,