Skip to content

Commit d522045

Browse files
committed
fix: align fs workspaceOnly default with documented policy
1 parent dcd19da commit d522045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agents/pi-tools.read.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ function createSandboxEditOperations(params: SandboxToolParams) {
758758
}
759759

760760
function createHostWriteOperations(root: string, options?: { workspaceOnly?: boolean }) {
761-
const workspaceOnly = options?.workspaceOnly !== false;
761+
const workspaceOnly = options?.workspaceOnly ?? false;
762762

763763
if (!workspaceOnly) {
764764
// When workspaceOnly is false, allow writes anywhere on the host
@@ -797,7 +797,7 @@ function createHostWriteOperations(root: string, options?: { workspaceOnly?: boo
797797
}
798798

799799
function createHostEditOperations(root: string, options?: { workspaceOnly?: boolean }) {
800-
const workspaceOnly = options?.workspaceOnly !== false;
800+
const workspaceOnly = options?.workspaceOnly ?? false;
801801

802802
if (!workspaceOnly) {
803803
// When workspaceOnly is false, allow edits anywhere on the host

0 commit comments

Comments
 (0)