GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(opencode): load supported v2 config in v1 by jlongster · Pull Request #45421 · anomalyco/opencode

Conversation

@jlongster

@jlongster jlongster commented Aug 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Issue for this PR

No linked issue. Design: https://gist.github.com/jlongster/3c3fb0f2c9dd0b63867c11111ff8b1ea (superseded in part by review decisions).

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a V1-owned, in-memory adapter for supported current V2 config, including mixed flat V1 MCP entries and mcp.servers written by opencode2 mcp add.

  • Lowers MCP, model selections, skills, agents, commands, snapshots, media, compaction, and subagent depth. Explicit V1 definitions win same-document conflicts.
  • Rejects V2 global and agent permissions with a source-specific configuration error, including empty or shadowed declarations. Permission conversion is out of scope because V1 merging does not preserve V2 ordered-rule semantics. Existing V1 rules remain unchanged.
  • Reports other invalid, unsupported, and conflicting settings without logging their values. Provider and plugin conversion remain unsupported.
  • Preserves native V2 fields during unrelated V1 config updates rather than writing the lowered projection back to disk.

Existing V1 cross-source MCP deep-merge behavior remains unchanged. Its credential inheritance also occurs with pure V1 configuration and is a separate V1 issue, not introduced by this adapter.

How did you verify your code works?

