Skip to content

[Bug] Failed to initialize OpenTUI: Error 126 (Module not found) on Windows #22543

@talkhello

Description

@talkhello

Description

opencode --print-logs
INFO 2026-04-15T03:08:50 +378ms service=default version=1.4.4 args=["--print-logs"] opencode
INFO 2026-04-15T03:08:50 +6ms service=default directory=C:\Users\wangmianjie creating instance
INFO 2026-04-15T03:08:50 +6ms service=project directory=C:\Users\wangmianjie fromDirectory
INFO 2026-04-15T03:08:50 +9ms service=db path=C:\Users\wangmianjie.local\share\opencode\opencode.db opening database
INFO 2026-04-15T03:08:50 +28ms service=db count=12 mode=bundled applying migrations
INFO 2026-04-15T03:08:50 +31ms service=file init
INFO 2026-04-15T03:08:50 +26ms service=config path=C:\Users\wangmianjie.config\opencode\config.json loading
INFO 2026-04-15T03:08:50 +1ms service=config path=C:\Users\wangmianjie.config\opencode\opencode.json loading
INFO 2026-04-15T03:08:50 +6ms service=config path=C:\Users\wangmianjie.config\opencode\opencode.jsonc loading
ERROR 2026-04-15T03:08:50 +10ms service=default e=Failed to initialize OpenTUI render library: Failed to open library "B:/~BUN/root/opentui-2q8rnfnn.dll": error code 126 rejection
ERROR 2026-04-15T03:08:50 +0ms service=default error=Failed to initialize OpenTUI render library: Failed to open library "B:/~BUN/root/opentui-2q8rnfnn.dll": error code 126 process error

Plugins

no

OpenCode version

1.3.1

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

windows11

Terminal

windows

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions