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 — refactor(core): express operation policies as transforms by kitlangton · Pull Request #45713 · anomalyco/opencode

Conversation

@kitlangton

@kitlangton kitlangton commented Aug 27, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Why
Eight named Effect functions wrap their complete generator bodies in a second generator solely to apply an uninterruptible or semaphore policy. Effect.fn and Effect.fnUntraced support these whole-body policies directly as post-body transforms.

What Changes
Moves the existing policies onto the named function builders for Integration attempt settlement, WellKnown refresh/add/remove, Config reload, and instruction/skill refresh. The transform adapters preserve function argument inference where the operation accepts parameters.

Scope
Every original operation remains wholly inside the same uninterruptible region or one-permit critical section. OAuth persistence cleanup, command settlement behavior, config discovery/reconciliation/publication, watcher clearing, source precedence, and activation-level recovery are unchanged. The removed Config.update API is not restored. Open PRs #45692, #44843, #44813, #45625, and #44725 touch broader portions of integration.ts or config.ts but not these policy-wrapper hunks.

Verification

cd packages/core
bun typecheck
bun run test test/integration.test.ts test/wellknown.test.ts test/config/config.test.ts test/instruction-discovery.test.ts test/config/skill.test.ts
cd ../..
bunx oxlint packages/core/src/integration.ts packages/core/src/wellknown.ts packages/core/src/config.ts packages/core/src/config/plugin/instruction.ts packages/core/src/config/plugin/skill.ts

Core typecheck passed and all 75 focused tests passed. Oxlint completed with no errors and ten pre-existing warnings. The push hook completed the 33-package workspace typecheck.

Sorry, something went wrong.

Uh oh!

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

All reactions
@kitlangton
refactor(core): express operation policies as transforms
84481f6
@github-actions github-actions Bot added the contributor label Aug 27, 2026
@kitlangton
chore(core): merge v2 into permit transforms
f08e51a
@kitlangton
kitlangton merged commit e409567 into v2 Aug 28, 2026
10 checks passed

Uh oh!

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

@kitlangton
kitlangton deleted the permit-transforms branch August 28, 2026 21:12
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
@kitlangton
refactor(core): express operation policies as transforms (anomalyco#4…
1013074
…5713)
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

@kitlangton
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.