Skip to content

TUI/server hangs at "project copy refresh started" on any git project (ARM64), input can't be submitted #42857

Closed as not planned

Description

@Griffindorr

Description

On this machine (aarch64, devpod container, Debian 13), opencode's server never finishes booting in ANY directory that resolves to a git project: the log (~/.local/share/opencode/log/opencode.log) stops at message="project copy refresh started" and no session is ever created. The TUI renders ("Ask anything..." input box is visible) but Enter cannot submit any prompt because there is no active session. Running opencode in a non-git directory (e.g. $HOME, project global) works fine.

The hang is a JS-level deadlock: after all git commands complete successfully, the process keeps all 15 threads blocked in futex/clock_nanosleep/epoll (timer-retry pattern, ~38% CPU), no file I/O, no child processes. Reproduces regardless of: project content (even a brand-new empty git repo), fresh data dir (XDG_DATA_HOME), fresh DB (OPENCODE_DB), filesystem (overlay and ZFS both), "snapshots": false config, and version (1.18.17 and 1.18.18 both hang). Another x86_64 host with the same version has no such problem, so this looks environment/arch-specific (possibly Bun runtime on ARM64).

Plugins

None (only @opencode-ai/plugin installed, no plugins configured)

OpenCode version

1.18.18 (also reproduced on 1.18.17)

Steps to reproduce

  1. On an ARM64 Linux (devpod) host, create a fresh empty git repo: mkdir /tmp/t && cd /tmp/t && git init && echo x > a.txt && git add -A && git commit -m init
  2. Run opencode
  3. Type a prompt and press Enter — nothing happens; no response ever
  4. Check the log ~/.local/share/opencode/log/opencode.log — it ends with message="project copy refresh started" projectID=... and never logs booting location services
  5. Repeat from a non-git dir (e.g. $HOME) — works fine

Screenshot and/or share link

No screenshot available (headless container). The TUI does render fully when hung — input box shows "Ask anything...", model/agent bar renders, but no session ever starts, and Enter does nothing.
Key log evidence (~/.local/share/opencode/log/opencode.log) — boot stops forever right after the project copy refresh starts, only for git projects:

HANGING (git project):

timestamp=2026-08-16T03:51:45.430Z level=INFO run=98996fe2 message=init count=1
timestamp=2026-08-16T03:51:45.964Z level=INFO run=98996fe2 message="watcher backend" directory=/home/h3240105662/hpc101/src/lab4 platform=linux backend=inotify
timestamp=2026-08-16T03:51:45.977Z level=INFO run=98996fe2 message="project copy refresh started" projectID=0504f47a1f4391196f0785da377ce75b97055275

(nothing after — no "project copy refresh done", no "booting location services", no session created)

WORKING (non-git dir, same version):

timestamp=2026-08-16T05:30:26.447Z level=INFO run=061316ae message="project copy refresh started" projectID=global
timestamp=2026-08-16T05:30:26.451Z level=INFO run=061316ae message="project copy refresh done" projectID=global updated=[] removed=[]
timestamp=2026-08-16T05:30:26.553Z level=INFO run=061316ae message="booting location services" directory=/home/h3240105662 workspaceID=undefined
strace of the hung process: all spawned git commands (rev-parse, worktree list --porcelain, etc.) exit 0 successfully; afterwards the process's 15 threads sit permanently in futex/clock_nanosleep/epoll_pwait2 (~38% CPU, no file I/O, no child processes) — a JS-level deadlock with timer retries.

Operating System

Debian 13 (trixie), Linux aarch64 (ARM64), devpod container

Terminal

Alacritty (any terminal; reproduces under script too)

Activity

  1. github-actions commented on Aug 16, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    The ARM64/aarch64 angle may be a new dimension worth noting separately, but the core hang pattern is well-documented in those issues.

  2. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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