Skip to content

Opencode crashes the entire terminal session right after open #1220

Closed as not planned

Description

@brunobmello25

Here is a video showcasing the bug. this is happening on every directory I open, even if it's not a git repo

bug-opencode.mp4

opencode current version: 0.3.51
first version I've seen this bug happen: 0.3.28
terminal used: kitty with tmux

solutions attempted: everytime this bug happens, deleting the ~/.opencode folder fixes the problem, but after a while it starts happening again

Not sure how to get opencode crash logs, but i can put them here if needed

Activity

  1. brunobmello25 commented on Jul 22, 2025

    @brunobmello25
    Author

    ran with opencode --log-level DEBUG --print-logs &> logs.txt and got this output:

    INFO  2025-07-22T16:05:33 +47ms service=default version=0.3.51 args=["--log-level","DEBUG","--print-logs"] opencode
    INFO  2025-07-22T16:05:33 +0ms service=app cwd=/home/hidden.user/.dotfiles creating
    INFO  2025-07-22T16:05:33 +1ms service=app git=/home/hidden.user/.dotfiles git
    INFO  2025-07-22T16:05:33 +0ms service=bus type=storage.write subscribing
    INFO  2025-07-22T16:05:33 +0ms service=app name=bus registering service
    INFO  2025-07-22T16:05:33 +0ms service=format init
    INFO  2025-07-22T16:05:33 +0ms service=bus type=file.edited subscribing
    INFO  2025-07-22T16:05:33 +0ms service=config.hooks init
    INFO  2025-07-22T16:05:33 +0ms service=bus type=file.edited subscribing
    INFO  2025-07-22T16:05:33 +0ms service=bus type=session.idle subscribing
    INFO  2025-07-22T16:05:33 +0ms service=app name=lsp registering service
    INFO  2025-07-22T16:05:33 +1ms service=app name=provider registering service
    INFO  2025-07-22T16:05:33 +0ms service=app name=config registering service
    INFO  2025-07-22T16:05:33 +1ms service=config username=hidden.user loaded
    INFO  2025-07-22T16:05:33 +1ms service=models.dev refreshing
    INFO  2025-07-22T16:05:33 +0ms service=provider init
    INFO  2025-07-22T16:05:33 +2ms service=provider providerID=anthropic found
    INFO  2025-07-22T16:05:33 +0ms service=provider providerID=openai found
    INFO  2025-07-22T16:05:33 +3ms service=default cmd=["/home/hidden.user/.cache/opencode/tui/tui-2ns50tbe."] tui
    INFO  2025-07-22T16:05:33 +0ms service=app name=mode registering service
    INFO  2025-07-22T16:05:33 +19ms service=server method=GET path=/config request
    INFO  2025-07-22T16:05:33 +1ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +1ms service=tui app={"hostname":"<HIDDEN>","time":{},"git":true,"path":{"config":"/home/hidden.user/.config/opencode","state":"/home/hidden.user/.local/state/opencode","data":"/home/hidden.user/.local/share/opencode/project/home-hidden.user--dotfiles","root":"/home/hidden.user/.dotfiles","cwd":"/home/hidden.user/.dotfiles"}} modes=[{"name":"build","tools":{}},{"name":"plan","tools":{"write":false,"edit":false,"patch":false}}] TUI launched
    INFO  2025-07-22T16:05:33 +0ms service=server duration=1 response
    INFO  2025-07-22T16:05:33 +2ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui tool=xclip Clipboard tool found
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    �[?2004h�[?1002h�[?1006h�[>4;1m�[?4m�[>1u�[?uINFO  2025-07-22T16:05:33 +5ms service=server method=GET path=/file/status request
    INFO  2025-07-22T16:05:33 +2ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui config={"$schema":"","autoshare":false,"autoupdate":false,"disabled_providers":[],"experimental":{"hook":{"file_edited":{},"session_completed":[]}},"instructions":[],"keybinds":{"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_revert":"","model_list":"","project_init":"","session_compact":"","session_export":"","session_interrupt":"","session_list":"","session_new":"","session_share":"","session_unshare":"","switch_mode":"","switch_mode_reverse":"","theme_list":"","tool_details":""},"layout":"","log_level":"","mcp":{},"mode":{"build":{"model":"","prompt":"","tools":{}},"plan":{"model":"","prompt":"","tools":{}}},"model":"","provider":{},"share":"","small_model":"","theme":"","username":"hidden.user"} Loaded config
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=GET path=/event request
    INFO  2025-07-22T16:05:33 +0ms service=server event connected
    INFO  2025-07-22T16:05:33 +1ms service=bus type=* subscribing
    INFO  2025-07-22T16:05:33 +1ms service=server duration=2 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=GET path=/config/providers request
    INFO  2025-07-22T16:05:33 +1ms service=server duration=1 response
    INFO  2025-07-22T16:05:33 +2ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 home.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +1ms service=tui timeTakenMs=0 app.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=1 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=tea.ColorProfileMsg timeTakenMs=0 messages.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=tea.ColorProfileMsg timeTakenMs=0 app.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +1ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 home.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    �]11;?��[?1004h�[?1049h�[?25l�[H�[2JINFO  2025-07-22T16:05:33 +19ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 app.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +2ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=tea.WindowSizeMsg timeTakenMs=0 messages.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server duration=30 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=tea.WindowSizeMsg timeTakenMs=0 app.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 messages.renderView
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +1ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 home.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 app.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=tea.EnvMsg timeTakenMs=0 messages.Update
    INFO  2025-07-22T16:05:33 +1ms service=server duration=1 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=tea.EnvMsg timeTakenMs=0 app.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 home.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 app.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +1ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=opencode.EventListResponseEventLspClientDiagnostics timeTakenMs=0 messages.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=opencode.EventListResponseEventLspClientDiagnostics timeTakenMs=0 app.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 home.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 app.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +1ms service=tui from=chat.renderCompleteMsg timeTakenMs=0 messages.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=chat.renderCompleteMsg timeTakenMs=0 app.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 home.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 app.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +1ms service=tui from=tea.sequenceMsg timeTakenMs=0 messages.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=tea.sequenceMsg timeTakenMs=0 app.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 home.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 app.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +1ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=dialog.ShowInitDialogMsg timeTakenMs=0 messages.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=dialog.ShowInitDialogMsg timeTakenMs=0 app.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 home.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 app.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +1ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=tea.backgroundColorMsg timeTakenMs=0 messages.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=tea.backgroundColorMsg timeTakenMs=0 app.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 home.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 app.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=app.ModelSelectedMsg timeTakenMs=0 messages.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +1ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=app.ModelSelectedMsg timeTakenMs=0 app.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 home.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui file=/home/hidden.user/.local/state/opencode/tui State saved to file
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 app.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=spinner.TickMsg timeTakenMs=0 messages.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +1ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=spinner.TickMsg timeTakenMs=0 app.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 home.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 app.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=tea.enableModeMsg timeTakenMs=0 messages.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=tea.enableModeMsg timeTakenMs=0 app.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +1ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 home.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 app.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +306ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +1ms service=tui from=spinner.TickMsg timeTakenMs=0 messages.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=1 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui from=spinner.TickMsg timeTakenMs=0 app.Update
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +1ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +0ms service=tui timeTakenMs=0 home.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:33 +0ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:33 +1ms service=tui timeTakenMs=1 app.View
    INFO  2025-07-22T16:05:33 +0ms service=server duration=1 response
    INFO  2025-07-22T16:05:34 +188ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:34 +0ms service=tui from=cursor.BlinkMsg timeTakenMs=0 messages.Update
    INFO  2025-07-22T16:05:34 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:34 +1ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:34 +0ms service=tui from=cursor.BlinkMsg timeTakenMs=0 app.Update
    INFO  2025-07-22T16:05:34 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:34 +1ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:34 +0ms service=tui timeTakenMs=0 home.View
    INFO  2025-07-22T16:05:34 +0ms service=server duration=0 response
    INFO  2025-07-22T16:05:34 +1ms service=server method=POST path=/log request
    DEBUG 2025-07-22T16:05:34 +0ms service=tui timeTakenMs=1 app.View
    INFO  2025-07-22T16:05:34 +0ms service=server duration=0 response
    
  2. self-assigned this
    on Jul 22, 2025
  3. thdxr commented on Jul 22, 2025

    @thdxr
    Member

    does it happen only with the tui? fine with opencode run ?

  4. brunobmello25 commented on Jul 23, 2025

    @brunobmello25
    Author

    @thdxr i ended up deleting the folder again because i needed to use the tool again, but as soon as i can reproduce this issue again i'll test this out for you

  5. brunobmello25 commented on Jul 23, 2025

    @brunobmello25
    Author

    @thdxr it happened again and now I can confirm: only happening with the TUI. with opencode run it runs fine

  6. brunobmello25 commented on Aug 6, 2025

    @brunobmello25
    Author

    @thdxr not sure if it's related or not, but everytime that this happens, I try to update opencode by running the install script again (with curl -fsSL https://opencode.ai/install | bash) and I get this error:

    \033[0;31mFailed to fetch version information\033[0m
    

    after a few minutes, the install script starts working again. I'm just adding this here because, since opencode has a self update feature now, maybe this is related?

    after the script is back working, the session still crashes until i update it, so it might not be directly affecting this, but i still thought that you should know

  7. brunobmello25 commented on Aug 13, 2025

    @brunobmello25
    Author

    update: after more usage i stumbled across the same issue but on another context. instead of crashing as soon as I open the program, i was in the middle of typing out a prompt and it crashed. then when i tried opening up opencode again, it said that opencode is not a valid program, as if it was uninstalled. I ran the install script again and it installed version 0.4.42, which was release just the minute before

    I'm inclined to believe that this bug is related to the self update feature on opencode and some issue when fetching version information on github

  8. rekram1-node commented on Aug 13, 2025

    @rekram1-node
    Collaborator

    I've had a similar situation happen to what you just described^^ new install broke my opencode installation forcing me to delete and reinstall

  9. brunobmello25 commented on Aug 25, 2025

    @brunobmello25
    Author

    @thdxr this has been happening pretty much twice a day now, to the point where i always run curl -fsSL https://opencode.ai/install | bash before opening opencode just to make sure that it won't crash my entire tmux session

    any tips on how to get proper logs on this crashes? with that i could probably debug the crash cause from here

  10. rekram1-node commented on Aug 25, 2025

    @rekram1-node
    Collaborator

    hmm all logs go to ~/.local/share/opencode/log/...

    if you run:

    opencode debug paths
    

    it shows were all main paths are

    Haven't seen this specific issue (opencode crashes) before or heard anyone else report it...

  11. brunobmello25 commented on Aug 25, 2025

    @brunobmello25
    Author

    @rekram1-node thanks!

    I checked the logs on this directory but it doesn't seem to be anything crash related over there. pretty much all logs are basic info.

    I'll see if I can get a reproduceable state happening again, and when that happens i'll try to dump all files and folders into a docker container and see if it crashes from there. this way at least we might have some sort of reproduceable state

    just have to be careful not to leak my anthropic credentials in the process

  12. rekram1-node commented on Aug 25, 2025

    @rekram1-node
    Collaborator

    Is this happening only when a fresh version is available? it seems like the autoupdate is crashing your opencode instance to me?

  13. rekram1-node commented on Aug 25, 2025

    @rekram1-node
    Collaborator

    you could try (installing a previous version):

    curl -fsSL https://opencode.ai/install | VERSION=0.5.26 bash
    

    then run opencode and see if the auto update would kill it?

  14. brunobmello25 commented on Aug 25, 2025

    @brunobmello25
    Author

    @rekram1-node got it crashing with this approach! however, there isn't any relevant log in the logs directory about this crash

    I'll see if I can move this to a container so that it's easily reproduceable

  15. brunobmello25 commented on Dec 24, 2025

    @brunobmello25
    Author

    @rekram1-node hey, it's been a while, sorry about that. I ended up ditching AI agents for a bit and got back to it just recently.

    unfortunatelly, I couldn't reproduce this bug on a docker container or something similar, however it's still happening, and now it's constant: reinstalling it doesn't fix the issue.

    Here is a video showcasing the issue:

    opencode-crashing-2025-12-24_09.37.14.mp4

    As you can see, I install opencode and open it, only to have it crash right after. Right after installing, I check the executable path and it points to ~/.opencode/bin normally, however once it crashes, opencode is not on the path anymore.
    I forgot to show this part on the video, but if we run ls -la ~/.opencode/bin we can see that the folder is empty:

    Image

    Does the autoupdate process delete the old binary file? maybe we are crashing midway through and ending up in a broken, not installed state

  16. iamDrakkir commented on Feb 20, 2026

    @iamDrakkir

    have encountered the exact same issue several times. Previously, I resolved it by deleting OpenCode and reinstalling it a few days later, which would work temporarily.

    This time, I found this issue and just tried to update direcly. This time it went from version 1.2.6 to 1.2.9. Now it starts without crashing the terminal. I was able to run opencode run ... with version 1.2.6, but not the TUI.

    Unfortunately, I did not check the ~/.opencode/bin folder before updating.

    I will let you know if it caches on the next release as well.

  17. iamDrakkir commented on Feb 27, 2026

    @iamDrakkir

    Started crashing again with the new release.

    Image

    Let me know if i should test anything before i upgrade via the bash script.

  18. brunobmello25 commented on Feb 27, 2026

    @brunobmello25
    Author

    @iamDrakkir does it also crash running inside tmux?

    Over here, it crashes my entire tmux session as well as my terminal emulator.

  19. github-actions commented on Apr 29, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions