+**Known caveat, still open on our side:** the internal-mode `project_message` block has failed 3 sandboxed E2E reproductions with a gate-bypass bug — `project_message` sends successfully even when the mode detector correctly logs `mode:"internal"` at session start. Root-caused to duplicate `ModeDetector` instances (from OpenCode instantiating the plugin factory twice per session start, ~600ms apart, each building independent tool/hook trees) — fixed with a module-level singleton keyed by repoRoot, but not yet proven in a live sandbox e2e run due to test-harness flakiness (OpenRouter rate limits, port collisions from leaked prior processes). Flagging in case the double plugin-factory-instantiation behavior is itself something worth tracking on your side — we saw two independent `internalPlugins` loads with differing tool counts (16 vs 15) in the sandbox logs, consistent with anomalyco/opencode#7427.
0 commit comments