Uh oh!
There was an error while loading. Please reload this page.
fix(opencode): avoid symlink-loop recursion during skill discovery - #18670
fix(opencode): avoid symlink-loop recursion during skill discovery#18670coffeepenbit wants to merge 8 commits into
Conversation
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
rekram1-node
commented
Mar 23, 2026
@atharvau STOP AI SPAMMING PRs it's incredibly annoying and it helps absolutely no one. |
rekram1-node
commented
May 15, 2026
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Fixes#16188
Type of change
What does this PR do?
Skill discovery could recurse indefinitely through symlink loops in external skill directories, which could stall startup and drive runaway memory use. This PR makes the scan cycle-safe by deduplicating visited directories by real path while still allowing symlinked skill roots such as
.agents/skills. The fix still allows for skills via symlink.This may also resolve some startup blank-screen or runaway-RAM reports. I think these also may have been related. I ran into these issues on M4 Pro macOS 15.7.4, causing my laptop to "hard" crash.
How did you verify your code works?
bun test test/skill/skill.test.tsinpackages/opencodebun run devstartup check and no longer saw the runaway skill scan behaviorScreenshots / recordings
N/A
Checklist