fix: 平台消息身份传递 — AI-Core 收到正确昵称而非永远 fallback 到管理员

- forwardToAICore 新增 nickname 字段,格式 "昵称 (QQ号)" 明确标识发送者
- 解决非管理员用户 @昔涟 时 AI 仍认为是管理员的身份污染问题
- 同时包含:管理员群聊插入抑制、markdown 粗体剥离、SearXNG 容器、ethend 窗口隐藏

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-31 10:17:27 +08:00
parent 47dce276a4
commit 677385ec17
5 changed files with 72 additions and 30 deletions
+2 -4
View File
@@ -86,10 +86,6 @@ function detectDockerServices() {
for (const m of ports.matchAll(/:(\d+)->/g)) {
detectedPorts.add(parseInt(m[1]));
}
for (const m of ports.matchAll(/(\d+)\/(tcp|udp)/g)) {
detectedPorts.add(parseInt(m[1]));
}
for (const [id, svc] of Object.entries(SERVICES)) {
if (svc.port && detectedPorts.has(svc.port)) {
result.set(id, {
@@ -306,6 +302,7 @@ class ProcessManager extends EventEmitter {
env,
stdio: ['ignore', 'pipe', 'pipe'],
shell: needsShell,
windowsHide: true,
});
child.stdout.on('data', (data) => {
@@ -434,6 +431,7 @@ class ProcessManager extends EventEmitter {
cwd: svc.cwd,
env: { ...process.env, GOPROXY: 'https://goproxy.cn,direct', GOWORK: 'off' },
stdio: ['ignore', 'pipe', 'pipe'],
windowsHide: true,
});
let stdout = '';