Skip to content

feat(opencode): add native terminal controls - #7911

Draft
oliver-mee wants to merge 5 commits into
volcengine:mainfrom
oliver-mee:feat/opencode-v2-tui
Draft

oliver-mee wants to merge 5 commits into
volcengine:mainfrom
oliver-mee:feat/opencode-v2-tui

Conversation

@oliver-mee

@oliver-mee oliver-mee commented Nov 18, 2026 •

Copy link
Copy Markdown

Description

Select /ov from slash completion or find it in the command palette. It opens a native picker for Doctor, saved recall, and confirmed current-session commit.

OpenCode clears the composer before dispatching a slash command that takes free-text arguments. The picker uses a no-argument command instead, so ordinary prompt text is not consumed by this plugin. Opening the picker from the palette leaves the draft intact.

Human Involvement

  • A human participated in the implementation or review loop
  • This PR was generated entirely by AI agents without human participation in the loop

Related Issue

Part of #5494. Stacked on #7910, which supplies the server RPC. This draft includes that prerequisite until landed.

Type of Change

  • New feature (non-breaking change that adds functionality)

Changes Made

  • Export an optional ./tui entry that uses native dialogs. Doctor runs on request and can be cancelled; there is no persistent footer badge.
  • Read recall records from saved prompt metadata or the plugin's replay ledger when available, newest first, and include the stored source references.
  • Support disabling the terminal entry with -openviking.tui in cli.json while retaining the headless RPC.

Testing

The OpenCode plugin suite passed 77 tests on Node 24. An isolated packed downstream build also verified slash completion, palette discovery, and draft preservation in OpenCode 2.3.2 at 80 by 24. No live provider calls were made.

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Not attached.

Additional Notes

#7910 owns the server RPC and diagnostic probe changes.


Developed with AI agents, with a human in the loop. Model: GPT-6.2 Sol.

This branch has not been deployed

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

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant