Repository navigation
feat(agents): support OpenCode 2.x config, telemetry and session analytics - #627
Open
Siarhei-Yarkavy wants to merge 2 commits into
Open
Siarhei-Yarkavy wants to merge 2 commits into
Siarhei-Yarkavy wants to merge 2 commits into
Conversation
Consolidate native provider config, directory hooks, SQLite session analytics, source-ID and runtime context handling, version probing, file metrics, and the related regression coverage and integration documentation. Retain the shared cleanup, MCP/URL fixes and Responses routing net change. Keep the legacy US Bedrock geography default when no region is supplied. Leave the installer on opencode-ai and automatic standalone enrichment v2-only. Split agent-version enforcement and process-scanning diagnostics into independent branches. Preserve current upstream ACP and OTLP changes during the transfer. Source history: backup/opencode-v2-config-before-split-2026-10-15. Source-level fixes do not establish live provider or Windows acceptance.
Siarhei-Yarkavy
force-pushed
the
feat/opencode-v2-config
branch
from
October 15, 2026 09:47
70350f2 to
6eaeabd
Compare
Document database selection, source identity, hook delivery and provider metadata with their rationale. Keep the v1 installer default out of scope and record the manual v2 launch smoke check without claiming full provider acceptance. Refs: codemie-ai#627
Siarhei-Yarkavy
marked this pull request as ready for review
October 15, 2026 10:43
4 tasks done
Owner
|
[AUTO_CLOSE_WARNING] ⏰ This pull request has had no activity for 7 days (last activity: 2026-10-15). It will be automatically closed no earlier than 2026-10-29 (UTC) (~6 more days). Any activity from anyone — a comment, a push, a review, reopening — restarts the countdown from that moment. This warning will be deleted automatically once that happens. |
Author
|
Hi team, is there any review? |
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.
Summary
Adds supplementary OpenCode 2.x support while retaining OpenCode 1.x as the
primary installation path. The wrapper selects the matching configuration schema,
loads the appropriate telemetry plugin, and reads both SQLite session layouts
through the existing analytics contracts.
Closes #577
codemie install opencodestill installs OpenCode v1 viaopencode-ai.Making v2 the default installed version is out of scope: this task provides
v2 support without replacing the primary v1 installation policy.
General agent-version enforcement and process-scanning doctor diagnostics are
outside this runtime adaptation: neither is required to emit v2 configuration
or select and translate session data.
Changes
including existing model capabilities, pricing and reasoning variants.
executable quoting. The default installer remains
opencode-ai.explicit server selections and existing v1 argument behavior are retained.
logic and platform-shell delivery when a POSIX
shis unavailable.database discovery with the child's environment, exact source-session handoff,
Windows v2 path representation and v2 file-operation metrics.
source-aware recovery instructions and early proxy/timer cleanup.
us.geography default is retained when no region is supplied; explicit qualified
IDs and ARNs remain authoritative.
URLs, Responses-routing improvements and integration documentation.
Impact and design decisions
The changes adapt existing CodeMie configuration, hooks and session analytics to
OpenCode 2.x. A missing v2 proxy-model selection is rejected instead of silently
selecting another emitted model. The database resolver uses the launch's binary
and environment instead of assuming another installation or storage root.
a shared service cannot inherit provider configuration from a later wrapper
invocation. Explicit server choices are preserved; unrelated sessions are not stopped.
database, while the CodeMie UUID retains lifecycle/API correlation. A missing
explicit source ID fails instead of selecting another session.
effort, and existing prices/capabilities are preserved for interactive selection
and cost estimates. Declaring a variant does not prove provider acceptance.
and command-execution logic is shared to prevent escaping and platform behavior drift.
IDs/ARNs are authoritative, and the existing
us.default avoids a global-routingpolicy change for v1 and the built-in agent.
Small shared corrections to Bedrock IDs, shell-hook delivery, MCP/URL handling
and launch cleanup are intentionally included; they also affect existing paths.
The provider allowlist and model guard do not certify live backend availability.
Full-selector/resume handling, general inline/file precedence and broader
discovery/resource-ownership changes are outside this adaptation.
Testing
Local validation on Linux, Node 24.22.0:
git diff --check: passed.nine authenticated skills cases without local SSO and one opt-in VS Code live
certification case.
on Ubuntu/Windows with Node 20 passed. CI results.
the generated v2 configuration. This user-confirmed local launch currently uses
a manually created
~/.local/bin/codemie-opencodeshim, not a default v2 installationfrom
codemie install opencode.The ordinary CI stages were executed separately. Dependencies were reused from
the existing installation; a fresh
npm ciwas not performed in this pass.The full live agent suite and a dedicated provider/AWS acceptance matrix were
not run. Node 20/Windows and Gitleaks were verified in CI rather than locally.
The manual smoke check establishes basic v2 startup, not the full live
provider/analytics pipeline or actual billing behavior.
Checklist