From c53f4cfb094bb87852d0c3c8e83933e902e81283 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Mon, 17 Aug 2026 11:50:51 -0500 Subject: [PATCH] fix(core): clarify temporary directory guidance (#43095) --- packages/core/src/instructions/builtins.ts | 2 +- packages/core/test/instructions/builtins.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/instructions/builtins.ts b/packages/core/src/instructions/builtins.ts index f425e206911..935a7d0e954 100644 --- a/packages/core/src/instructions/builtins.ts +++ b/packages/core/src/instructions/builtins.ts @@ -33,7 +33,7 @@ const layer = Layer.effect( ` Workspace root folder: ${location.project.directory}`, ` Is directory a git repo: ${location.vcs?.type === "git" ? "yes" : "no"}`, ` Platform: ${process.platform}`, - ` Use ${global.tmp} for temporary work outside the workspace; it already exists and is pre-approved for external directory access.`, + ` Prefer ${global.tmp} over generic system temporary directories such as /tmp; it is pre-created and approved for external access.`, "", ].join("\n"), ), diff --git a/packages/core/test/instructions/builtins.test.ts b/packages/core/test/instructions/builtins.test.ts index 31c3b30764e..59971ebdd2f 100644 --- a/packages/core/test/instructions/builtins.test.ts +++ b/packages/core/test/instructions/builtins.test.ts @@ -51,7 +51,7 @@ describe("InstructionBuiltIns", () => { ` Workspace root folder: ${projectDirectory}`, " Is directory a git repo: yes", ` Platform: ${process.platform}`, - ` Use ${temporary} for temporary work outside the workspace; it already exists and is pre-approved for external directory access.`, + ` Prefer ${temporary} over generic system temporary directories such as /tmp; it is pre-created and approved for external access.`, "", "", `Today's date: ${localDate(timestamp)}`,