Skip to content

Commit 1b0287b

Browse files
0.3.1
1 parent 206529a commit 1b0287b

4 files changed

Lines changed: 26 additions & 28 deletions

File tree

.changeset/graceful-provider-fallback.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Changelog
22

3+
## 0.3.1
4+
5+
### Patch Changes
6+
7+
- 5680f2e: fix: Add retry logic and serialized installation for reliable provider initialization
8+
9+
Fixes issue #72 where version 0.3.0 appeared "completely broken" due to race conditions in parallel package installations causing Bun cache corruption.
10+
11+
Root Cause:
12+
- When multiple provider packages (e.g., @ai-sdk/openai-compatible, @ai-sdk/openai) are installed concurrently, they can cause race conditions in Bun's package cache
13+
- This leads to "FileNotFound: failed copying files from cache" errors on first run after update
14+
15+
Changes:
16+
- Add write lock to serialize package installations (prevents concurrent bun add commands)
17+
- Add retry logic with up to 3 attempts for cache-related errors
18+
- Improve error detection to catch ENOENT, EACCES, EBUSY errors
19+
- Add delay between retries to allow filesystem operations to complete
20+
21+
Impact:
22+
- opencode/grok-code remains the default provider and works reliably
23+
- Agent handles transient cache issues gracefully with automatic retries
24+
- Better stability during first run after installation/update
25+
326
## 0.3.0
427

528
### Minor Changes

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@link-assistant/agent",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "A minimal, public domain AI CLI agent compatible with OpenCode's JSON interface. Bun-only runtime.",
55
"main": "src/index.js",
66
"type": "module",

0 commit comments

Comments
 (0)