Skip to content

fix(config): allow web permission object rules#29225

Open
YOMXXX wants to merge 1 commit into
anomalyco:devfrom
YOMXXX:fix/config-web-permission-rules
Open

fix(config): allow web permission object rules#29225
YOMXXX wants to merge 1 commit into
anomalyco:devfrom
YOMXXX:fix/config-web-permission-rules

Conversation

@YOMXXX
Copy link
Copy Markdown

@YOMXXX YOMXXX commented May 25, 2026

Issue for this PR

Closes #29041

Type of change

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

What does this PR do?

webfetch and websearch permissions are meant to support pattern-based rules for URLs and search queries, but the config schema only accepted a flat action. That made object syntax fail during config load.

This PR changes those two permission entries to accept rule objects, adds regression coverage for parsing and evaluating those rules, updates the related internal guidance, and regenerates the JS SDK type.

How did you verify your code works?

  • bun test test/config/config.test.ts from packages/opencode
  • bun typecheck from packages/opencode
  • bun typecheck from packages/sdk/js
  • bun turbo typecheck from the repo root
  • .husky/pre-push

Screenshots / recordings

No UI changes.

Checklist

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

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels May 25, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

webfetch permission with object syntax crashes server on startup

1 participant