Repository navigation
fix(agent): make opencode v2 /acp status panel visible in the TUI - #878
Merged
ranxianglei merged 1 commit intoSep 17, 2026
Conversation
The /acp panel was carried only in the synthetic message's text. OpenCode V2's TUI renders a synthetic message as a Notice row only when its display text fits the timeline cap (~1KB; message-timeline.tsx canRenderImmediately), so real panels were silently dropped: users saw nothing after /acp. The panel now goes to description (verbatim under 1024 chars, leading lines + [panel truncated] above) and the model-facing body is an inert one-line note (V2_SYNTHETIC_TEXT) so the model context never repeats panel content. Verified live in a v2.0.4 TUI: short panels render fully as the notice row, a >1.5KB panel renders its leading lines plus the marker; no model turn is triggered (pairs with the no-wake fix #879).
ranxianglei
merged commit Sep 17, 2026
40c4970
into
2026-09-17_opencode-v2-acp-no-wake
1 check passed
This was referenced Sep 17, 2026
ranxianglei
pushed a commit
that referenced
this pull request
Sep 17, 2026
PR #878 was merged only into 2026-09-17_opencode-v2-acp-no-wake (tip 40c4970), so the #850 head was missing the panel-visibility fix. This fold makes 2026-09-15_opencode-native-plugin carry the complete /acp stack: register (11a82d7) + harden (f857ff1) + no-wake (d6d60f8, #875) + visible panel (304110a, #878).
This was referenced Sep 17, 2026
Merged
Closed
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: base is the no-wake fix branch (#875, itself on #850).
Fixes #877.
The panel was carried only in the synthetic message's text. OpenCode V2's TUI renders a synthetic message as a Notice row only when its display text fits the timeline cap (~1KB; packages/app/src/session/timeline/message-timeline.tsx canRenderImmediately), so real panels were silently dropped - users saw nothing after /acp.
The panel now goes to description (verbatim under 1024 chars; leading lines + [panel truncated] above) while the model-facing body is an inert one-liner (V2_SYNTHETIC_TEXT) so context never repeats panel content.
Verified live in a v2.0.4 TUI: short panel renders fully as the notice row; a >1.5KB panel renders its leading lines plus the marker; no model turn is triggered (pairs with the no-wake fix).
Tests: existing /acp assertions migrated to description + inert-body asserts; new truncation test with a 1500-char fake panel. Typecheck clean; opencode-v2 suite 17/17; full npm test green.
Merge order: #850 -> #875 -> this.