Not handling file descriptors correctly on Mac causing it to max limit #5578

Open
opened 2026-02-16 17:54:20 -05:00 by yindo · 0 comments
Owner

Originally created by @shahid0 on GitHub (Jan 14, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

error: An unknown error occurred, possibly due to low max file descriptors (Unexpected)

Current limit: 256

To fix this, try running:

ulimit -n 2147483646

If that still doesn't work, you may need to run:

sudo launchctl limit maxfiles 2147483646

had the same issue without plugins as well, this error comes when i try to open anything on my mac and open code just say error error with the currently running instance

Plugins

oh-my-open-code, antigravity-auth,codex-auth

OpenCode version

i was not able to check as it wont let me until i reboot my system, and after reboot it was 1.1.19, but the issues presisted in old versions and i think bug appeared i was on the older version but it got udpated

Steps to reproduce

Happens randomly i don't know about the conditions my self

Screenshot and/or share link

No response

Operating System

Mac OS

Terminal

Ghostty and native Mac Terminal

Originally created by @shahid0 on GitHub (Jan 14, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description error: An unknown error occurred, possibly due to low max file descriptors (Unexpected) Current limit: 256 To fix this, try running: ulimit -n 2147483646 If that still doesn't work, you may need to run: sudo launchctl limit maxfiles 2147483646 had the same issue without plugins as well, this error comes when i try to open anything on my mac and open code just say error error with the currently running instance ### Plugins oh-my-open-code, antigravity-auth,codex-auth ### OpenCode version i was not able to check as it wont let me until i reboot my system, and after reboot it was 1.1.19, but the issues presisted in old versions and i think bug appeared i was on the older version but it got udpated ### Steps to reproduce Happens randomly i don't know about the conditions my self ### Screenshot and/or share link _No response_ ### Operating System Mac OS ### Terminal Ghostty and native Mac Terminal
yindo added the bug label 2026-02-16 17:54:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5578