發佈 0.1.5:換模型後舊會話自動重開

根本原因:
codex 拒絕用不同模型 resume 舊會話(recorded with model X but resuming with Y),
bot 換模型設定後,既有聊天室的會話會直接報錯卡住。

修法:
偵測到模型不匹配(或會話已被清掉)時自動清除會話、開新會話重試,
並在回覆開頭註明已自動開新會話、舊記憶未帶入。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-07 11:56:22 +08:00
co-authored by Claude Fable 5
parent 8d4cec9bb3
commit 491ab5bc8f
2 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "telegram-codex-bot",
"version": "0.1.4",
"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",