Files
open-design/apps
r3vsandGitHub 3a0431c0aa fix(daemon): strip inherited opencode session env and grant project dir permissions (#3806)
Two related fixes for OpenCode agent runner in headless mode:

1. Strip OPENCODE, OPENCODE_PID, OPENCODE_RUN_ID, OPENCODE_SERVER_PASSWORD
   from the child env before spawning opencode CLI. Inheriting these from
   a parent OpenCode session causes `opencode run` to fail with
   "Session not found" in non-attached headless mode.

2. Inject per-run `permission.external_directory` allowlist rules into
   OPENCODE_CONFIG_CONTENT for the managed project cwd and staged extra
   directories. Without these, opencode auto-rejects absolute project
   paths with "external_directory" in headless runs.
2026-06-11 14:06:11 +00:00
..