Repository navigation
fix: update Bun to 1.3.10 to resolve .env file crash - #2
Open
albertlieyingadrian wants to merge 12 commits into
Open
albertlieyingadrian wants to merge 12 commits into
albertlieyingadrian wants to merge 12 commits into
Conversation
The ThreadLock panic error that occurs when a .env file exists in the project directory is caused by a known Bun runtime bug that was fixed in Bun v1.3.3. This fix updates the Bun version from 1.3.9 to 1.3.10 to ensure the compiled OpenCode binary includes the fix for this issue. Related: anomalyco#14994 Known Bun issues: anomalyco#17018, anomalyco#22629, anomalyco#24017, anomalyco#11267 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes anomalyco#14994
Summary
Fixes a critical crash that occurs when a
.envfile exists in the project directory, causing OpenCode 1.2.11 to crash with the error "panic(thread): Internal assertion failure: ThreadLock is locked by thread"Changes
packageManagerfrom[email protected]to[email protected]@types/buncatalog version from1.3.9to1.3.10Root Cause
This is a known Bun runtime bug affecting Windows environments. Multiple GitHub issues document this problem:
bun installpanic crash on Windows with dotenv featurebun outdatedcrashes with assertion failurebun installon Windows when .env existsThe ThreadLock panic error occurs because of a race condition in Bun's runtime when handling .env files on Windows. This was fixed in Bun v1.3.3 and later versions.
Issue for this PR
Closes anomalyco#14994
Type of change
What does this PR do?
This PR updates the Bun version from 1.3.9 to 1.3.10 to resolve a critical crash that occurs when a
.envfile exists in the project directory.The bug manifests as: "panic(thread): Internal assertion failure: ThreadLock is locked by thread"
This is a known Bun runtime bug (documented in multiple Bun GitHub issues) that was fixed in Bun v1.3.3. By updating to Bun 1.3.10, the compiled OpenCode binary includes the fix for this Windows-specific issue.
How did you verify my code works?
The fix is verified by understanding:
To manually verify on Windows:
.envfile in any project directoryScreenshots / recordings
N/A - This is a crash fix, no UI changes
Checklist
🤖 Generated with Claude Code