自动同步: 2026-02-27 21:00

This commit is contained in:
2026-02-27 21:00:01 +08:00
parent 9b8d406f66
commit 8f3f2f5fb4
6 changed files with 212 additions and 31 deletions
+12 -10
View File
@@ -1,7 +1,7 @@
{
"agent:haonan:main": {
"sessionId": "ce805fc1-4760-48fd-8dc8-ec782f397aa8",
"updatedAt": 1772192124603,
"updatedAt": 1772196648842,
"systemSent": true,
"abortedLastRun": false,
"model": "MiniMax-M2.5",
@@ -12,7 +12,7 @@
"chatType": "direct",
"from": "feishu:ou_be83febac9ee2afaa343c642bc697c48",
"to": "user:ou_be83febac9ee2afaa343c642bc697c48",
"accountId": "feishu-pm"
"accountId": "default"
},
"lastChannel": "feishu",
"lastTo": "user:ou_be83febac9ee2afaa343c642bc697c48",
@@ -25,14 +25,14 @@
"deliveryContext": {
"channel": "feishu",
"to": "user:ou_be83febac9ee2afaa343c642bc697c48",
"accountId": "feishu-pm"
"accountId": "default"
},
"chatType": "direct",
"sessionFile": "/home/starmen1265/.openclaw/agents/haonan/sessions/ce805fc1-4760-48fd-8dc8-ec782f397aa8.jsonl",
"modelProvider": "mm",
"systemPromptReport": {
"source": "run",
"generatedAt": 1772192112816,
"generatedAt": 1772196638489,
"sessionId": "ce805fc1-4760-48fd-8dc8-ec782f397aa8",
"sessionKey": "agent:haonan:main",
"provider": "mm",
@@ -44,9 +44,9 @@
"sandboxed": false
},
"systemPrompt": {
"chars": 25595,
"chars": 25748,
"projectContextChars": 16622,
"nonProjectContextChars": 8973
"nonProjectContextChars": 9126
},
"injectedWorkspaceFiles": [
{
@@ -281,12 +281,14 @@
]
}
},
"lastAccountId": "feishu-pm",
"lastAccountId": "default",
"compactionCount": 0,
"inputTokens": 32,
"outputTokens": 300,
"totalTokens": 14575,
"contextTokens": 200000
"outputTokens": 46,
"totalTokens": 109234,
"contextTokens": 200000,
"memoryFlushAt": 1772194484696,
"memoryFlushCompactionCount": 0
},
"agent:haonan:wecom:dm:zhangqing": {
"origin": {
@@ -0,0 +1,28 @@
# 2026-02-27 知识库 Bug 排查
## 问题描述
用户报告:knowledge-base 代理爬取了错误的知乎文章
- 提供的 URL ID: 1925232264591156410
- 实际爬取的 URL ID: 1894054073625461813
## 根因定位
问题出在 `zhihu_article_crawler.py` 脚本中:
```python
# 问题代码
if "ZHIHU_SPECIFIED_ID_LIST" not in config_content or "[]" in config_content:
# 只在配置为空时更新
new_config = config_content.replace(...)
```
MediaCrawler 配置文件 `~/work/MediaCrawler/config/zhihu_config.py` 中保存了旧 ID:
```python
ZHIHU_SPECIFIED_ID_LIST = [
"https://zhuanlan.zhihu.com/p/1894054073625461813",
]
```
由于条件判断问题,新 URL 没有被更新进去,导致每次都爬取旧的 ID。
## 待修复
- 修改 `zhihu_article_crawler.py`,强制每次更新配置中的 ID 列表