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
[Bug]: opencode overwriting files on startup #3145
Version: v0.15.0
Change introduced: “Ensured @opencode-ai/plugin is available in .opencode folder”
Description
Since v0.15.0, every time opencode starts it automatically overwrites several key project files, including:
• package.json
• bun.lock
• .gitignore
This happens even when these files already exist and contain valid project-specific dependencies or settings.
I understand the intent might be to ensure consistency within .opencode, but in practice it’s replacing the project’s own configuration each time.
Impact
I have multiple tools and plugins that rely on custom Bun dependencies.
With this new behavior, I have to revert those file change every single time I start opencode.
Questions
Is this the intended behavior?
Should I now have a dedicated package.json inside each tool/plugin directory to prevent opencode from touching the root files?
Expected Behavior
opencode should respect existing project configuration files and only modify them when explicitly needed — not overwrite them on startup.
Activity
rekram1-node commentedon Oct 13, 2025
yeah we need to fix this
This is a duplicate of: #3109