Skip to content

Commit 096710a causes issues by writing over the system-wide .gitignore file #3109

Closed

Description

@arsham

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.

Activity

  1. rekram1-node commented on Oct 12, 2025

    @rekram1-node
    Collaborator

    just curious why is there a .gitignore in that dir at all? are you syncing it to github or something

  2. self-assigned this
    on Oct 12, 2025
  3. arsham commented on Oct 12, 2025

    @arsham
    Author

    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.

  4. rekram1-node commented on Oct 12, 2025

    @rekram1-node
    Collaborator

    gotcha, just wanted to make sure it was for syncing and there wasn't a misunderstanding about expectations.

    That makes sense thank u

  5. malhashemi commented on Oct 13, 2025

    @malhashemi
    Contributor

    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

  6. rekram1-node commented on Oct 14, 2025

    @rekram1-node
    Collaborator

    should be fixed in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions