Skip to content

Windows regression: opening a Git repo as workspace root fails with ENAMETOOLONG and breaks /sessions #22557

@jimoningwan

Description

@jimoningwan

Description

I’m seeing what looks like an OpenCode bug on Windows when starting directly inside a project directory that is also the Git repository root.
Observed behavior:

  • Starting OpenCode inside the repo root fails immediately
  • Any prompt fails, regardless of content
  • /sessions returns an empty list in the broken state
  • Starting OpenCode from the parent directory works normally
  • If I rename .git to .git.bak, starting OpenCode inside the exact same project directory works normally again
Image

Plugins

No response

OpenCode version

1.4.4

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 10

Terminal

warp

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

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