You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6adb39b
Browse filesBrowse the repository at this point in the historyBrowse files
fix: track plugin-spawned server PID and warn on deny rules
- opencode-server.mjs: save lastServerPid to server.json on successful
spawn. add reapServerIfOurs() that sends SIGTERM after 5min idle and
re-checks port ownership before declaring success.
- session-lifecycle-hook.mjs: call reapServerIfOurs on SessionEnd.
- opencode-companion.mjs: warn to stderr when workspace has
.claude/settings.json deny rules and task is write-capable (issue #33).
- fs.mjs: add readDenyRules() and denyRulesApplyToPath() helpers.
- README.md: document permission boundary between Claude Code and OpenCode.
Closes#19, #33
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,6 +134,15 @@ If applying the patch fails, the worktree is preserved for manual recovery.
134
134
135
135
After a successful `/opencode:review` or `/opencode:adversarial-review`, the rendered review is saved for the current repository. If you run `/opencode:rescue` with no task text, Claude can offer to pass the last review findings back to OpenCode as the rescue task.
136
136
137
+
## Permission Boundary
138
+
139
+
OpenCode runs as an independent process with its own permission system, separate from Claude Code's `.claude/settings.json` deny rules. This means:
140
+
141
+
- A file that Claude Code cannot read or edit (due to a deny rule) **may still be accessible to OpenCode**.
142
+
-`/opencode:rescue` is write-capable by default and has full read/write access to the workspace.
143
+
144
+
If your workspace uses deny rules, the companion will emit a warning when you start a write-capable task so you can make an informed choice. For fully isolated write operations, use `/opencode:rescue --worktree` which runs in an disposable git worktree.
0 commit comments