anomalyco / anomalyco/opencode
[BUG] Self-inviting to workspace demotes owner to Member role
@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
- Create a workspace as admin
- Navigate to workspace settings and invite a new member using your own email address (the same email associated with your account)
- Accept the invitation
- 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
While correct result should be like:
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.