Skip to content

Flaky test in test/tool/shell.test.ts (falls back from terminal-only) #29214

@jjdubski

Description

@jjdubski

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

  1. Run bun test inside the packages/opencode directory
  2. 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

Image

Operating System

macOS 26.5

Terminal

zsh, default macOS terminal

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions