Skip to content

feat(opencode): a Plan mode answer becomes the plan card - #2

Open
SHAMALKRISHNA wants to merge 3 commits into
feat/restore-plan-modefrom
feat/opencode-plan-card
Open

SHAMALKRISHNA wants to merge 3 commits into
feat/restore-plan-modefrom
feat/opencode-plan-card

Conversation

@SHAMALKRISHNA

Copy link
Copy Markdown
Owner

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 active proposed 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:changed passes.

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

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Nov 12, 2026
@SHAMALKRISHNA

Copy link
Copy Markdown
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 e9e934bb, so this stack is 5 commits behind pingdotgg/t3code main. Rebase before merging.

SHAMALKRISHNA and others added 3 commits November 13, 2026 02:35
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

Copy link
Copy Markdown
Owner Author

Note

🤖 Opus 5.5 responding on behalf of Sam

Rebased onto the new #1 head. New head fb06aebd, same 3 patches. check:changed passes in full: format, lint, knip, graphql, typecheck (10 packages), tests 159/159.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant