Repository navigation
feat(opencode): a Plan mode answer becomes the plan card - #2
Open
SHAMALKRISHNA wants to merge 3 commits into
Open
SHAMALKRISHNA wants to merge 3 commits into
SHAMALKRISHNA wants to merge 3 commits into
Conversation
Owner
Author
|
Note 🤖 Opus 5.5 responding on behalf of Sam Before/after screenshots and the verified checks for this PR are on one page (private; Sam can open it): https://claude.ai/artifact/MntMFcGJKaKJQQA6SUpJGz Upstream merged 5 PRs after this branch's base |
OpenCode's plan agent answers in plain text, so OpenCode plans had no plan card and no Implement action. When a Plan mode turn completes, its final answer is re-emitted in place as the proposed plan, and an earlier plan in the thread is marked superseded. OpenCode 1.x is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
finishTurn never fails, so the plan card's ID allocation dies like the ACP adapter's does. Also formats the change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lement Proposed plans start active, as Claude's and Codex's do; the client only offers the plan follow-up for an active plan. Only an active plan is superseded by the next one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SHAMALKRISHNA
force-pushed
the
feat/restore-plan-mode
branch
from
November 12, 2026 18:23
d29881e to
aa97859
Compare
SHAMALKRISHNA
force-pushed
the
feat/opencode-plan-card
branch
from
November 12, 2026 18:23
5349eae to
fb06aeb
Compare
Owner
Author
|
Note 🤖 Opus 5.5 responding on behalf of Sam Rebased onto the new #1 head. New head |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1 (
feat/restore-plan-mode).OpenCode's plan agent answers in plain text, so OpenCode plans had no plan card and no Implement action.
When an OpenCode 2 Plan mode turn completes, its final answer is re-emitted in place as an
activeproposed plan, so the plan isn't shown twice. An earlier active plan in the thread is marked superseded. OpenCode 1.x is unchanged.Checks: the new adapter test fails without the change and passes with it. All 157 OpenCode adapter tests and the 9 OpenCode integration tests pass, and
vp run check:changedpasses.Runtime (OpenCode 2.2.5 + DeepSeek V4.1 Flash via OpenRouter): the plan card appears, then "Plan ready" with Refine and Implement. "Implement in a new thread" opened a fresh Build thread with the plan as its first message.
Limit: a rollback snapshot re-read rebuilds the answer as a message. Separately, the ACP adapter (Grok) emits proposed plans as
completed, which the client doesn't treat as actionable.Not reviewed by a second model yet. Merge not authorized.
Tracking: MYK-661.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XcrufoToQXAiwq9sFnSPYU