GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — fix(opencode): preserve agent and reasoning options when steering by nateEc · Pull Request #23981 · pingdotgg/t3code Conversation
Contributor
Steering an OpenCode turn omits the selected agent and reasoning variant, so a thread using a custom agent can switch to OpenCode's default agent mid-turn. The steered prompt also loses the system instructions supplied at turn start. Use the same prompt options for turn start and steering, retaining the explicit agent, plan-mode fallback, reasoning variant, and system instructions. This is a focused fix for an existing message-delivery path, with no new capability or product default. Fixes #23508. Validation on macOS arm64, Node 26.12.1:
Written with GPT-6 in the Codex desktop harness.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions统一普通消息与中途追加消息的 agent、推理强度和系统指令,保留计划模式回退。\n新增三种配置的适配器回归用例,确认修复前失败、修复后通过。\n通过 check:changed 和 34 个适配器测试。
|
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This focused OpenCode adapter fix preserves the existing agent, reasoning variant, plan fallback, and system instructions when steering an active turn. Production behavior changes only in that previously incomplete steering path, with targeted regression coverage and no product-default or static-analysis changes. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Shared prompt options for turns and steering packages/provider-opencode/src/server/adapter.ts, packages/provider-opencode/src/server/adapter.test.ts |
A shared helper derives the agent, variant, and system prompt from model selection and runtime policy. Turn submission and steering use these options. Tests check custom, plan, and default modes, including system prompt retention and distinct message IDs. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related issues
Possibly related PRs
Suggested reviewers: juliusmarminge, marcodotio
6877aSteering preserves the selected options. No merge-blocking issue was established.
Explanation
The description covers the problem, solution, scope, issue reference, verification results, limitations, and testing environment. It provides the required information, although it does not use the template's section headings.
Explanation
Issue [#23508] requires OpenCode steering to preserve the selected agent and reasoning variant, including the plan-mode fallback. promptOptions derives agent, variant, and the shared system instructions from the active turn. Both startTurn and steerTurn use this helper. The parameterized test covers custom-agent precedence, plan fallback, default options, system-prompt equality, and a fresh message ID.
Explanation
The changes remain within the OpenCode message-delivery path required by [#23508]. The helper removes duplicated prompt-option construction, and the tests verify the steering behavior. No unrelated capability, product default, or UI change appears in the reviewed diff.
Comment @coderabbitai help to get the list of available commands.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
保留追加消息的代理和推理配置,以及主线附件解析和停止竞态覆盖。 分开测试宿主与模型选项参数,避免丢失任一方测试能力。
Dismissing prior approval to re-evaluate 667fc87
|
Merged main c3888da in 667fc87. Preserved steering agent/variant/system options and main's extracted-attachment/stop-race tests. The harness now accepts host overrides and model selection separately so neither side's coverage is lost. All 35 adapter tests and check:changed scoped gates pass. No real provider request was sent. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
保留追加消息的代理、推理和系统指令选项。 合并主线恢复会话及子任务权限更新的回归测试。
|
Merged main be2ea30, preserving this PR's steering-options regression alongside main's new session/subagent permission-refresh tests. The production merge is unchanged in intent: initial and appended prompts share the selected agent, reasoning variant and system instructions.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Verified current main e455200 contains the same fix via merged #23270 (f14fa03). Both startTurn and steerTurn now spread turnPromptOptions from the active turn, preserving the explicit agent (or Plan fallback), variant, and T3/runtime system instructions. The merged PR includes a regression asserting the start and steer payloads retain those values. Closing this duplicate; no additional implementation needs to be merged from this branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: OpenCode steer drops the thread'sagent (and variant), so steered messages run on opencode's default_agent
There was an error while loading. Please reload this page.