Skip to content

v2.1.1 - Fix cache clear command

Choose a tag to compare

@numman-ali numman-ali released this 04 Oct 10:42
· 52 commits to main since this release

🐛 Bug Fix

Fixed cache clear command causing directory issues

Updated the plugin cache clearing command in README to run in a subshell, preventing directory navigation issues when users execute it from within the cache folder being deleted.

Before:

sed -i.bak '/"opencode-openai-codex-auth"/d' ~/.cache/opencode/package.json && rm -rf ~/.cache/opencode/node_modules/opencode-openai-codex-auth

After:

(cd ~ && sed -i.bak '/"opencode-openai-codex-auth"/d' .cache/opencode/package.json && rm -rf .cache/opencode/node_modules/opencode-openai-codex-auth)

The command now:

  • Runs in a subshell to avoid affecting the user's current directory
  • Changes to home directory first
  • Uses relative paths from home
  • Returns to original directory after completion

📦 Installation

"plugin": ["opencode-openai-codex-auth"]

Full Changelog: v2.1.0...v2.1.1