agentscope-ai / agentscope-ai/AgentTeams

MatrixID 管理混乱,已删除的 Worker 仍会占用 ID || MatrixID management is confusing, and the deleted Worker will still occupy the ID

未關閉
#150 3 則留言 0 個 reaction 已指派 1 人 已被 @Sunrisea 認領 在 GitHub 檢視
area:matrix-element
主要語言
Go
星號
5.6k
分支
692
平均合併
5 天 4 小時
30 天內合併 PR
23

描述

## 问题描述

AI 说这是 Matrix 的设计哲学,防止新创建的用户冒充旧用户。但问题在于,目前的 MatrixID 是基于 Worker 的名称生成的有含义的字符串,比如:
```
Worker名:小李
MatrixID:@XiaoLi:matrix-local.hiclaw.io:18080
```
如果小李离职以后再被招进来,MatrixID 只能变成
```
@XiaoLi2:matrix-local.hiclaw.io:18080
```
测试发现中文转拼音也有可能大小写不统一,有可能产生
```
@Xiaoli:matrix-local.hiclaw.io:18080
@xiaoli:matrix-local.hiclaw.io:18080

```
当然这也可能是小问题

## 建议:

采用随机生成的字符串作为 MatrixID

---
## Problem description

AI says this is Matrix's design philosophy to prevent newly created users from impersonating old users. But the problem is that the current MatrixID is a meaningful string generated based on the name of the Worker, such as:
```
Worker name: Xiao Li
MatrixID: @XiaoLi:matrix-local.hiclaw.io:18080
```
If Xiao Li is recruited again after leaving his job, the MatrixID can only become
```
@XiaoLi2:matrix-local.hiclaw.io:18080
```
Tests have found that the conversion of Chinese to Pinyin may not be consistent in uppercase and lowercase letters, which may result in
```
@Xiaoli:matrix-local.hiclaw.io:18080
@xiaoli:matrix-local.hiclaw.io:18080
Wait
```
Of course, this may be a small problem

## Suggestions:

Using a randomly generated string as MatrixID

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。