Repository navigation
feat: recognize proposed plans from OpenCode plan mode - #2
Merged
Merged
Conversation
casassg
marked this pull request as ready for review
October 5, 2026 20:17
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.
OpenCode's plan agent answers in prose, so a plan-mode turn ends as a plain message: no plan card, and no Implement follow-up. Codex gets both because T3 asks for a
<proposed_plan>block and its app-server parses it.In plan mode only, T3 now appends the same block formatting rules to the OpenCode system prompt. The adapter splits the block out of streamed text parts: the assistant message keeps just the prose (a partial opening tag is never shown), and the block becomes a normal
proposed_plannode, plan artifact and turn item, streaming then completed. A later block supersedes the earlier plan. No contract changes; OpenCode's experimentalplan_exitfile flow is not used.Verification:
vp test runonProposedPlanBlock.test.tsandOpenCodeAdapterV2.test.ts(53 passing, including a streamed-block and supersede test) andtsc --noEmitinapps/server. Not checked against a live OpenCode run.Written by Claude (claude-sonnet-5-5) via OpenCode in T3 Code.