Skip to content

V2 - #617

Merged
Tarquinen merged 19 commits into
devfrom
v2
Sep 20, 2026
Merged

V2#617
Tarquinen merged 19 commits into
devfrom
v2

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator
  • Support Opencode v2
  • Retains support for Opencode v1
  • v2 does not yet support a hook similar to v1s experimental.text.complete, meaning plugins can not yet parse out text the model may hallucinate such as @4@

Recognize native file paths, Code Mode nested calls, and subagent result metadata. Apply shared protection rules to compression, sweep, deduplication, and failed-tool pruning.
Register native hooks, tools, commands, and panel RPC while retaining the V1 server entrypoint. Preserve provider-native context and tool pairs, isolate session state, and keep compaction prefixes stable. Require V1 1.18.29+ and reject unsupported V2 ask permissions.
Use component-owned V2 keymaps, dialogs, and themes with shared panel views. Read and update server-owned state through typed RPC while preserving the V1 panel.
Exercise packed plugins with HTTP and WebSocket compression, permissions, concurrent sessions, persistence, compaction, and terminal automation. Include isolated live Codex checks and programmatic capture inspection.
Provide persistent and fresh profiles, separate V1/V2 state, current Codex authentication, and automatically maintained raw/readable request logs. Rebuild both local plugins on each launch.
Record architecture decisions, compatibility limits, usage, reproducible checks, and verification evidence for DCP and request logging.
Ignore local development documentation and remove the public README link to the untracked journal.
Move local setup, sandbox, and logging instructions into CONTRIBUTING. Keep the README focused on users and avoid release-specific statements and duplicated version pins.
Keep the logger in a private npm workspace, integrate its checks into CI, and build both plugins from a single checkout. Exclude development logging tools from the published DCP package.
@manorit2001

Copy link
Copy Markdown

@Tarquinen is it ready?

sasa-tomic added a commit to sasa-tomic/opencode-dynamic-context-pruning that referenced this pull request Sep 19, 2026
Flattened single commit of upstream PR Opencode-DCP#617 (15 commits, head 408379e)
by Daniel Smolsky (Tarquinen), applied on top of master.

- Support Opencode v2 via hybrid default export { id, setup, server }
  (2.x loaders take setup, v1 loaders take server)
- Retains support for Opencode v1 (v1.3.0+)
- V2 limitation: no hook equivalent to v1's experimental.text.complete,
  so hallucinated <dcp-message-id> tags are stripped only from outgoing
  requests, not from the persisted transcript
- Adds containerized v1/v2 sandbox tooling (dev-only, opt-in)

Reviewed before flattening: no malicious code, supply chain clean
(all lockfile entries registry-pinned, integrity-verified), unit tests
and typecheck pass, loader schema acceptance verified against
OpenCode v2.0.10 host source.
@sasa-tomic

Copy link
Copy Markdown

This works pretty well for me, thank you for all the hard work!

Use @n@ message IDs, @bn@ summary references, and separate priority and protection labels throughout V2 prompts, compression, commands, and context cleanup. Preserve the V1 XML format and cover nested summaries and persisted state.
Assert compact V2 wire content and summary markers over HTTP and WebSockets, exercise compact block commands, and cover both V1 compression modes.
Resolve the latest stable release for the selected host on each launch. Keep model and transport preferences while applying exact version overrides only to the current launch.
Map current dialog surfaces and earlier V2 overlay themes to the shared panel colors. Allow terminal integration checks to select a host image and document cross-release testing.
@Tarquinen
Tarquinen merged commit 7e12d6f into dev Sep 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants