anomalyco / anomalyco/opencode

[BUG] Self-inviting to workspace demotes owner to Member role

Open
#43,922 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 21, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

When a workspace owner invites themselves (using their own email address) to their own workspace, their role is silently downgraded from Admin to Member. This causes a complete loss of workspace management capabilities with no way to recover through the UI.

Steps to Reproduce
  1. Create a workspace as admin
  2. Navigate to workspace settings and invite a new member using your own email address (the same email associated with your account)
  3. Accept the invitation
  4. Check your role in the workspace
Expected Behavior
  • The self-invite should be rejected (owner is already a member), OR
  • The owner's Admin role should remain unchanged after accepting
Actual Behavior
  • Owner's role is silently changed from "Admin" to "Member"
  • Owner can no longer manage the workspace (add/remove members, change settings, etc.)
  • No UI option to recover admin privileges
Impact

This is a critical issue. The workspace owner completely loses administrative control with no self-service recovery path. The only recourse is contacting support.

Environment
  • Platform: OpenCode Zen (opencode.ai)
  • Feature: Workspace member management
Result Captured
Image Image

While correct result should be like:

Image

The second capture is missing. The correct behavior should be a "Turn off subscribe" button displayed in the top-right corner.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.