根本原因: codex 拒絕用不同模型 resume 舊會話(recorded with model X but resuming with Y), bot 換模型設定後,既有聊天室的會話會直接報錯卡住。 修法: 偵測到模型不匹配(或會話已被清掉)時自動清除會話、開新會話重試, 並在回覆開頭註明已自動開新會話、舊記憶未帶入。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
42 lines
866 B
JSON
42 lines
866 B
JSON
{
|
|
"name": "telegram-codex-bot",
|
|
"version": "0.1.5",
|
|
"description": "Telegram bot powered by the local Codex CLI — zero-dependency, pm2-managed, with a built-in PM2 web viewer",
|
|
"license": "MIT",
|
|
"type": "commonjs",
|
|
"publishConfig": {
|
|
"registry": "https://jianmiau.ddns.net/api/packages/AI/npm/"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "ssh://git@jianmiau.ddns.net:8022/AI/telegram-codex-bot.git"
|
|
},
|
|
"main": "src/index.js",
|
|
"bin": {
|
|
"telegram-codex-bot": "bin/cli.js",
|
|
"tgcodex": "bin/cli.js"
|
|
},
|
|
"files": [
|
|
"bin/",
|
|
"src/",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"scripts": {
|
|
"start": "node bin/cli.js web",
|
|
"dev": "node --watch src/web/server.js"
|
|
},
|
|
"keywords": [
|
|
"telegram",
|
|
"bot",
|
|
"codex",
|
|
"codex-cli",
|
|
"pm2",
|
|
"ai",
|
|
"agent"
|
|
]
|
|
}
|