Spaces:
Sleeping
Sleeping
fix: filter out 'main' agent from guest list to avoid duplicate HuggingClaw
Browse filesStar character already represents HuggingClaw, so 'main' agent from
/agents should not appear as a guest visitor.
frontend/electron-standalone.html
CHANGED
|
@@ -4724,7 +4724,8 @@ function toggleBrokerPanel() {
|
|
| 4724 |
.then(response => response.json())
|
| 4725 |
.then(data => {
|
| 4726 |
// 无论后端返回是否为数组,demo=1 都应保证本地 demo 访客可见
|
| 4727 |
-
|
|
|
|
| 4728 |
|
| 4729 |
// 新访客检测:触发 Star 欢迎气泡(只欢迎真实访客,不欢迎 demo)
|
| 4730 |
try {
|
|
|
|
| 4724 |
.then(response => response.json())
|
| 4725 |
.then(data => {
|
| 4726 |
// 无论后端返回是否为数组,demo=1 都应保证本地 demo 访客可见
|
| 4727 |
+
// Filter out 'main' (HuggingClaw) — Star character already represents it
|
| 4728 |
+
guestAgents = (Array.isArray(data) ? data : []).filter(a => a.agentId !== 'main');
|
| 4729 |
|
| 4730 |
// 新访客检测:触发 Star 欢迎气泡(只欢迎真实访客,不欢迎 demo)
|
| 4731 |
try {
|