Repository navigation
Submit initial OpenCode 2.0.12 prompts through the native startup plugin - #25428
Conversation
Route the reported release through the existing native startup intent. Retain conservative behavior for other unreviewed versions.
…ncode-v2-2012-startup-prompt
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughOpenCode 2.0.12 joins the supported native prompt versions alongside 2.0.16. Prompt capability detection and startup prompt generation now use the shared supported-version list. Tests cover version detection, startup prompt hydration and submission, and PTY launch behavior across supported and unverified versions. Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to No actionable issue remains for the reviewed change. Complete the normal PR checks before merging. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change is restricted to one additional exact OpenCode release and preserves existing launch authorization and duplicate-prevention controls. No introduced security bypass was identified. Confidence is limited by incomplete validation of the release’s integration across eligible platforms. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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 |

ELI5
OpenCode 2.0.12 worktrees now send their initial prompt automatically instead of leaving it in the composer.
What Changed
Recognize the reported 2.0.12 release alongside 2.0.16 and send its initial prompt through Orca’s existing native startup plugin. After the current location loads, the plugin claims the prompt once and submits it through OpenCode’s composer. The hydration test waits for its asynchronous file read before checking that single claim.
Why
The reported release was outside this managed startup path. Reusing the existing claim avoids a second submission mechanism or an Enter that could submit twice. Only exact 2.0.12 and 2.0.16 use this path; prereleases and unreviewed versions keep the conservative fallback.
Linked Issue
Fixes #22829. Thanks to @puscasurazvan for the original report.
Visual Proof
BEFORE: the official OpenCode 2.0.12 binary leaves the prompt in its composer after 40 seconds.
AFTER: the managed prompt starts and completes.
Testing
The version-support change passed 101 focused tests, Node and CLI typechecks, changed-file quality checks, and the isolated Electron, relay and CLI build checks. The later asynchronous test correction passed 93 tests across three files and preserves the before-hydration and exactly-once assertions.
Both runtime comparisons used the official 2.0.12 binary on macOS. Before the fix, its plain
--promptcommand painted the complete prompt for 40.565 seconds without a provider request or session message. After the fix, publicworktree create --agent opencode --promptsent a Unicode prompt through one native claim and one primary request to a local test provider; canonical completion and a closed SQLite copy confirmed the exact prompt once and a completed session. Both private apps, child processes and endpoints were closed and verified.The managed runtime used the reviewed build; this PR preserves its five changed files on named Main apart from the test wait. Previously captured 2.0.16 behavior is separate evidence. Windows, Linux and SSH were not tested at runtime for this change. Full PR checks remain a merge gate. The catalog test corrections merged in #25442 are included through the normal Main merge; their 12 tests also pass on current Main.
Review
The five files preserve the reviewed version-support change. Normal Main merges retain unrelated changes. No remote wire or agent status-store change.
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
OpenCode 1 behavior and SSH/WSL negotiation use their existing paths. Later OpenCode versions need their own contract review.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)