Skip to content

Conversation

@shantur
Copy link
Contributor

@shantur shantur commented Dec 11, 2025

Seen on macOS Sequoia 15.7.2 . Probably bug in Bun. writing directly to process.stderr works around it. Tested with Bun 1.3.4.

The bug is only seen when process stderr is piped to another process such as tee like

bun run dev -- serve --port 0 --print-logs --log-level INFO 2>&1 | tee -a test.log

And then sending api request to trigger error logs

Seen on macOS Sequoia 15.7.2 . Probably bug in Bun. writing directly to process.stderr works around it. Tested with Bun 1.3.4.

The bug is only seen when process stderr is piped to another process such as tee like

bun run dev -- serve --port 0 --print-logs --log-level INFO 2>&1 | tee -a test.log

And then sending api request to trigger error logs
@rekram1-node rekram1-node changed the title workaround: Writing to Bun.stderr causes CPU pinning to 100%. fix: Writing to Bun.stderr causes CPU pinning to 100%. Dec 11, 2025
@rekram1-node rekram1-node merged commit 755a79c into sst:dev Dec 11, 2025
0 of 3 checks passed
shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 11, 2025
* wip: lander updates

* wip: lander updates

* wip: lander updates

* wip: lander updates

* ignore: Comment out plugin entry in opencode.jsonc

Comment out the plugin entry in opencode.jsonc

* chore: format code

* wip: downloads

* write typescript artifacts to node_modules/.ts-dist

* wip: lander hero updates

* wip: hero and nav updates

* ignore: update download stats 2025-12-11

* wip: lander updates

* fix: change terminal title to OpenCode

* chore: format code

* wip: add more items to download

* wip: add faq to download

* wip(desktop): progress

* wip(desktop): progress

* wip(desktop): progress

* wip(desktop): progress

* wip(desktop): progress

* wip(desktop): progress

* fix: missing font

* fix: load fonts the right way

* wip: social share image

* tauri: always build cli in predev

* wip: update lander video

* Fix / Improve Github Eyes Reaction Removal (sst#5383)

* Add ripgrep to Docker image (sst#5379)

* fix bug causing windows builds to sometimes fail

* fix: inverted text colors

* allow custom mappings for all textarea actions via config

* chore: format code

* Update Nix flake.lock and hashes

* align default input keybinds

* ci: enable tauri desktop app to be published with GitHub release ID and tag name

* release: v1.0.147

* chore: format code

* fix share image

* ci: fix tauri release asset naming to use opencode-desktop-[platform]-[arch][ext] format

* release: v1.0.148

* chore: format code

* temporarily remove undo/redo keybinds

* release: v1.0.149

* ci: use Blacksmith runners for Linux and Windows Tauri builds to improve build performance

* chore: format code

* fix: free cta

* wip: avatar colors

* ci

* chore: format code

* ci: install libglib2.0-dev on Blacksmith Linux runners to fix missing glib-2.0 system library error

* fix super modifier parsing

* chore: format code

* ci: fix Ubuntu host detection in Tauri build workflow

* wip: lander updates

* chore: format code

* ci

* wip(desktop): progress

* wip(desktop): progress

* wip(desktop): progress

* wip(desktop): progress

* wip(desktop): progress

* fix: Writing to Bun.stderr causes CPU pinning to 100%. (sst#5396)

* fix

* ci

* release: v1.0.150

* sync: merge upstream v1.0.150 into integration

Resolved conflicts:
- packages/opencode/package.json: Updated version to 1.0.150
- packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx: Accepted upstream changes, restored double Ctrl+C exit feature (PR sst#4900)
- packages/opencode/src/config/config.ts: Accepted upstream changes with super keybinds, preserved header_toggle and session_parent keybinds
- script/publish.ts: Preserved fork-specific comment
- .github/workflows/publish.yml: Removed (deleted in fork)
- packages/ui/src/components/input.css: Removed (deleted upstream)
- packages/ui/src/components/input.tsx: Removed (deleted upstream)
- packages/desktop/src/context/layout.tsx: Restored fork's font/theme support
- packages/desktop/src/components/font-picker.tsx: Updated to use new items function signature
- packages/desktop/src/components/theme-picker.tsx: Updated to use new items function signature
- bun.lock: Regenerated
- All package.json files: Accepted upstream version bumps
- Desktop, console, enterprise files: Accepted upstream

Preserved fork features:
- PR sst#4900: Double Ctrl+C to exit
- PR sst#4865: session_parent keybind
- Fork feature: header_toggle keybind
- Fork feature: Desktop font and theme pickers

* chore: format code

---------

Co-authored-by: David Hill <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Brendan Allan <[email protected]>
Co-authored-by: Adam <[email protected]>
Co-authored-by: Daniel Polito <[email protected]>
Co-authored-by: GDR! <[email protected]>
Co-authored-by: Dax Raad <[email protected]>
Co-authored-by: Sebastian Herrlinger <[email protected]>
Co-authored-by: opencode <[email protected]>
Co-authored-by: Shantur Rathore <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 11, 2025
Merge origin/dev containing:
- v1.0.150 release
- fix: Writing to Bun.stderr causes CPU pinning to 100% (sst#5396)
- feat: add caching for opencode binary in GitHub Actions (sst#5384)
- add experimental.chat.messages.transform hook (sst#5207)

This merge preserves all local fork customizations:
- Night Owl theme and OpenCode theme
- AsciiMark/AsciiLogo branding
- Font/Theme pickers in header
- Go-to-parent session navigation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants