Walkthrough
Initial and steering prompts now use the same options derived from the active turn. The adapter test harness supports model options and interaction modes, and a test checks that steering receives the same agent, variant, and system instructions as startup.
Changes: OpenCode prompt options
Layer / File(s) Summary Derive and apply turn prompt options
packages/provider-opencode/src/server/adapter.ts,packages/provider-opencode/src/server/adapter.test.tsThe adapter derives the agent, variant, and system prompt from the active turn and applies them to initial and steering prompts. The test harness accepts model options and an interaction mode. A test checks that steering receives the same options as startup. Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related issues
pingdotgg/t3code#23508: This issue describes the same steering omission of the selected agent, variant, and turn system prompt addressed by this change.
Suggested reviewers:
juliusmarminge
Merge Risk: External image Minimal · up to bb696
Initial prompts and steers use the same turn options. No current behavior defect was established, so the change is ready to merge.
Pre-merge checks: Passed 4
Check name Status Explanation Title check Passed The title is concise, specific, and accurately describes the primary fix: preserving the turn's agent, variant, and instructions when steering OpenCode turns. Description check Passed The description includes all required sections. It clearly explains the problem, change, scope rationale, verification steps, observed results, and known limitations. Linked Issues check Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches
Generate unit tests (beta)
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Usage-based review receipt
- Mode: Continue automatically
- Reviewed files: 2
- Charged: $0.50
- View usage details
Note
This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing.