Skip to content

The open source coding agent.

TypeScript

tweak: make the .env reads ask user for permission instead of blocking

Aiden Cline0be37cc2c604
diff --git a/packages/opencode/src/agent/agent.ts b/packages/opencode/src/agent/agent.ts
index 17695583867..fffc20426fe 100644
--- a/packages/opencode/src/agent/agent.ts
+++ b/packages/opencode/src/agent/agent.ts
@@ -55,8 +55,8 @@ export namespace Agent {
// mirrors github.com/github/gitignore Node.gitignore pattern for .env files
read: {
"*": "allow",
- "*.env": "deny",
- "*.env.*": "deny",
+ "*.env": "ask",
+ "*.env.*": "ask",
"*.env.example": "allow",
},
})