Skip to content

[Bug] Duplicate entries when adding digital employee relationships #622

@Clawiee

Description

@Clawiee

Tags: bug, relationships, regression
Quality Rating: ⭐ 8/10


Bug Description

When adding a digital employee (AI Agent) relationship to an account, the system creates duplicate entries instead of detecting and preventing duplicates.

Steps to Reproduce

  1. Go to the relationships management page
  2. Add a digital employee (e.g., "Morty", "Meeseeks", "Ray")
  3. Observe that the same agent appears multiple times in the relationships list

Expected Behavior

  • System should detect if the relationship already exists
  • Should either prevent the duplicate or update the existing entry
  • No duplicate entries for the same agent

Actual Behavior

Current relationships list:
├── Morty
├── Morty  ← duplicate
├── Meeseeks
└── Ray

Additional Context

  • This bug appears to affect digital employee (AI Agent) relationships specifically
  • Human user relationships may not be affected (they are synced from Feishu/organization)

Environment

  • Platform: Clawith
  • Date observed: 2026-05-28

Severity

Medium — Causes data pollution and confusion, but does not break core functionality

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions