OpenCode hangs forever during startup in project with TypeScript error #7719

Open
opened 2026-02-16 18:08:01 -05:00 by yindo · 1 comment
Owner

Originally created by @clentfort on GitHub (Jan 27, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

In this project (extracted from a monorepo) OpenCode hangs forever during startup (does not show Input Box/Banner at all). The only way to exit opencode is to kill it via SIGKILL.

Removing either baseUrl or paths from tsconfig allows OpenCode to start.

Plugins

None

OpenCode version

1.1.36

Steps to reproduce

  1. Checkout repo
  2. Run opencode

Screenshot and/or share link

Well this is akward. Nothing to see.

Image

Operating System

Darwin NB25147.ad.sv.intern 24.6.0 Darwin Kernel Version 24.6.0: Wed Nov 5 21:32:34 PST 2025; root:xnu-11417.140.69.705.2~1/RELEASE_ARM64_T6020 arm64

Terminal

alacritty 0.16.1 (42f49ee), tmux 3.6a

Originally created by @clentfort on GitHub (Jan 27, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description In this project (extracted from a monorepo) OpenCode hangs forever during startup (does not show Input Box/Banner at all). The only way to exit opencode is to kill it via SIGKILL. Removing either `baseUrl` or `paths` from tsconfig allows OpenCode to start. ### Plugins None ### OpenCode version 1.1.36 ### Steps to reproduce 1. Checkout repo 2. Run opencode ### Screenshot and/or share link Well this is akward. Nothing to see. <img width="1284" height="1415" alt="Image" src="https://github.com/user-attachments/assets/91e5712a-ce8a-4fd7-ae3d-64e04b52928f" /> ### Operating System Darwin NB25147.ad.sv.intern 24.6.0 Darwin Kernel Version 24.6.0: Wed Nov 5 21:32:34 PST 2025; root:xnu-11417.140.69.705.2~1/RELEASE_ARM64_T6020 arm64 ### Terminal alacritty 0.16.1 (42f49ee), tmux 3.6a
yindo added the bugperf labels 2026-02-16 18:08:01 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 27, 2026):

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

  • #10484: OpenCode Attempts Package Installation on Startup Despite Auto-Update Being Disabled (similar startup hang behavior)
  • #8707: opencode CLI hangs on macOS 15 (Apple Silicon) – daemon fails to start (related startup initialization hang)
  • #5888: Opencode Hangs when used as CLI tool (general CLI hanging issues)
  • #8406: fix(mcp): connection hangs with non-standard SSE/HTTP servers which causes opencode to hang (related to initialization hangs)

The common theme appears to be startup initialization hangs with TypeScript configuration issues being a specific trigger in your case. The fact that removing either baseUrl or paths from tsconfig resolves the issue suggests this may be related to how OpenCode processes TypeScript path resolution during startup.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 27, 2026): This issue might be a duplicate of existing issues. Please check: - #10484: OpenCode Attempts Package Installation on Startup Despite Auto-Update Being Disabled (similar startup hang behavior) - #8707: opencode CLI hangs on macOS 15 (Apple Silicon) – daemon fails to start (related startup initialization hang) - #5888: Opencode Hangs when used as CLI tool (general CLI hanging issues) - #8406: fix(mcp): connection hangs with non-standard SSE/HTTP servers which causes opencode to hang (related to initialization hangs) The common theme appears to be **startup initialization hangs** with TypeScript configuration issues being a specific trigger in your case. The fact that removing either `baseUrl` or `paths` from tsconfig resolves the issue suggests this may be related to how OpenCode processes TypeScript path resolution during startup. Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7719