Skip to content

fix: rename opencode alias from c to oc to avoid accidental triggers#6193

Open
sridhar-3009 wants to merge 1 commit into
basecamp:devfrom
sridhar-3009:fix/opencode-alias-6119
Open

fix: rename opencode alias from c to oc to avoid accidental triggers#6193
sridhar-3009 wants to merge 1 commit into
basecamp:devfrom
sridhar-3009:fix/opencode-alias-6119

Conversation

@sridhar-3009

Copy link
Copy Markdown

The single-letter alias c='opencode' is a footgun — any typo like c;ear (for clear) silently triggers a 54MB remote binary download via the opencode launcher. Renaming it to oc makes accidental invocation far less likely while keeping the alias short and memorable.

Closes #6119

Copilot AI review requested due to automatic review settings July 9, 2026 19:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Renames the default Bash alias for opencode from a single-letter c to oc to reduce accidental invocation (and unintended remote downloads) caused by common typos and shell command separators, addressing the security/footgun scenario described in #6119.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Changes:

  • Replace alias c='opencode' with alias oc='opencode' in the default Bash aliases.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Security risk: single-letter alias c='opencode' turns typos into silent 54MB remote downloads

2 participants