Skip to content

chore(gitignore): remove stray hand-maintained **/.codex/memories/ entry - #2009

Merged
dyoshikawa merged 1 commit into
mainfrom
resolve-issue-1980-codex-memories-gitignore
Jun 23, 2026
Merged

chore(gitignore): remove stray hand-maintained **/.codex/memories/ entry#2009
dyoshikawa merged 1 commit into
mainfrom
resolve-issue-1980-codex-memories-gitignore

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Follow-up to #1979, addressing finding #1 (mid) in #1980.

PR #1979 made codexcli fold non-root rules into the root AGENTS.md and stop emitting inert .codex/memories/* files. It correctly removed **/.codex/memories/ from the auto-generated # Generated by Rulesync section, but a stray **/.codex/memories/ line was left in the user-maintained zone of .gitignore (between docs/.vitepress/cache and the generated header).

Since gitignore-entries.ts / gitignore-derive.ts no longer reference codex/memories, the string is not in ALL_GITIGNORE_ENTRIES, so pnpm dev gitignore neither emits nor strips it — it is orphaned cruft. This removes it.

The remaining findings in #1980 are low/no-action: #2 (legacy .codex/memories/*.md no longer auto-cleaned — accepted tradeoff matching the grokcli/warp/deepagents precedent) and #3 (informational, excludeToolDir parity).

Verification

  • pnpm cicheck passes; pnpm dev gitignore reports "already up to date" (the removal is stable — the generator does not re-add the line), satisfying the gitignore-entries.test.ts / gitignore.test.ts not.toContain("**/.codex/memories/") assertions.

Closes #1980

Follow-up to #1979 (#1980 #1): after codexcli stopped emitting inert .codex/memories/ files (non-root rules now fold into root AGENTS.md), a **/.codex/memories/ line was left orphaned in the user-maintained zone of .gitignore, above the '# Generated by Rulesync' header. rulesync no longer references that directory, so the entry is dead cruft and pnpm dev gitignore neither emits nor strips it. Remove it.

Closes #1980

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dyoshikawa

Copy link
Copy Markdown
Owner Author

Thanks — merging. Removes the stray hand-maintained **/.codex/memories/ .gitignore entry left after #1979, closing #1980.

@dyoshikawa
dyoshikawa merged commit c2d0e01 into main Jun 23, 2026
9 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-1980-codex-memories-gitignore branch June 23, 2026 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Follow-up: non-blocking findings from PR #1979 (codexcli root AGENTS.md folding)

2 participants