Repository navigation
Conversation
- Added support for appending prompt references when dropping notes. - Improved drag-and-drop handling to ensure only the first note is referenced when multiple notes are dragged. - Updated CSS for better visibility of drop overlay and adjusted styles for specific view types. - Introduced a method to retrieve the OpenCode client instance for better integration.
- Introduced FileLinkBridge to handle vault-relative file links in the OpenCode webview. - Implemented methods for binding webview events and handling navigation and console messages. - Added constants and utility functions for managing file link interactions. - Enhanced OpenCodeView to integrate the new file link bridge, improving user experience when opening files. - Created tests for file link script and path utilities to ensure functionality and reliability.
v2 changed the web UI routes, made authentication mandatory, and moved the HTTP API under /api. The plugin spoke the v1 scheme, so the embedded view crashed with "Unrecognised route!" and every API call returned the HTML shell. - Build session URLs as /server/<base64url(serverUrl)>/session/<id>, the only session route v2 accepts. getUrl() now returns the server root, without the encoded project directory in the path. - Generate a server password, pass it to opencode as OPENCODE_SERVER_PASSWORD, seed it into the web UI storage so the view connects without the pairing screen, and use HTTP Basic auth for API calls. - Prefix API requests with /api and pass the directory in the body or query. The x-opencode-directory header is gone in v2. - Replace the removed message-part endpoints with synthetic messages for workspace context. - Drop the append-prompt fallback, which has no v2 equivalent. The drag-drop injection still works and remains the only path. - Report a clear error when a server on the port rejects the configured password, and stop the process rather than leaving the view broken. - Add a Server password setting so it can be inspected and rotated.
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.
No description provided.