Skip to content

feat: sync opencode foundation tail#48

Merged
Astro-Han merged 2 commits into
devfrom
codex/sync-opencode-foundation-tail
Apr 20, 2026
Merged

feat: sync opencode foundation tail#48
Astro-Han merged 2 commits into
devfrom
codex/sync-opencode-foundation-tail

Conversation

@Astro-Han

@Astro-Han Astro-Han commented Apr 20, 2026

Copy link
Copy Markdown
Owner

Summary

Sync the upstream opencode foundation and provider tail needed for the v1.4.11 graft slice.
Restore compatibility surfaces around Env, Provider, ProviderAuth, ProviderError, ProviderTransform, and ModelsDev.
Preserve ripgrep partial results across JSON serialization and align the /find response to return { items, partial }.

Why

PR 9a is the foundation-provider tail of issue #27. The core lane stays inside opencode-internal foundation work under provider and file.

This PR includes two narrow compatibility exceptions that are required to keep that slice coherent:

  • packages/opencode/src/env/index.ts: upstream provider wiring now depends on Env.Service, so this file bridges the new Effect service shape back into PawWork's existing sync surface.
  • packages/opencode/src/server/instance/file.ts: Ripgrep.search() now serializes { items, partial }, so the /find route schema needs to match the actual response contract.

Reviewed against the three-question philosophy: this is the smallest sound PR for the 9a lane, the remaining scope is sufficient for the upstream sync goal, and the verification plus scope notes are intended to make the slice reassuring to merge.

Related Issue

Part of #27

How To Verify

cd packages/opencode && bun run typecheck
cd packages/opencode && bun test ./test/provider/provider.test.ts
OPENCODE_E2E_KEEP_SANDBOX=1 bun --cwd packages/app test:e2e:local -- e2e/prompt/prompt.spec.ts --grep @smoke

Screenshots or Recordings

N/A, no visible UI changes.

Checklist

  • I ran the relevant verification steps
  • I tested visible changes manually when needed
  • I am targeting the dev branch

@Astro-Han Astro-Han merged commit 48eb7ec into dev Apr 20, 2026
11 checks passed
@Astro-Han Astro-Han deleted the codex/sync-opencode-foundation-tail branch April 20, 2026 07:15
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.

1 participant