[PR #13178] fix(opencode): gitignore plan mode files #14544

Open
opened 2026-02-16 18:19:19 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13178

State: open
Merged: No


Plan mode writes markdown files to .opencode/plans, but they were showing up in git status for git-backed projects. This updates plan-mode entry logic to ensure .opencode/.gitignore contains plans/*.md so generated plan files stay untracked by default.

How I verified: reproduced the issue flow and confirmed the ignore rule is created/appended when entering plan mode in a git repository.

Fixes #13174

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13178 **State:** open **Merged:** No --- Plan mode writes markdown files to `.opencode/plans`, but they were showing up in git status for git-backed projects. This updates plan-mode entry logic to ensure `.opencode/.gitignore` contains `plans/*.md` so generated plan files stay untracked by default. How I verified: reproduced the issue flow and confirmed the ignore rule is created/appended when entering plan mode in a git repository. Fixes #13174
yindo added the pull-request label 2026-02-16 18:19:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14544