Repository navigation
fix(opencode): avoid duplicate home plugin initialization - #3441
Conversation
ECC Tools / Security EvidenceCommit: Security evidence gate passed (success) No security-sensitive scanner-evidence gap detected. Mode: enforce Scanned 4 changed file(s). No missing scanner-evidence signal was detected. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Risk TaxonomyCommit: PR taxonomy review recommended (neutral) Detected 5 PR taxonomy bucket(s): Harness Drift, Install Manifest Integrity, CI/CD Recommendation, Reference Set Validation, Agent Config Review. Scanned 4 changed file(s). Roadmap taxonomy buckets: Harness DriftHarness-facing changes can drift across Claude Code, Codex, OpenCode, and shared adapter surfaces. Signals:
Paths:
Install Manifest IntegrityInstall manifests, plugin metadata, and shipped skills should stay synchronized with user-facing setup guidance. Signals:
Paths:
CI/CD RecommendationCI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work. Signals:
Paths:
Reference Set ValidationAI, analyzer, skill, agent, command, and harness guidance changes should be compared against a maintained eval, golden trace, benchmark, or reference set. Signals:
Paths:
Agent Config ReviewAgent, command, skill, MCP, and local instruction changes should be reviewed as executable agent configuration. Signals:
Paths:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Reference Set ReadinessCommit: Reference set readiness gaps detected (neutral) Reference evidence present for 1/7 areas (14%) across 4 changed file(s). This check is based on files changed in this PR. Repository-level readiness is still reported by
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Hosted Promotion ReadinessCommit: Hosted promotion readiness passed (success) No hosted promotion evidence gaps detected across 4 changed file(s); 0 corpus scenarios had matching evidence. This check compares PR file changes against the evaluator/RAG promotion corpus in No evaluator corpus scenarios matched this PR. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (1)
🧰 Additional context used📚 Code guidelines (3)📓 Path-based instructions (4)Focus on command injection, unsafe subprocess usage, path traversal, SSRF, secret exposure, and missing tests for new CLI behavior.⚙️ CodeRabbit configuration file Files:
Source excerpt: Source excerpt: Use **security-reviewer** skill for comprehensive security audits📄 CodeRabbit inference engine (.cursor/rules/typescript-security.md) Files:
Source excerpt: Use spread operator for immutable updates: Source excerpt: Use async/await with try-catch: Source excerpt: Use Zod for schema-based validation: Source excerpt: Use proper logging libraries instead📄 CodeRabbit inference engine (.cursor/rules/typescript-coding-style.md) Files:
Source excerpt: **console.log audit**: Check all modified files for `console.log` before session ends📄 CodeRabbit inference engine (.cursor/rules/typescript-hooks.md) Files:
🪛 ast-grep (0.45.3)tests/lib/install-executor.test.js[warning] 993-993: Filesystem path is not a string literal; a request-/variable-derived path can enable path traversal. Validate and normalize the path before use. (detect-non-literal-fs-filename) 🔇 Additional comments (1)
📝 SummarySummary by CodeRabbit
WalkthroughOpenCode install plans now keep ChangesOpenCode plugin entrypoint handling
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The supplied checks cover the inert-barrel behavior in the plan and installed content, with no established merge-blocking risk. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change disables duplicate hook loading without weakening the existing opt-in requirement. No expanded execution authority was identified. Risk remains low because interrupted upgrades and actual plugin discovery were not fully validated. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 3 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
Thank you for preventing duplicate OpenCode home hook initialization. The installed barrel stays inert while ecc-hooks.ts remains active, including with explicit hook consent. Installed-file, consent and repair/uninstall lifecycle checks passed. This contribution is delivered on main through #3495, preserving the reviewed source commits and the maintainer fixes described above. The exact integration and resulting main passed the delivery checks. Thank you for helping improve ECC. The discovery probe loads actual installed TypeScript modules and verifies one live entrypoint; it does not claim a native OpenCode startup run. Verified main: 2d515e4f. CI CodeQL Supply-Chain Watch |
Home-target OpenCode installs now keep the redundant
plugins/index.tsbarrel inert, including when hooks are explicitly enabled. OpenCode discoversecc-hooks.tsitself; loading its re-export again initialized each ECC hook twice. The source/package barrel and published module imports remain intact, and install-state records the inert transform for repair/reinstall.Fixes #3427.
Validation: installed-barrel assertion fails before the change; install executor 24 checks, consent 12 checks, and lifecycle 73 checks pass. ESLint passes. Full
npm testusing native Git: 6,193 checks pass; one unchanged upstream Codex folded-case hook assertion fails. Its code is outside this diff.Implemented with OpenAI Codex.