Skip to content

[CRITICAL] opencode crashes when launched from deeply nested directories on Windows #22573

@swpuchenxinde

Description

@swpuchenxinde

Description

Critical Bug - Application Unusable

Severity: Critical - Application completely crashes and becomes unusable

opencode crashes immediately when launched from a directory with a deeply nested path structure on Windows 11. The application fails to start and throws an error, making it completely unusable in such scenarios.

Suspected cause: Directory path depth issue - when the working directory path is too deep, opencode crashes upon startup.

This is a critical bug that completely prevents users from using opencode in certain working directories. Users working in deeply nested project structures cannot use the application at all.

Please prioritize fixing this issue as it renders the application completely unusable for affected users.

Plugins

No response

OpenCode version

1.4.4

Steps to reproduce

  1. Navigate to a deeply nested directory on Windows 11 (e.g., multiple subdirectory levels)
  2. Run opencode command
  3. Application crashes immediately with error
  4. Application fails to start and becomes unusable

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)windows

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