Description
On Windows, both the bundled CLI and Desktop clients invoke Git with:
-c core.autocrlf=false
-c core.symlinks=true
These command-scoped options override system, global, and repository-local Git configuration. This conflicts with common Git for Windows settings such as:
core.autocrlf=true
core.symlinks=false
As a result, OpenCode may report line-ending-only changes that do not appear when Git is invoked normally. It may also force symlink behavior that is unsupported or explicitly disabled on the user's system.
Plugins
No plugins
OpenCode version
1.18.3
Steps to reproduce
-
Configure Git for CRLF working-tree files with symlinks disabled:
git config --global core.autocrlf true
git config --global core.symlinks false
-
Clone or check out a repository using Git for Windows.
-
Confirm that the repository is clean:
-
Open the repository in OpenCode CLI or Desktop.
-
Trigger an internal Git operation, such as status inspection, diff generation, review, snapshot capture, or snapshot restore.
-
Observe line-ending-only changes or other differences not reported by normal Git commands.
The behavior can be approximated with:
git -c core.autocrlf=false -c core.symlinks=true diff
Screenshot and/or share link
Operating System
Windows 10
Terminal
Windows Terminal, Powershell 7
Description
On Windows, both the bundled CLI and Desktop clients invoke Git with:
These command-scoped options override system, global, and repository-local Git configuration. This conflicts with common Git for Windows settings such as:
As a result, OpenCode may report line-ending-only changes that do not appear when Git is invoked normally. It may also force symlink behavior that is unsupported or explicitly disabled on the user's system.
Plugins
No plugins
OpenCode version
1.18.3
Steps to reproduce
Configure Git for CRLF working-tree files with symlinks disabled:
Clone or check out a repository using Git for Windows.
Confirm that the repository is clean:
Open the repository in OpenCode CLI or Desktop.
Trigger an internal Git operation, such as status inspection, diff generation, review, snapshot capture, or snapshot restore.
Observe line-ending-only changes or other differences not reported by normal Git commands.
The behavior can be approximated with:
Screenshot and/or share link
Operating System
Windows 10
Terminal
Windows Terminal, Powershell 7