Repository navigation
Closed
Labels
bugSomething isn't workingSomething isn't workingperfIndicates a performance issue or need for optimizationIndicates a performance issue or need for optimization
Description
Description
Box with error "Unexpected EOF" in the upper right.
zsh: trace trap opencode
OpenCode version
0.15.29
Steps to reproduce
- Launch opencode
(no further action needed)
Logs show nothing interesting:
DEBUG 2025-10-30T11:23:01 +1ms service=tui TUI launched
INFO 2025-10-30T11:23:01 +5ms service=server method=GET path=/command request
INFO 2025-10-30T11:23:01 +0ms service=server duration=0 response
DEBUG 2025-10-30T11:23:01 +1ms service=tui config={"$schema":"","agent":{"build":{"description":"","disable":false,"mode":"","model":"","permission":{"edit":"","webfetch":""},"prompt":"","temperature":0,"tools":{},"top_p":0},"general":{"description":"","disable":false,"mode":"","model":"","permission":{"edit":"","webfetch":""},"prompt":"","temperature":0,"tools":{},"top_p":0},"plan":{"description":"","disable":false,"mode":"","model":"","permission":{"edit":"","webfetch":""},"prompt":"","temperature":0,"tools":{},"top_p":0}},"autoshare":false,"autoupdate":false,"command":{},"disabled_providers":[],"experimental":{"disable_paste_summary":false,"hook":{"file_edited":{},"session_completed":[]}},"formatter":{},"instructions":[],"keybinds":{"agent_cycle":"","agent_cycle_reverse":"","agent_list":"","app_exit":"","app_help":"","editor_open":"","file_close":"","file_diff_toggle":"","file_list":"","file_search":"","input_clear":"","input_newline":"","input_paste":"","input_submit":"","leader":"ctrl+x","messages_copy":"","messages_first":"","messages_half_page_down":"","messages_half_page_up":"","messages_last":"","messages_layout_toggle":"","messages_next":"","messages_page_down":"","messages_page_up":"","messages_previous":"","messages_redo":"","messages_revert":"","messages_undo":"","model_cycle_recent":"","model_cycle_recent_reverse":"","model_list":"","project_init":"","session_child_cycle":"","session_child_cycle_reverse":"","session_compact":"","session_export":"","session_interrupt":"","session_list":"","session_new":"","session_share":"","session_timeline":"","session_unshare":"","switch_agent":"","switch_agent_reverse":"","switch_mode":"","switch_mode_reverse":"","theme_list":"","thinking_blocks":"","tool_details":""},"layout":"","lsp":{},"mcp":{},"mode":{"build":{"description":"","disable":false,"mode":"","model":"","permission":{"edit":"","webfetch":""},"prompt":"","temperature":0,"tools":{},"top_p":0},"plan":{"description":"","disable":false,"mode":"","model":"","permission":{"edit":"","webfetch":""},"prompt":"","temperature":0,"tools":{},"top_p":0}},"model":"","permission":{"edit":"","webfetch":""},"plugin":[],"provider":{},"share":"","small_model":"","snapshot":false,"theme":"","tools":{},"tui":{"scroll_speed":0},"username":"morbo","watcher":{"ignore":[]}} Loaded config
INFO 2025-10-30T11:23:01 +0ms service=server method=GET path=/file/status request
INFO 2025-10-30T11:23:01 +0ms service=tui commands={"agent_cycle":{},"agent_cycle_reverse":{},"agent_list":{},"app_exit":{},"app_help":{},"editor_open":{},"input_clear":{},"input_newline":{},"input_paste":{},"input_submit":{},"messages_copy":{},"messages_first":{},"messages_half_page_down":{},"messages_half_page_up":{},"messages_last":{},"messages_page_down":{},"messages_page_up":{},"messages_redo":{},"messages_undo":{},"model_cycle_recent":{},"model_cycle_recent_reverse":{},"model_list":{},"project_init":{},"session_child_cycle":{},"session_child_cycle_reverse":{},"session_compact":{},"session_export":{},"session_interrupt":{},"session_list":{},"session_new":{},"session_share":{},"session_timeline":{},"session_unshare":{},"theme_list":{},"thinking_blocks":{},"tool_details":{}} Loaded commands
INFO 2025-10-30T11:23:01 +1ms service=server method=GET path=/event request
INFO 2025-10-30T11:23:01 +0ms service=server event connected
INFO 2025-10-30T11:23:01 +0ms service=bus type=* subscribing
INFO 2025-10-30T11:23:01 +1ms service=server duration=1 response
INFO 2025-10-30T11:23:01 +0ms service=server method=GET path=/tui/control/next request
INFO 2025-10-30T11:23:01 +0ms service=server method=GET path=/config/providers request
INFO 2025-10-30T11:23:01 +1ms service=server duration=1 response
DEBUG 2025-10-30T11:23:01 +2ms service=tui model=deepseek-chat provider=deepseek Selected model from recent usage
DEBUG 2025-10-30T11:23:01 +6ms service=tui timeTakenMs=0 messages.renderView
DEBUG 2025-10-30T11:23:01 +6ms service=tui file=/Users/morbo/.local/state/opencode/tui State saved to file
DEBUG 2025-10-30T11:23:01 +5ms service=tui color=#ffffff isDark=false Background color
DEBUG 2025-10-30T11:23:01 +4ms service=tui timeTakenMs=0 messages.renderView
DEBUG 2025-10-30T11:23:01 +0ms service=tui file=/Users/morbo/.local/state/opencode/tui State saved to file
Screenshot and/or share link
No response
Operating System
macOS 26.0.1
Terminal
iTerm2 3.6.5
Reacted by Lucas
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingperfIndicates a performance issue or need for optimizationIndicates a performance issue or need for optimization
Activity
github-actions commentedon Oct 30, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 30, 2025
does this happen on 0.15.28 too?
gcp commentedon Oct 30, 2025
Yes.
rekram1-node commentedon Oct 30, 2025
hm okay, is it possible to show a full log dump of:
opencode run hello --print-logs
gcp commentedon Oct 30, 2025
opencode run hello --print-logsHere things just hang.
rekram1-node commentedon Oct 30, 2025
may be something with the deepseek provider, curious
gcp commentedon Oct 30, 2025
I initially hit this while trying to use LM Studio with a local LLM, I then moved away my opencode config to check if that was the problem, but clearly it wasn't.
gcp commentedon Oct 30, 2025
~/.local/share/opencode/auth.jsonhas a DeepSeek API key as the first thing in it, so (random guess) that's why it is being defaulted after I removed my config?rekram1-node commentedon Oct 30, 2025
Yeah it is, hm one other thing to try:
opencode run hello --print-logs --model opencode/grok-codegcp commentedon Oct 30, 2025
opencode run hello --print-logs --model opencode/grok-coderekram1-node commentedon Oct 30, 2025
Wow so all of them hang, that's interesting...
gcp commentedon Oct 30, 2025
Hmm, running it in a freshly made dir makes the problem go away, but there's nothing related to opencode in the dir where this hangs. Relevant stuff:
rekram1-node commentedon Oct 30, 2025
Can u tell me anything about the dir it did hang in? I bet ripgrep was hanging for some reason
Was it a git project? Was it a large dir with a lot of subdirectories, etc
gcp commentedon Oct 30, 2025
ripgrep returns instantly in this dir (i.e. searches take milliseconds). It's a Rust project. There's 23G there, but 18G of that are just Rust compilation artifacts.
You gave me an idea: there is a 3G textfile in the project. If I move it out of the working dir, opencode launches.
gcp commentedon Oct 30, 2025
Okay, having that textfile anywhere in the project dir (even subdirs) makes opencode die.
That explains why this problem suddenly occured, it's RL training data that was recently generated.
rekram1-node commentedon Oct 30, 2025
Ah interesting, something in our code is doing excessive work then, that shouldn't cause a hang. We will need to look into it
gcp commentedon Oct 30, 2025
Note the original issue is an actual crash, but I can imagine something trying to process that file and hitting a 2GB or 4GB limit or something.
rekram1-node commentedon Oct 30, 2025
Noted, thanks for helping us get to the bottom of this!
Sawangg commentedon Oct 31, 2025
Note that I ran into the same issue by having a cloud image of over 2G of in the working directory of opencode. It would crash the TUI instantly when starting a conversation with the error "Unexpected EOF"
ry2009 commentedon Dec 9, 2025
This should stop the problem:
ry2009#5
rekram1-node commentedon Dec 9, 2025
@ry2009 commented on ur pr