Description
Running the test will sometimes fail, seemingly at random. Perhaps it is a race condition? Or a system specific issue?
For me, it would fail about 1 out of every 5 runs
Current system information:
Model Identifier: MacBookAir10,1
Model Number: MGN63LL/A
Chip: Apple M1
Total Number of Cores: 8 (4 Performance and 4 Efficiency)
Memory: 8 GB
System Firmware Version: 18000.120.36
OS Loader Version: 18000.120.36
Plugins
None
OpenCode version
1.15.10
Steps to reproduce
- Run
bun test inside the packages/opencode directory
- For an isolated test, use
for i in 1 2 3 4 5; do echo "=== Run $i ===" && bun test --filter "falls back from terminal-only" test/tool/shell.test.ts 2>&1 | tail -5; done
Screenshot and/or share link
Operating System
macOS 26.5
Terminal
zsh, default macOS terminal
Description
Running the test will sometimes fail, seemingly at random. Perhaps it is a race condition? Or a system specific issue?
For me, it would fail about 1 out of every 5 runs
Current system information:
Model Identifier: MacBookAir10,1
Model Number: MGN63LL/A
Chip: Apple M1
Total Number of Cores: 8 (4 Performance and 4 Efficiency)
Memory: 8 GB
System Firmware Version: 18000.120.36
OS Loader Version: 18000.120.36
Plugins
None
OpenCode version
1.15.10
Steps to reproduce
bun testinside the packages/opencode directoryfor i in 1 2 3 4 5; do echo "=== Run $i ===" && bun test --filter "falls back from terminal-only" test/tool/shell.test.ts 2>&1 | tail -5; doneScreenshot and/or share link
Operating System
macOS 26.5
Terminal
zsh, default macOS terminal