Repository navigation
feat(opencode): add read-only diagnostics and intentional commit controls - #7910
Open
oliver-mee wants to merge 4 commits into
Open
oliver-mee wants to merge 4 commits into
oliver-mee wants to merge 4 commits into
Conversation
…rols (cherry picked from commit c2b8db25db4aaeb21f6ee7eb19eb163efb7ef9dd)
oliver-mee
marked this pull request as ready for review
November 18, 2026 06:27
This branch has not been deployed
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.
Description
When memory is missing from an OpenCode session, checking the OpenViking server only tells you whether the server responds. To see which plugin, MCP server and skills OpenCode actually loaded, users have to inspect OpenCode separately. This PR puts both checks behind a native v2 plugin API so the client can report the connection and the host's runtime inventory together.
The same interface lets a client ask OpenViking to commit the current session. It verifies that the session belongs to the current OpenCode location, captures eligible recent turns, then requests a commit. The response tells the client whether the server accepted it. Memory extraction runs separately.
Human Involvement
Related Issue
Part of #5494.
Type of Change
Changes Made
lib/v2-controls.mjs. Report native plugin, MCP and skill inventory, capture state and authenticated server probes. Provide a standalone Doctor for connection and local-state checks.Testing
The OpenCode suite passed 68 tests on macOS with Node 24. The diagnostics checks include an unrelated plugin installed beneath a directory containing the word OpenViking. A packed OpenCode 2.3.0 loopback test exercised authenticated Doctor, read-only status, commit acceptance and rejection of an invalid session. Syntax, sync and version checks passed.
Checklist
Screenshots (if applicable)
Not applicable.
Additional Notes
The broader shared suite passed 643 of 644 tests. The DSH Desktop launcher assertion also fails on upstream main. The native fixture verifies the commit acknowledgement.
Developed with AI agents, with a human in the loop. Model: GPT-6.2 Sol.