AskaEth
|
24d7722ef9
|
fix: storeThought orphaned lock → defer unlock
|
2026-06-28 16:16:35 +08:00 |
|
AskaEth
|
dc410c1cff
|
debug: 死锁监控+DebugMutex+ChSend+GoStart 调试工具
|
2026-06-28 13:01:54 +08:00 |
|
AskaEth
|
537e4ed550
|
feat: 群聊非@消息走审查模式—值得插话才回
|
2026-06-28 12:17:03 +08:00 |
|
AskaEth
|
bebacf805b
|
fix: 使用Data字段返回权限拒绝提示给LLM
|
2026-06-28 12:13:13 +08:00 |
|
AskaEth
|
ca43604eba
|
fix: IoT权限拒绝改为LLM生成自然回复
|
2026-06-28 12:12:33 +08:00 |
|
AskaEth
|
56b105a1dc
|
fix: IoT控制双层权限 — LLM先行判断 + 代码兜底拦截
|
2026-06-28 12:10:53 +08:00 |
|
AskaEth
|
310a8733c8
|
fix: IoT设备控制仅限管理员
|
2026-06-28 12:06:09 +08:00 |
|
AskaEth
|
1e652b5f32
|
fix: 主动消息禁止编造场景 + 同步推送到QQ
|
2026-06-28 11:53:46 +08:00 |
|
AskaEth
|
a47c8be77b
|
fix: 主动消息同步推送到平台适配器(QQ)
|
2026-06-28 11:52:43 +08:00 |
|
AskaEth
|
2b3aa45547
|
fix: saveToDB 改为同步写,防止进程被杀时消息丢失
|
2026-06-28 11:44:42 +08:00 |
|
AskaEth
|
dfd6ccbd41
|
fix: 移除 DuckDuckGo 回退,web_search 仅用 SearXNG
|
2026-06-28 11:42:14 +08:00 |
|
AskaEth
|
6553656c9a
|
fix: web_search 走本地 SearXNG 而非 DuckDuckGo
|
2026-06-28 11:41:12 +08:00 |
|
AskaEth
|
9b20f14ab9
|
fix: emitToolProgress recover on closed channel
|
2026-06-28 11:36:27 +08:00 |
|
AskaEth
|
5725075a31
|
fix: LoadFromDB Timestamp 赋值 + restoreContext 查20条消息
|
2026-06-28 11:32:17 +08:00 |
|
AskaEth
|
29f24b3036
|
fix: restoreContext 从会话历史取最近活动时间,不再用记忆条目时间
|
2026-06-28 11:30:15 +08:00 |
|
AskaEth
|
fd44b15d81
|
feat: 全链路优化 — 死锁修复、MD3主题、上下文持久化、群聊自然化、打字状态、知识库
**死锁根因修复**
- periodicThinkLoop:1015 orphaned lock → 删除(字段已原子化)
- RecordUserMessage 隔离为 recordMu
- atomic.Int64 替换 lastUserMessage/lastThinkTime 等
**MD3 / Android 17 主题**
- 毛玻璃卡片 (backdrop-filter)
- MD3 色彩令牌 (pink primary #f472b6)
- icons.js 独立矢量图标库 + 运行时 emoji 替换
- 无边框卡片、圆角按钮、阴影层次
**上下文持久化**
- AddMessage → saveToDB 异步写 PostgreSQL
- LoadFromDB 恢复 (admin-session-main + 懒加载)
- LLMMessage.Timestamp 字段
**群聊与适配器**
- group_ambient 模式: 非@消息让 LLM 自己判断是否插话
- 戳一戳动作消息总是回复
- NapCat 打字状态 (set_input_status, 最小3秒显示)
- HTTP API 配置 (http_url/http_token)
**知识库 & 防编造**
- knowledge.CanHandle 对 chat 意图也触发
- 关键词预筛选避免无关 embedding 调用
- persona + synthesizer 三重诚实规则
- 工具结果持久化到会话历史
**平台桥接器**
- detached:true Go进程独立存活
- ethend 重启自动接管已运行服务
- stop() 接管模式 taskkill/F/ PID
- Windows netstat 替代 fuser 获取 PID
- 重复适配器种子逻辑修复
- 失败转发日志 Direction: error
**崩溃诊断**
- crashlog 包 (Recover + WrapHTTP + LLMCall)
- /api/v1/debug/goroutines 端点
- thinker 操作日志 + 30s stats
- 日志写入 logs/ 目录持久化
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-28 11:29:29 +08:00 |
|
AskaEth
|
0d6970a2d3
|
fix: halo_publish 插件 — runtime.Caller 解析config.json绝对路径
|
2026-06-26 12:57:50 +08:00 |
|
AskaEth
|
839522e1d4
|
fix: web_search nil pointer崩溃 — 零值struct→构造函数
- WebSearchPlugin/HTTPPlugin/WebFetchPlugin/FilePlugin
全部改用构造函数创建,避免内部http.Client为nil
- 根因: executeAsyncAndStore异步执行时零值struct导致panic
- ai-core频繁崩溃的直接原因
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-26 12:51:33 +08:00 |
|
AskaEth
|
4424c09759
|
docs: 插件README修正 — 写明三步注册流程 + go:generate指令
|
2026-06-25 20:48:15 +08:00 |
|
AskaEth
|
cfebf5480e
|
feat: 插件自动发现 — plugins.json + 代码生成器
- plugins.json 配置文件列出所有插件及其import路径
- gen_plugins.go 读取配置生成 plugins_gen.go
- main.go 调用 registerPlugins() 替代硬编码列表
- 新增 backend/plugins/ 第三方插件目录
- 插件开发文档: docs/api/plugin-development.md
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-24 19:30:52 +08:00 |
|
AskaEth
|
ebd6f40425
|
feat: 后台思考可被前台消息中断 — 用户发消息时cancel运行中的思考
|
2026-06-24 18:21:36 +08:00 |
|
AskaEth
|
fab934fb12
|
feat: performThink 10s休闲检查 + IsUserRecentlyActive — 后台让步前台
|
2026-06-23 21:52:02 +08:00 |
|
AskaEth
|
e83bd6febb
|
feat: 后台思考让步前台 — 用户10s内有活动则跳过非post_chat思考
|
2026-06-23 21:44:31 +08:00 |
|
AskaEth
|
7e0268a884
|
fix: reminder platform 改用 AdapterName(唯一标识符),不再硬编码 obv11
- ProcessParams/SynthesizeParams 新增 AdapterName
- main.go 传递 req.Source.AdapterName
- reminder_create 自动注入使用 adapter 名而非平台类型
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 21:27:02 +08:00 |
|
AskaEth
|
c75ddc13ea
|
fix: SynthesizeParams 加 ChannelID
|
2026-06-23 21:24:19 +08:00 |
|
AskaEth
|
27a497e397
|
feat: 群聊提醒 — 提醒关联平台/频道/适配器,到期发回原群聊
- reminder_create 新增 platform/channel_type/channel_id/adapter_name 参数
- Gateway Reminder 模型 + DB 迁移 + CRUD 全部支持新字段
- 提醒到期时:群聊提醒 → platform-bridge 发回原群聊
- 非群聊提醒 → 走 Web 端推送
- Thinker 新增 PushPlatformMessage 方法
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 20:57:58 +08:00 |
|
AskaEth
|
680696e2c4
|
fix: 工具结果推送 userID为空→回退adminUserID
|
2026-06-23 20:50:33 +08:00 |
|
AskaEth
|
01feb16262
|
feat: 异步工具结果主动推送 — 通用回调机制
- Synthesizer 新增 resultPusher 回调字段
- executeAsyncAndStore 完成后自动推送结果
- Orchestrator.SetToolResultPusher 透传
- 回调通用设计,不绑定特定工具
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 20:42:55 +08:00 |
|
AskaEth
|
30d5b9b464
|
fix: 重新应用工具异步执行 (被git checkout丢失)
|
2026-06-23 20:39:51 +08:00 |
|
AskaEth
|
a3bdeba63a
|
feat: 工具调用全部异步,不再阻塞主会话
- 去掉8s超时同步执行,工具一律走 executeAsyncAndStore
- LLM立即收到[后台执行中]提示,继续生成回复
- 工具结果在下一轮对话中返回
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 20:35:11 +08:00 |
|
AskaEth
|
2ec49f0779
|
fix: ListReminders JSON解析 — Gateway返{reminders:[...]}而非裸数组
|
2026-06-23 20:32:10 +08:00 |
|
AskaEth
|
fea67d05eb
|
fix: reminder工具401认证 — 路由从JWT组迁到internal组
- Gateway新增 /api/v1/internal/reminders (GET/POST/DELETE)
- 使用 X-Internal-Token 认证,不再需要JWT
- GatewayClient URL改为 /api/v1/internal/reminders
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 20:19:23 +08:00 |
|
AskaEth
|
d38b92568b
|
feat: 自主思考可按需查看群聊上下文 — 【查看群聊:适配器名:群号】
- 思者可在反思中输出【查看群聊:obv11-main:531082168】主动获取群聊记录
- 查找平台频道表确认adapter名称对应的platform类型
- 通过 memory-service 拉取最近5条频道记忆注入思考
- 自动追加【继续思考】以处理获取到的上下文
- 分析结果保留在思考链中
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 20:12:20 +08:00 |
|
AskaEth
|
a2078b6662
|
feat: 主动消息写回对话历史 — 防止短期重复提问
- storeThought 推送主动消息后写入 convStore
- 轻量思考话题发起后也写入
- 配合提示词规则: 两小时内不重复问同类话题
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 20:01:43 +08:00 |
|
AskaEth
|
f3b588d848
|
fix: 上下文恢复加24h合理性检查 — 避免用远古记忆当最近活动
|
2026-06-23 19:38:54 +08:00 |
|
AskaEth
|
e0900bdd1b
|
feat: 重启后恢复上下文 — 从记忆服务查询最近活动时间
- 新增 restoreContext() 在 Start() 时查询持久化记忆
- 取最近记忆的 CreatedAt 设为 lastUserMessage
- 避免重启后思考出现"已经一天没说话了"
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 19:38:08 +08:00 |
|
AskaEth
|
a47eeab808
|
feat: 全链路追踪系统 — ai-core追踪事件 + ethend管道视图
ai-core:
- 新增 TraceEvent 内存环形缓冲区(200条)
- GET /api/v1/trace/events 端点(支持session_id过滤)
- 预置 trace.go 追踪事件定义
ethend:
- trace/recent 聚合 platform-bridge消息日志 + ai-core追踪事件
- 消息按管线分组: msg_received→llm_call→tool_call→msg_sent
- 前端管线卡片视图: 每条消息显示完整处理步骤
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 19:11:55 +08:00 |
|
AskaEth
|
1e2b2525f4
|
fix: 私聊主动消息路由修复 + 多账号自动适配
- 正则兼容 private_ 前缀: 【OBv11私聊:private_1487720750】
- prompt 显示频道时自动剥离 private_ 前缀
- extractProactiveMessage 自动查 PlatformChannel 表,
将 target.Platform 从格式key改为adapter实例名
多账号场景下自动路由到正确adapter
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 18:43:42 +08:00 |
|
AskaEth
|
8a3236b8bb
|
refactor: 彻底消除硬编码 qq — 平台标识统一为 obv11
- PlatformName() 返回 "obv11"
- platformFormats key: "obv11"
- 所有 platform == "qq" 检查 → "obv11"
- session prefix: platform_qq_ → platform_obv11_
- env var PLATFORM_CHANNELS: obv11:group:xxx
- ethend 平台标识同步更新
- 注释和测试用例同步
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 18:19:52 +08:00 |
|
AskaEth
|
c96bd23f83
|
feat: PlatformChannel 支持 AdapterID/AdapterName — 多账号全链路区分
- PlatformChannel 新增 AdapterID + AdapterName 字段
- AddOrUpdatePlatformChannel 接受 adapter 信息参数
- channel_sync 传递 adapter_id/adapter_name
- 消息处理路径传递 adapter_name
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 18:01:27 +08:00 |
|
AskaEth
|
6bf59f7eee
|
feat: 频道自动发现 — platform-bridge定时刷新频道路由 + ai-core周期同步
platform-bridge:
- QQ adapter: FetchGroups/FetchFriends 从NapCat API获取
- ChannelLister接口 + ChannelInfo结构体
- GET /api/v1/channels 端点 + cachedChannels缓存
- StartChannelRefresh 每10分钟自动刷新
ai-core:
- channel_sync.go: 每5分钟从platform-bridge拉取频道
- 自动更新thinker的platformChannels + botUIDs
- 不再依赖PLATFORM_CHANNELS环境变量手动配置
修复:
- SendMessage显式设AutoEscape:false
- PLATFORM_BRIDGE_URL默认端口8082→8095
- OBv11Params.AutoEscape去掉omitempty
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 13:12:54 +08:00 |
|
AskaEth
|
9767abae89
|
feat: 2.2 主动话题发起 — 轻量思考扩展【话题发起】输出
- 轻量思考 prompt 新增话题发起指引
- 检测【话题发起】标记 → 提取内容 → 通过 messagePusher 推送
- 遵循 ProactiveGuard 频率控制
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 12:46:51 +08:00 |
|
AskaEth
|
bbf06da00f
|
feat: 1.3 记忆自然引用 — 记忆标签从'数据库检索'改为'自己的回忆'
- 记忆头: '以下是关于开拓者的重要记忆' → '你记得关于开拓者的这些事'
- 分类: '★核心记忆/●常用记忆' → '你很确定的事/最近发生的事/还有点印象的事'
- 增加规则: 禁止用「根据记忆」「检索到」等说法
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 12:45:44 +08:00 |
|
AskaEth
|
f9ee067674
|
feat: 1.2 情绪共振 — mood→行为映射替代情绪陈述
- 新增 buildMoodGuidance() 函数,5种心情各有行为描述
- 开心→话多♪多主动 | 调皮→撒娇逗人 | 沉思→安静温柔
- 担心→话少多关心 | 怀旧→提过去的故事
- 绝不陈述"你现在很开心",而是用行为让LLM自然表达
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 12:44:27 +08:00 |
|
AskaEth
|
f0e8ffa2bb
|
feat: extractProactiveMessage 单元测试 + 修复 log.Printf 格式化 bug
- 7 个测试覆盖:无标记/Web推送/OBv11群聊/私聊/@提及/否定语境/继续思考
- 修复 thinker.go:454 log.Printf %%v → %v 格式化错误
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 12:26:39 +08:00 |
|
AskaEth
|
b3ce0b4f52
|
feat: LLM 降级策略 — 全部模型不可用时返回自然语言预设文案
- getFallbackMessage() 随机选择3条预设降级回复
- ProcessInput 失败和流式事件错误均使用降级回复
- 用户看到"开拓者…我现在好像有点恍惚…"而非错误信息
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 12:25:13 +08:00 |
|
AskaEth
|
0cd75c4dbc
|
feat: 人性化改进 Phase 1 — 不完美感 + 日周期状态机 + 小脾气
- 1.7.7 不完美感: system prompt 追加停顿/改口/翻找回忆规则
- 1.7.8 日周期: 新增 timePeriod() 函数,时段注入思考提示词
早晨/白天/傍晚/深夜/凌晨 五段式,自动调整语气和主动消息策略
- 1.7.9 小脾气: YAML 追加个性边界 — 深夜催睡/咖啡管控/撒娇/兴趣偏好
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-23 12:23:30 +08:00 |
|
AskaEth
|
39d62559ea
|
fix: AdapterName JSON tag 写成了 group_name → 修正为 adapter_name
|
2026-06-22 21:33:31 +08:00 |
|
AskaEth
|
6faef5b6e5
|
feat: 群聊并发 — 主会话繁忙时创建协会议话
- Orchestrator 新增 per-session 处理锁 + co-session 跟踪
- 主会话处理中时,新消息自动创建协会议话(并发 LLM 调用)
- 协会议话上限 3 个,超出排队等待 500ms
- 主会话结束后自动释放锁
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-22 21:07:16 +08:00 |
|
AskaEth
|
489657ec08
|
feat: 提醒到期 → LLM生成自然提醒语 → 推送
- Gateway ReminderScheduler 到期时调用 ai-core /api/v1/internal/reminder-trigger
- ai-core 用 LLM 生成温柔俏皮的提醒语,通过 messagePusher 推送
- Thinker 新增 TriggerReminderMessage 方法
- 环境变量: AI_CORE_URL (Gateway 已有)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-22 21:04:21 +08:00 |
|