發佈 0.1.9:imagegen 產圖保險網,漏複製也會傳到 Telegram

根本原因:
codex 的 imagegen 技能預設把圖存在 ~/.codex/generated_images/<會話id>/,
是否複製進 .tgcodex-outbox/ 全靠模型遵守 prompt 規則,偶爾會漏,
導致 bot 回「畫好了」但沒附圖。

修法:
每輪結束除了交件匣,另掃描該會話的 generated_images 目錄,把本輪
(mtime 在輪次時間窗內)新生成的圖一併傳出;以檔案內容 MD5 去重,
交件匣有複製過的不會重複傳。generated_images 原檔保留(後續編輯可能要用)。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-14 17:23:06 +08:00
co-authored by Claude Fable 5
parent b80d6f0a1b
commit 2324347868
2 changed files with 68 additions and 19 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "telegram-codex-bot",
"version": "0.1.8",
"version": "0.1.9",
"description": "Telegram bot powered by the local Codex CLI — zero-dependency, pm2-managed, with a built-in PM2 web viewer",
"license": "MIT",
"type": "commonjs",