[PR #4815] fix: resolve custom instruction paths relative to config file #11131

Open
opened 2026-02-16 18:15:55 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4815

State: open
Merged: No


Issue #4758

Added splitGlob utility function to split a path into a safe base directory and a glob pattern. This handles cases where Bun.Glob fails with recursive globs in the current working directory.

investigated simplifying the solution by using Bun.Glob with cwd: "/", but it proved unreliable for this specific use case. The
splitGlob approach is more robust.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4815 **State:** open **Merged:** No --- Issue #4758 **Added `splitGlob`** utility function to split a path into a safe base directory and a glob pattern. This handles cases where Bun.Glob fails with recursive globs in the current working directory. investigated simplifying the solution by using `Bun.Glob` with cwd: "/", but it proved unreliable for this specific use case. The `splitGlob` approach is more robust.
yindo added the pull-request label 2026-02-16 18:15:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11131