From packages/opencode:

  • setpriv --bounding-set=-dac_override,-dac_read_search bun test test/config --timeout 30000 --only-failures: 230 passed, 3 skipped. Disabling root permission bypass lets the existing read-only TUI fixture behave correctly.
  • bun typecheck: passed.
  • Includes 18 read fixtures and 6 update fixtures with checked-in input/output configs; updates snapshot both exact saved text and normalized V1 output. Regeneration requires UPDATE_CONFIG_FIXTURES=1.
  • Tests verify V2 permissions fail configuration loading and updates without modifying the source file, while V1 permissions remain supported.
  • Isolated V1 CLI smoke tests covered mixed-config loading.

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jlongster
feat(opencode): load supported v2 config in v1
5399d6e
@github-actions github-actions Bot added the contributor label Aug 27, 2026
@jlongster
jlongster marked this pull request as ready for review August 27, 2026 16:22
jlongster added 4 commits August 27, 2026 16:33
@jlongster
fix(opencode): leave v2 permissions unmigrated
f65381f
@jlongster
test(opencode): snapshot config transformations
18a6b67
@jlongster
test(opencode): flatten config fixture layout
262c3bb
@jlongster
fix(opencode): reject unsupported v2 permissions
ebc5f8b
@jlongster
jlongster merged commit 03afae5 into dev Aug 27, 2026
9 of 10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@jlongster
jlongster deleted the config-coexistence branch August 27, 2026 20:03
Archipel pushed a commit to Archipel/opencode that referenced this pull request Aug 29, 2026
@jlongster Thomas Weyn
feat(opencode): load supported v2 config in v1 (anomalyco#45421)
b164e05
@github-actions github-actions Bot mentioned this pull request Aug 31, 2026
Informe upstream (semanal) jaminsmoke/Jarvis#52
Open
1056674754 added a commit to 1056674754/opencode that referenced this pull request Aug 31, 2026
@1056674754 @claude
chore: merge OpenCode v1.18.25-sscity
08c591d
Upstream v1.18.23 (ef2880f, merged at 2091b86) -> v1.18.25 (cb7d8b2),
41 commits / 224 files. Upstream superseded the v1.18.24 release commit
(57e8055) with 19db518 (sync release versions for v1.18.24) in the
v1.18.25 lineage; merge base is 31c409a (update inference headers).
Staged delta vs pre-merge fork HEAD is identical to the upstream tag-to-tag
diff (224 files, +5428/-1627), confirming a clean adoption.

Functional changes:
- feat(opencode): load supported v2 config in v1 (anomalyco#45421) — new
  config/v2-compat.ts lowers v2 config onto v1 before schema parsing;
  decodeConfig wraps every load/update path. Fork's getFresh/commitFresh
  interface additions in config.ts untouched.
- feat(opencode): support Azure CLI authentication (anomalyco#45079) and fix:
  remove Bun dependency from Azure authentication (anomalyco#45845) —
  plugin/azure.ts grows an az CLI credential chain (+241); provider.ts
  custom Azure loader adds auth.accountId as a resource-name fallback
  (1 line, disjoint from the fork snapshot architecture). New
  test/plugin/azure.test.ts passes in full.
- fix(opencode): compare config snapshots as JSON (anomalyco#45784) — the update
  path re-reads the original file text and merges the patch onto the raw
  parsed record, detecting change via serialized comparison.
- fix(provider): filter unreplayable Bedrock reasoning before caching
  (anomalyco#45769) — transform.ts; verified disjoint from the fork GLM/ZhiPu
  normalization block, which is intact.
- fix(core): recover legacy database migration history (anomalyco#45061).
- fix(ui): restore focus in stacked dialogs (anomalyco#44928); fix(app): drop
  archived sessions from home list right away (anomalyco#44905).
- console/stats/go: zen quota usage breakdown, weekly retention metrics,
  Go comparison chart mobile fix, auth redirect validation, checkout
  rate limit; docs: Qwen3.8 Flash, GLM-5.3-Flash, Grok 4.6.

Conflicts resolved: 29 package.json version bumps (rebranded 1.18.25-sscity),
bun.lock (took upstream, rebranded workspace entries via bun install; only
external dep delta is removal of the console map stack d3-geo/topojson/
world-atlas plus a @types/bun catalog entry). provider.ts and transform.ts
auto-merged; merged files verified to differ from v1.18.25 only by fork
deltas (ProviderSnapshot architecture, deferred snapshot initialization,
GLM normalization, getFresh/commitFresh). Tests: provider 105, transform,
bedrock, config, v2-compat, session retry/llm — 906 pass / 0 fail across
14 files; azure plugin 18 pass; typecheck clean. Pre-existing, not from
this merge: 4 cf-ai-gateway-e2e anthropic-passthrough tests fail
identically on pre-merge fork HEAD with an unchanged ai-gateway-provider
3.2.0 lock entry — environmental drift, left as-is.

Co-Authored-By: Claude Fable 5 <[email protected]>
lacymorrow added a commit to lacymorrow/lash that referenced this pull request Sep 4, 2026
@lacymorrow
merge: bring dev (upstream v1.18.25 via PR #41/#43) into lash — lash …
aa19cdf
…is the working branch

* dev: (3957 commits)
  docs: add 2026-08-31 sync entry to UPSTREAM_SYNC.md history
  fix(app): backport session rename and tab menu fixes to v1 (anomalyco#46116)
  fix: remove Hy3 Free docs and correct Go chart rendering (anomalyco#46221)
  docs(go): end Hy3 usage promotion (anomalyco#46213)
  chore: update nix node_modules hashes
  feat(console): animate Go usage allowances and bonuses (anomalyco#46055)
  docs(zen): add Ling 3.0 Flash Fin Free (anomalyco#45923)
  docs(go): add Hy4 preview (anomalyco#45904)
  sync release versions for v1.18.25
  test(opencode): use native config path in permission assertion (anomalyco#45849)
  fix(opencode): remove Bun dependency from Azure authentication (anomalyco#45845)
  docs(go): add Qwen3.8 Flash (anomalyco#45836)
  sync release versions for v1.18.24
  fix(opencode): compare config snapshots as JSON (anomalyco#45784)
  feat(opencode): support Azure CLI authentication (anomalyco#45079)
  fix(provider): filter unreplayable Bedrock reasoning before caching (anomalyco#45769)
  chore: generate
  feat(opencode): load supported v2 config in v1 (anomalyco#45421)
  fix(console): improve Go comparison chart on mobile (anomalyco#45044)
  chore: generate
  ...
@dyoshikawa dyoshikawa mentioned this pull request Sep 8, 2026
Follow up OpenCode upstream updates: notification/permissionDenied hook mappings, references key, V2 beta tracking dyoshikawa/rulesync#2592
Closed
rldona pushed a commit to plazoleta-dev/FlupCode that referenced this pull request Sep 24, 2026
@jlongster
feat(opencode): load supported v2 config in v1 (anomalyco#45421)
18c494f
Ichinose-Kazuki pushed a commit to Ichinose-Kazuki/opencode that referenced this pull request Oct 7, 2026
@jlongster
feat(opencode): load supported v2 config in v1 (anomalyco#45421)
8b96d89
@dyoshikawa dyoshikawa mentioned this pull request Oct 8, 2026
feat(opencode): import V2 agents, commands and flat skills config spellings dyoshikawa/rulesync#3330
Merged
@opencode-agent opencode-agent Bot mentioned this pull request Oct 9, 2026
IDEA integration fails with V2 #54133
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@jlongster
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.