Repository navigation
What changed
Server-side V2 review for multiple clients
V2 permission review now runs on the OpenCode server instead of separately in every attached TUI. Local, remote, web, and multiple simultaneous clients share one reviewer, and permission events are filtered by location so one workspace cannot review another workspace's requests. Older V2 betas and stable runtimes keep the TUI/stable fallback. A capability marker prevents the TUI from stepping aside unless the server actually installed its reviewer, and fallback ownership is reconciled after transient plugin-list failures.
Safer denial continuations
- Denial continuations are only delivered to resolved root sessions. A denied subagent now stays terminated instead of being resumed after its parent task handle has ended; unknown parentage also fails closed.
- Technical review failures (timeout, provider error, invalid output) are no longer presented as safety denials. Execution remains blocked, and the agent is told that no safety decision was reached and may retry the same action once so a fresh review can run.
Longer reviewer timeouts
timeoutMs now accepts up to 300,000 ms (5 minutes) while keeping the 30,000 ms default. Each model attempt still gets its own budget. This supports slow local models without changing behavior for existing configurations.
OpenCode free-model compatibility
OpenCode free-tier models reject requests that omit the read tool. Reviewer sessions now keep an unreachable read allow rule while denying every real read, so free models such as opencode/*-free can review permissions without weakening reviewer isolation. Verified end-to-end on OpenCode 2.3.0.
Hardening
- Bounded the server session, message, and permission caches; per-session context snapshots are capped.
- Added 21 regression tests (129 passing total) covering ownership handshake, root-only continuations, technical-failure messaging, timeout bounds, and free-model reviewer permissions.
- Updated README and compatibility/testing notes.
Compatibility: OpenCode stable 1.18.12, V2 beta 2026-08-11, and V2 2.3.0 (server-side review smoke-tested end-to-end).