You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 096710a causes issues by writing over the system-wide .gitignore file #3109
After the changes in 096710a commit, when I run opencode in any places other than ~/.config/opencode/ location, it completely rewrites the ~/.config/opencode/.gitignore file, causing some issues when you have manual ignore rules.
I keep my config in a git repository locally (not on github) to track changes. Some MCPs I use create some additional files that I don't want tracking in the repo, that's why I have a .gitignore file.
Just want to highlight that package.json gets rewritten as well meaning any plugins and tools that import external libraries are getting their dependencies rewritten, same root cause as this but different impact as mentioned in #3145 . Thanks
Activity
rekram1-node commentedon Oct 12, 2025
just curious why is there a .gitignore in that dir at all? are you syncing it to github or something
arsham commentedon Oct 12, 2025
I keep my config in a git repository locally (not on github) to track changes. Some MCPs I use create some additional files that I don't want tracking in the repo, that's why I have a .gitignore file.
rekram1-node commentedon Oct 12, 2025
gotcha, just wanted to make sure it was for syncing and there wasn't a misunderstanding about expectations.
That makes sense thank u
malhashemi commentedon Oct 13, 2025
Just want to highlight that
package.jsongets rewritten as well meaning any plugins and tools that import external libraries are getting their dependencies rewritten, same root cause as this but different impact as mentioned in #3145 . Thanksrekram1-node commentedon Oct 14, 2025
should be fixed in next release