Skip to content

fix(opencode): resolve explicit config instructions#30270

Open
849261680 wants to merge 4 commits into
anomalyco:devfrom
849261680:fix/config-instruction-origin
Open

fix(opencode): resolve explicit config instructions#30270
849261680 wants to merge 4 commits into
anomalyco:devfrom
849261680:fix/config-instruction-origin

Conversation

@849261680
Copy link
Copy Markdown

Issue for this PR

Closes #30233

Type of change

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

What does this PR do?

When project config scanning is disabled, explicit config files can still be loaded through OPENCODE_CONFIG, but relative instruction paths were resolved from the global config directory. This keeps instruction source metadata while merging config, then resolves relative instruction files from the config source that declared them.

How did you verify your code works?

  • bun test test/session/instruction.test.ts
  • bun test test/config/config.test.ts
  • bun typecheck from packages/opencode
  • pre-push bun turbo typecheck

Screenshots / recordings

N/A, no UI change.

Checklist

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

If you do not follow this template your PR will be automatically rejected.

@849261680 849261680 force-pushed the fix/config-instruction-origin branch from 64a71e7 to 7641a3f Compare June 1, 2026 19:05
@849261680 849261680 marked this pull request as ready for review June 1, 2026 19:45
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.

OPENCODE_DISABLE_PROJECT_CONFIG silences config.instructions from OPENCODE_CONFIG

1 participant